We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1bf282 commit 8601105Copy full SHA for 8601105
python/ql/lib/semmle/python/dataflow/new/internal/VariableCapture.qll
@@ -29,7 +29,9 @@ private module CaptureInput implements Shared::InputSig<Location> {
29
class BasicBlock extends PY::BasicBlock {
30
Callable getEnclosingCallable() { result = this.getScope() }
31
32
- // TODO: check that this gives useful results
+ // Note `PY:BasicBlock` does not have a `GetLocation` and
33
+ // has a more complicated location info logic.
34
+ // This is good enough for here.
35
Location getLocation() { result = super.getNode(0).getLocation() }
36
}
37
0 commit comments