Shared: add location for 'this' CaptureContainer

Only has an effect for debugging purposes
This commit is contained in:
Asger F
2024-05-06 13:50:40 +02:00
parent 1e46e431e8
commit 551743e000

View File

@@ -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())
}
}