aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/parser_impl/mod.rs
diff options
context:
space:
mode:
authorAdolfo OchagavĂ­a <[email protected]>2018-11-05 17:38:34 +0000
committerAdolfo OchagavĂ­a <[email protected]>2018-11-05 17:38:34 +0000
commitfda8ddc5fe8a764c0dc91fecb92af1bdf3078485 (patch)
tree1de03cfa42f40bb5ca19956534f53d0b92d271d5 /crates/ra_syntax/src/parser_impl/mod.rs
parent3b42ddae601fbd73f672e82028e04c3abdf1252d (diff)
Introduce Location and make SyntaxError fields private
Diffstat (limited to 'crates/ra_syntax/src/parser_impl/mod.rs')
-rw-r--r--crates/ra_syntax/src/parser_impl/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/parser_impl/mod.rs b/crates/ra_syntax/src/parser_impl/mod.rs
index ade25770b..cb6e370ac 100644
--- a/crates/ra_syntax/src/parser_impl/mod.rs
+++ b/crates/ra_syntax/src/parser_impl/mod.rs
@@ -10,10 +10,10 @@ use crate::{
10 event::{Event, EventProcessor}, 10 event::{Event, EventProcessor},
11 input::{InputPosition, ParserInput}, 11 input::{InputPosition, ParserInput},
12 }, 12 },
13 SmolStr, TextRange, 13 SmolStr,
14 yellow::syntax_error::{ 14 yellow::syntax_error::{
15 ParseError, 15 ParseError,
16 SyntaxErrorKind, 16 SyntaxError,
17 }, 17 },
18}; 18};
19 19
@@ -25,7 +25,7 @@ pub(crate) trait Sink {
25 fn leaf(&mut self, kind: SyntaxKind, text: SmolStr); 25 fn leaf(&mut self, kind: SyntaxKind, text: SmolStr);
26 fn start_internal(&mut self, kind: SyntaxKind); 26 fn start_internal(&mut self, kind: SyntaxKind);
27 fn finish_internal(&mut self); 27 fn finish_internal(&mut self);
28 fn error(&mut self, kind: SyntaxErrorKind, offset: TextRange); 28 fn error(&mut self, error: SyntaxError);
29 fn finish(self) -> Self::Tree; 29 fn finish(self) -> Self::Tree;
30} 30}
31 31