aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-20 12:57:26 +0000
committerAleksey Kladov <[email protected]>2019-02-20 12:57:26 +0000
commit5a6eda528c56814347a1fa0e3eef1e919089bf0a (patch)
tree0a7adb90ae469cde5a1b0ff4c9a2a6c626e2fb12 /crates/ra_syntax/src
parent5222b8aba3b1c2c68706aacf6869423a8e4fe6d5 (diff)
tighten visibility
Diffstat (limited to 'crates/ra_syntax/src')
-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>,