aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/parsing/builder.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-20 18:08:59 +0000
committerAleksey Kladov <[email protected]>2019-02-20 18:08:59 +0000
commit3517c175ac537b47dd3e36cc7fb1edd60b02c039 (patch)
treed9d3bb44ce3c163270352729eb866f1026aa6296 /crates/ra_syntax/src/parsing/builder.rs
parent96899f8278b787280bd07d9ac9dce29a610ce40d (diff)
rename Sink -> TreeSink
Diffstat (limited to 'crates/ra_syntax/src/parsing/builder.rs')
-rw-r--r--crates/ra_syntax/src/parsing/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parsing/builder.rs b/crates/ra_syntax/src/parsing/builder.rs
index 9090c60c2..118f43b2c 100644
--- a/crates/ra_syntax/src/parsing/builder.rs
+++ b/crates/ra_syntax/src/parsing/builder.rs
@@ -1,5 +1,5 @@
1use crate::{ 1use crate::{
2 parsing::parser_impl::Sink, 2 parsing::parser_impl::TreeSink,
3 syntax_node::{GreenNode, RaTypes}, 3 syntax_node::{GreenNode, RaTypes},
4 SmolStr, SyntaxKind, SyntaxError, 4 SmolStr, SyntaxKind, SyntaxError,
5}; 5};
@@ -17,7 +17,7 @@ impl GreenBuilder {
17 } 17 }
18} 18}
19 19
20impl Sink for GreenBuilder { 20impl TreeSink for GreenBuilder {
21 type Tree = (GreenNode, Vec<SyntaxError>); 21 type Tree = (GreenNode, Vec<SyntaxError>);
22 22
23 fn leaf(&mut self, kind: SyntaxKind, text: SmolStr) { 23 fn leaf(&mut self, kind: SyntaxKind, text: SmolStr) {