mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
switch to new rowan
This commit is contained in:
parent
dec9bde108
commit
9e213385c9
50 changed files with 1026 additions and 1227 deletions
|
@ -116,12 +116,12 @@ pub(super) fn process(sink: &mut dyn TreeSink, mut events: Vec<Event>) {
|
|||
}
|
||||
|
||||
for kind in forward_parents.drain(..).rev() {
|
||||
sink.start_branch(kind);
|
||||
sink.start_node(kind);
|
||||
}
|
||||
}
|
||||
Event::Finish => sink.finish_branch(),
|
||||
Event::Finish => sink.finish_node(),
|
||||
Event::Token { kind, n_raw_tokens } => {
|
||||
sink.leaf(kind, n_raw_tokens);
|
||||
sink.token(kind, n_raw_tokens);
|
||||
}
|
||||
Event::Error { msg } => sink.error(msg),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue