mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Revert "Rust: avoid classes with multiple getAPrimaryQLClass result"
This reverts commit 110d2ea775.
This commit is contained in:
@@ -430,7 +430,8 @@ module Impl {
|
||||
}
|
||||
|
||||
/** A variable access. */
|
||||
class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand {
|
||||
abstract class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand
|
||||
{
|
||||
private string name;
|
||||
private Variable v;
|
||||
|
||||
@@ -443,6 +444,8 @@ module Impl {
|
||||
predicate isCapture() { this.getEnclosingCallable() != v.getPat().getEnclosingCallable() }
|
||||
|
||||
override string toString() { result = name }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "VariableAccess" }
|
||||
}
|
||||
|
||||
/** Holds if `e` occurs in the LHS of an assignment or compound assignment. */
|
||||
|
||||
Reference in New Issue
Block a user