rename Sink -> TreeSink

This commit is contained in:
Aleksey Kladov 2019-02-20 21:08:59 +03:00
parent 96899f8278
commit 3517c175ac
3 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
use crate::{
parsing::parser_impl::Sink,
parsing::parser_impl::TreeSink,
syntax_node::{GreenNode, RaTypes},
SmolStr, SyntaxKind, SyntaxError,
};
@ -17,7 +17,7 @@ impl GreenBuilder {
}
}
impl Sink for GreenBuilder {
impl TreeSink for GreenBuilder {
type Tree = (GreenNode, Vec<SyntaxError>);
fn leaf(&mut self, kind: SyntaxKind, text: SmolStr) {