diff options
Diffstat (limited to 'crates/ra_syntax/src/parsing/parser_impl')
-rw-r--r-- | crates/ra_syntax/src/parsing/parser_impl/event.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/parsing/parser_impl/event.rs b/crates/ra_syntax/src/parsing/parser_impl/event.rs index 2ddbdd34d..9663fba35 100644 --- a/crates/ra_syntax/src/parsing/parser_impl/event.rs +++ b/crates/ra_syntax/src/parsing/parser_impl/event.rs | |||
@@ -3,7 +3,7 @@ | |||
3 | //! parser, so as to allow to evolve the tree representation | 3 | //! parser, so as to allow to evolve the tree representation |
4 | //! and the parser algorithm independently. | 4 | //! and the parser algorithm independently. |
5 | //! | 5 | //! |
6 | //! The `Sink` trait is the bridge between the parser and the | 6 | //! The `TreeSink` trait is the bridge between the parser and the |
7 | //! tree builder: the parser produces a stream of events like | 7 | //! tree builder: the parser produces a stream of events like |
8 | //! `start node`, `finish node`, and `FileBuilder` converts | 8 | //! `start node`, `finish node`, and `FileBuilder` converts |
9 | //! this stream to a real tree. | 9 | //! this stream to a real tree. |
@@ -20,7 +20,7 @@ use crate::{ | |||
20 | }, | 20 | }, |
21 | parsing::{ | 21 | parsing::{ |
22 | lexer::Token, | 22 | lexer::Token, |
23 | parser_impl::Sink, | 23 | parser_impl::TreeSink, |
24 | }, | 24 | }, |
25 | }; | 25 | }; |
26 | 26 | ||
@@ -93,7 +93,7 @@ impl Event { | |||
93 | } | 93 | } |
94 | } | 94 | } |
95 | 95 | ||
96 | pub(super) struct EventProcessor<'a, S: Sink> { | 96 | pub(super) struct EventProcessor<'a, S: TreeSink> { |
97 | sink: S, | 97 | sink: S, |
98 | text_pos: TextUnit, | 98 | text_pos: TextUnit, |
99 | text: &'a str, | 99 | text: &'a str, |
@@ -102,7 +102,7 @@ pub(super) struct EventProcessor<'a, S: Sink> { | |||
102 | events: &'a mut [Event], | 102 | events: &'a mut [Event], |
103 | } | 103 | } |
104 | 104 | ||
105 | impl<'a, S: Sink> EventProcessor<'a, S> { | 105 | impl<'a, S: TreeSink> EventProcessor<'a, S> { |
106 | pub(super) fn new( | 106 | pub(super) fn new( |
107 | sink: S, | 107 | sink: S, |
108 | text: &'a str, | 108 | text: &'a str, |