Skip to content

Commit f648dd4

Browse files
authored
Merge pull request #10443 from erik-krogh/moreNames
QL: recognize the names from all VarDefs
2 parents 87e7825 + af045a0 commit f648dd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/ql/src/codeql_ql/style/NodeName.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ string getName(AstNode node, string kind) {
2020
result = node.(NewType).getName() and
2121
kind = "newtype"
2222
or
23-
result = node.(VarDecl).getName() and
23+
result = node.(VarDef).getName() and
2424
kind = "variable" and
2525
not node = any(FieldDecl f).getVarDecl()
2626
or

0 commit comments

Comments
 (0)