mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Fix up token_tree_to_syntax_node float split handling
This commit is contained in:
parent
9053bcc65c
commit
c6e7917d6e
5 changed files with 76 additions and 12 deletions
|
@ -102,10 +102,12 @@ impl TopEntryPoint {
|
|||
match step {
|
||||
Step::Enter { .. } => depth += 1,
|
||||
Step::Exit => depth -= 1,
|
||||
Step::FloatSplit { .. } | Step::Token { .. } | Step::Error { .. } => (),
|
||||
Step::FloatSplit { .. } => depth -= 1,
|
||||
Step::Token { .. } | Step::Error { .. } => (),
|
||||
}
|
||||
}
|
||||
assert!(!first, "no tree at all");
|
||||
assert_eq!(depth, 0, "unbalanced tree");
|
||||
}
|
||||
|
||||
res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue