QL: Add VarDef.getAnAccess

This commit is contained in:
Asger Feldthaus
2022-04-09 11:53:54 +02:00
parent 85403cd4de
commit f02912bdf5

View File

@@ -553,6 +553,9 @@ class VarDef extends TVarDef, AstNode {
Type getType() { none() }
/** Gets a variable access to this `VarDef` */
VarAccess getAnAccess() { result.getDeclaration() = this }
override string getAPrimaryQlClass() { result = "VarDef" }
override string toString() { result = this.getName() }