mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 05:05:00 +00:00
dev: early exit on simple syntax nodes (#141)
This commit is contained in:
parent
7e453872b1
commit
00e32a1db0
1 changed files with 1 additions and 0 deletions
|
@ -479,6 +479,7 @@ impl LexicalHierarchyWorker {
|
|||
|
||||
self.get_symbols_in_first_expr(node.children().rev())?;
|
||||
}
|
||||
k if k.is_trivia() || k.is_keyword() || k.is_error() => {}
|
||||
_ => {
|
||||
for child in node.children() {
|
||||
self.get_symbols(child)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue