Skip to content

Commit 8469bd3

Browse files
committed
Uncomment getAPrimaryQlClass()
1 parent dc0de91 commit 8469bd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ql/src/codeql_ruby/ast/Variable.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ class LocalVariableAccess extends VariableAccess, @token_identifier {
8282

8383
/** Gets the variable this identifier refers to. */
8484
final override LocalVariable getVariable() { result = range.getVariable() }
85-
// TODO uncomment this and fix the params test
86-
//final override string getAPrimaryQlClass() { result = "LocalVariableAccess" }
85+
86+
final override string getAPrimaryQlClass() {
87+
not this instanceof SimpleParameter and result = "LocalVariableAccess"
88+
}
8789
}
8890

8991
/** An access to a local variable. */

0 commit comments

Comments
 (0)