mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
Generate VariableAccesses also for defining accesses
This commit is contained in:
@@ -60,11 +60,7 @@ class VariableAccess extends AstNode, @token_identifier {
|
||||
override Generated::Identifier generated;
|
||||
Variable variable;
|
||||
|
||||
VariableAccess() {
|
||||
access(this, variable) and
|
||||
// Do not generate an access at the defining location
|
||||
not variable = TLocalVariable(_, _, this)
|
||||
}
|
||||
VariableAccess() { access(this, variable) }
|
||||
|
||||
/** Gets the variable this identifier refers to. */
|
||||
Variable getVariable() { result = variable }
|
||||
|
||||
Reference in New Issue
Block a user