Skip to content

Commit 6a3bb4d

Browse files
authored
Merge pull request github#16834 from asgerf/shared/capture-this-location
Shared: add location for 'this' CaptureContainer
2 parents 17edfdf + 551743e commit 6a3bb4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared/dataflow/codeql/dataflow/VariableCapture.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ module Flow<LocationSig Location, InputSig<Location> Input> implements OutputSig
645645

646646
Location getLocation() {
647647
exists(CapturedVariable v | this = TVariable(v) and result = v.getLocation())
648+
or
649+
exists(Callable c | this = TThis(c) and result = c.getLocation())
648650
}
649651
}
650652

0 commit comments

Comments
 (0)