aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/parsing/parser_impl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/parsing/parser_impl.rs b/crates/ra_syntax/src/parsing/parser_impl.rs
index c639d83e8..b710e9d5d 100644
--- a/crates/ra_syntax/src/parsing/parser_impl.rs
+++ b/crates/ra_syntax/src/parsing/parser_impl.rs
@@ -17,7 +17,7 @@ use crate::{
17 17
18use crate::SyntaxKind::{self, EOF, TOMBSTONE}; 18use crate::SyntaxKind::{self, EOF, TOMBSTONE};
19 19
20pub(crate) trait Sink { 20pub(super) trait Sink {
21 type Tree; 21 type Tree;
22 22
23 /// Adds new leaf to the current branch. 23 /// Adds new leaf to the current branch.
@@ -39,7 +39,7 @@ pub(crate) trait Sink {
39} 39}
40 40
41/// Parse a sequence of tokens into the representative node tree 41/// Parse a sequence of tokens into the representative node tree
42pub(crate) fn parse_with<S: Sink>( 42pub(super) fn parse_with<S: Sink>(
43 sink: S, 43 sink: S,
44 text: &str, 44 text: &str,
45 tokens: &[Token], 45 tokens: &[Token],
@@ -58,7 +58,7 @@ pub(crate) fn parse_with<S: Sink>(
58/// Implementation details of `Parser`, extracted 58/// Implementation details of `Parser`, extracted
59/// to a separate struct in order not to pollute 59/// to a separate struct in order not to pollute
60/// the public API of the `Parser`. 60/// the public API of the `Parser`.
61pub(crate) struct ParserImpl<'t> { 61pub(super) struct ParserImpl<'t> {
62 parser_input: &'t ParserInput<'t>, 62 parser_input: &'t ParserInput<'t>,
63 pos: InputPosition, 63 pos: InputPosition,
64 events: Vec<Event>, 64 events: Vec<Event>,