mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
JS: Nicer jump-to-def for function declarations
This commit is contained in:
@@ -183,6 +183,11 @@ private AstNode redirectOnce(AstNode node) {
|
||||
result = cls.getIdentifier()
|
||||
)
|
||||
or
|
||||
exists(FunctionDeclStmt decl |
|
||||
node = decl and
|
||||
result = decl.getIdentifier()
|
||||
)
|
||||
or
|
||||
exists(MethodDeclaration member |
|
||||
not member instanceof ConstructorDeclaration and
|
||||
node = member.getBody() and
|
||||
|
||||
Reference in New Issue
Block a user