Revert "Rust: avoid classes with multiple getAPrimaryQLClass result"

This reverts commit 110d2ea775.
This commit is contained in:
Arthur Baars
2024-10-25 10:59:31 +02:00
parent bd19661b60
commit a6e69eb147

View File

@@ -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. */