File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
rust/ql/lib/codeql/rust/elements/internal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,8 @@ module Impl {
430
430
}
431
431
432
432
/** A variable access. */
433
- class VariableAccess extends PathExprBaseImpl:: PathExprBase instanceof VariableAccessCand {
433
+ abstract class VariableAccess extends PathExprBaseImpl:: PathExprBase instanceof VariableAccessCand
434
+ {
434
435
private string name ;
435
436
private Variable v ;
436
437
@@ -443,6 +444,8 @@ module Impl {
443
444
predicate isCapture ( ) { this .getEnclosingCallable ( ) != v .getPat ( ) .getEnclosingCallable ( ) }
444
445
445
446
override string toString ( ) { result = name }
447
+
448
+ override string getAPrimaryQlClass ( ) { result = "VariableAccess" }
446
449
}
447
450
448
451
/** Holds if `e` occurs in the LHS of an assignment or compound assignment. */
You can’t perform that action at this time.
0 commit comments