mirror of
https://github.com/github/codeql.git
synced 2026-03-16 12:36:55 +01:00
Shared: add location for 'this' nodes
This commit is contained in:
@@ -645,6 +645,8 @@ module Flow<LocationSig Location, InputSig<Location> Input> implements OutputSig
|
||||
|
||||
Location getLocation() {
|
||||
exists(CapturedVariable v | this = TVariable(v) and result = v.getLocation())
|
||||
or
|
||||
exists(Callable c | this = TThis(c) and result = c.getLocation())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user