diff options
author | Aleksey Kladov <[email protected]> | 2019-02-20 18:08:59 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-20 18:08:59 +0000 |
commit | 3517c175ac537b47dd3e36cc7fb1edd60b02c039 (patch) | |
tree | d9d3bb44ce3c163270352729eb866f1026aa6296 /crates/ra_syntax/src/parsing/parser_impl.rs | |
parent | 96899f8278b787280bd07d9ac9dce29a610ce40d (diff) |
rename Sink -> TreeSink
Diffstat (limited to 'crates/ra_syntax/src/parsing/parser_impl.rs')
-rw-r--r-- | crates/ra_syntax/src/parsing/parser_impl.rs | 4 |
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 | ||
19 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; | 19 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; |
20 | 20 | ||
21 | pub(super) trait Sink { | 21 | pub(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 |
43 | pub(super) fn parse_with<S: Sink>( | 43 | pub(super) fn parse_with<S: TreeSink>( |
44 | sink: S, | 44 | sink: S, |
45 | text: &str, | 45 | text: &str, |
46 | tokens: &[Token], | 46 | tokens: &[Token], |