aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/parsing/parser_api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/parsing/parser_api.rs')
-rw-r--r--crates/ra_syntax/src/parsing/parser_api.rs4
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.
20pub(crate) struct Parser<'t>(pub(super) ParserImpl<'t>); 20pub(crate) struct Parser<'t>(
21 pub(super) ParserImpl<crate::parsing::parser_impl::input::ParserInput<'t>>,
22);
21 23
22impl<'t> Parser<'t> { 24impl<'t> Parser<'t> {
23 /// Returns the kind of the current token. 25 /// Returns the kind of the current token.