mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
break&continue
This commit is contained in:
parent
a66c94af1b
commit
719710a132
8 changed files with 156 additions and 13 deletions
|
@ -1,12 +0,0 @@
|
|||
pub(super) fn process<'a, S: Sink<'a>>(builder: &mut S, tokens: &[Token], events: Vec<Event>) {
|
||||
let mut next_tok_idx = 0;
|
||||
let eat_ws = |idx: &mut usize, &mut | {
|
||||
while let Some(token) = tokens.get(*idx) {
|
||||
if !token.kind.is_trivia() {
|
||||
break;
|
||||
}
|
||||
builder.leaf(token.kind, token.len);
|
||||
*idx += 1
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue