mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
rename Sink -> TreeSink
This commit is contained in:
parent
96899f8278
commit
3517c175ac
3 changed files with 8 additions and 8 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue