diff options
author | Aleksey Kladov <[email protected]> | 2019-02-20 18:50:07 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-20 18:50:07 +0000 |
commit | 0c81b9deeed81bfb2cf8142af9d748317d5d71a1 (patch) | |
tree | e9c0a1affabfa444611b762dc721d426e3a5bb56 /crates/ra_syntax/src/parsing/parser_api.rs | |
parent | 3517c175ac537b47dd3e36cc7fb1edd60b02c039 (diff) |
route parsing via TokenSource trait
Diffstat (limited to 'crates/ra_syntax/src/parsing/parser_api.rs')
-rw-r--r-- | crates/ra_syntax/src/parsing/parser_api.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parsing/parser_api.rs b/crates/ra_syntax/src/parsing/parser_api.rs index 781c407de..813ae494c 100644 --- a/crates/ra_syntax/src/parsing/parser_api.rs +++ b/crates/ra_syntax/src/parsing/parser_api.rs | |||
@@ -17,7 +17,9 @@ use crate::{ | |||
17 | /// tree, but rather a flat stream of events of the form | 17 | /// tree, but rather a flat stream of events of the form |
18 | /// "start expression, consume number literal, | 18 | /// "start expression, consume number literal, |
19 | /// finish expression". See `Event` docs for more. | 19 | /// finish expression". See `Event` docs for more. |
20 | pub(crate) struct Parser<'t>(pub(super) ParserImpl<'t>); | 20 | pub(crate) struct Parser<'t>( |
21 | pub(super) ParserImpl<crate::parsing::parser_impl::input::ParserInput<'t>>, | ||
22 | ); | ||
21 | 23 | ||
22 | impl<'t> Parser<'t> { | 24 | impl<'t> Parser<'t> { |
23 | /// Returns the kind of the current token. | 25 | /// Returns the kind of the current token. |