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 {
430430 }
431431
432432 /** A variable access. */
433- class VariableAccess extends PathExprBaseImpl:: PathExprBase instanceof VariableAccessCand {
433+ abstract class VariableAccess extends PathExprBaseImpl:: PathExprBase instanceof VariableAccessCand
434+ {
434435 private string name ;
435436 private Variable v ;
436437
@@ -443,6 +444,8 @@ module Impl {
443444 predicate isCapture ( ) { this .getEnclosingCallable ( ) != v .getPat ( ) .getEnclosingCallable ( ) }
444445
445446 override string toString ( ) { result = name }
447+
448+ override string getAPrimaryQlClass ( ) { result = "VariableAccess" }
446449 }
447450
448451 /** 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