diff options
author | Aleksey Kladov <[email protected]> | 2019-02-20 12:57:26 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-20 12:57:26 +0000 |
commit | 5a6eda528c56814347a1fa0e3eef1e919089bf0a (patch) | |
tree | 0a7adb90ae469cde5a1b0ff4c9a2a6c626e2fb12 /crates | |
parent | 5222b8aba3b1c2c68706aacf6869423a8e4fe6d5 (diff) |
tighten visibility
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_syntax/src/parsing/parser_impl.rs | 6 |
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 | ||
18 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; | 18 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; |
19 | 19 | ||
20 | pub(crate) trait Sink { | 20 | pub(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 |
42 | pub(crate) fn parse_with<S: Sink>( | 42 | pub(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`. |
61 | pub(crate) struct ParserImpl<'t> { | 61 | pub(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>, |