diff --git a/crates/ra_syntax/src/parsing/parser_impl.rs b/crates/ra_syntax/src/parsing/parser_impl.rs index c639d83e83..b710e9d5d6 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::{ use crate::SyntaxKind::{self, EOF, TOMBSTONE}; -pub(crate) trait Sink { +pub(super) trait Sink { type Tree; /// Adds new leaf to the current branch. @@ -39,7 +39,7 @@ pub(crate) trait Sink { } /// Parse a sequence of tokens into the representative node tree -pub(crate) fn parse_with( +pub(super) fn parse_with( sink: S, text: &str, tokens: &[Token], @@ -58,7 +58,7 @@ pub(crate) fn parse_with( /// Implementation details of `Parser`, extracted /// to a separate struct in order not to pollute /// the public API of the `Parser`. -pub(crate) struct ParserImpl<'t> { +pub(super) struct ParserImpl<'t> { parser_input: &'t ParserInput<'t>, pos: InputPosition, events: Vec,