We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd19661 commit a6e69ebCopy full SHA for a6e69eb
1 file changed
rust/ql/lib/codeql/rust/elements/internal/VariableImpl.qll
@@ -430,7 +430,8 @@ module Impl {
430
}
431
432
/** A variable access. */
433
- class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand {
+ abstract class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand
434
+ {
435
private string name;
436
private Variable v;
437
@@ -443,6 +444,8 @@ module Impl {
443
444
predicate isCapture() { this.getEnclosingCallable() != v.getPat().getEnclosingCallable() }
445
446
override string toString() { result = name }
447
+
448
+ override string getAPrimaryQlClass() { result = "VariableAccess" }
449
450
451
/** Holds if `e` occurs in the LHS of an assignment or compound assignment. */
0 commit comments