From 5a6eda528c56814347a1fa0e3eef1e919089bf0a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 20 Feb 2019 15:57:26 +0300 Subject: tighten visibility --- crates/ra_syntax/src/parsing/parser_impl.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/src') 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::{ 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, -- cgit v1.2.3