mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
QL: Add VarDef.getAnAccess
This commit is contained in:
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user