mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 05:05:00 +00:00
fix: wrong order of def-and-use names (#281)
This commit is contained in:
parent
66e6aff2b4
commit
c90a766fdc
1 changed files with 2 additions and 2 deletions
|
@ -497,12 +497,12 @@ impl LexicalHierarchyWorker {
|
|||
self.get_symbols_in_first_expr(node.children(), None)?;
|
||||
}
|
||||
SyntaxKind::Named => {
|
||||
self.get_symbols_in_first_expr(node.children().rev(), None)?;
|
||||
|
||||
if self.ident_context == IdentContext::Params {
|
||||
let ident = node.children().find(|n| n.kind() == SyntaxKind::Ident);
|
||||
self.get_symbols_in_opt_with(ident, IdentContext::Var)?;
|
||||
}
|
||||
|
||||
self.get_symbols_in_first_expr(node.children().rev(), None)?;
|
||||
}
|
||||
k if k.is_trivia() || k.is_keyword() || k.is_error() => {}
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue