Improved nodes
This commit is contained in:
@@ -44,7 +44,7 @@ internal class DefinitionHandler(WorkspaceManager workspaceManager) : Definition
|
||||
}
|
||||
|
||||
var variable = function?.Body?
|
||||
.EnumerateDescendantsAndSelf()
|
||||
.Descendants()
|
||||
.OfType<VariableDeclarationNode>()
|
||||
.FirstOrDefault(x => x.Name == variableIdentifierNode.Name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user