Make VariableAccess "abstract"

This commit is contained in:
Arthur Baars
2020-12-18 13:00:28 +01:00
parent b1b2815c26
commit 1ada9feda7
2 changed files with 9 additions and 13 deletions

View File

@@ -60,15 +60,13 @@ class LocalVariable extends Variable {
}
/** An access to a variable. */
class VariableAccess extends Expr, @token_identifier {
class VariableAccess extends Expr {
override VariableAccess::Range range;
/** Gets the variable this identifier refers to. */
Variable getVariable() { result = range.getVariable() }
final override string toString() { result = this.getVariable().getName() }
// TODO uncomment this and fix the params test
//override string getAPrimaryQlClass() { result = "VariableAccess" }
}
/** An access to a local variable. */