aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/parsing/parser_impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/parsing/parser_impl.rs')
-rw-r--r--crates/ra_syntax/src/parsing/parser_impl.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parsing/parser_impl.rs b/crates/ra_syntax/src/parsing/parser_impl.rs
index 8cce1ab01..02baed76b 100644
--- a/crates/ra_syntax/src/parsing/parser_impl.rs
+++ b/crates/ra_syntax/src/parsing/parser_impl.rs
@@ -18,7 +18,7 @@ use crate::{
18 18
19use crate::SyntaxKind::{self, EOF, TOMBSTONE}; 19use crate::SyntaxKind::{self, EOF, TOMBSTONE};
20 20
21pub(super) trait Sink { 21pub(super) trait TreeSink {
22 type Tree; 22 type Tree;
23 23
24 /// Adds new leaf to the current branch. 24 /// Adds new leaf to the current branch.
@@ -40,7 +40,7 @@ pub(super) trait Sink {
40} 40}
41 41
42/// Parse a sequence of tokens into the representative node tree 42/// Parse a sequence of tokens into the representative node tree
43pub(super) fn parse_with<S: Sink>( 43pub(super) fn parse_with<S: TreeSink>(
44 sink: S, 44 sink: S,
45 text: &str, 45 text: &str,
46 tokens: &[Token], 46 tokens: &[Token],