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

@ -18,7 +18,7 @@ use crate::{
use crate::SyntaxKind::{self, EOF, TOMBSTONE};
pub(super) trait Sink {
pub(super) trait TreeSink {
type Tree;
/// Adds new leaf to the current branch.
@ -40,7 +40,7 @@ pub(super) trait Sink {
}
/// Parse a sequence of tokens into the representative node tree
pub(super) fn parse_with<S: Sink>(
pub(super) fn parse_with<S: TreeSink>(
sink: S,
text: &str,
tokens: &[Token],