Python: Address TODO comment

This commit is contained in:
Rasmus Lerchedahl Petersen
2023-12-15 14:03:38 +01:00
parent e1bf2821d9
commit 8601105988

View File

@@ -29,7 +29,9 @@ private module CaptureInput implements Shared::InputSig<Location> {
class BasicBlock extends PY::BasicBlock {
Callable getEnclosingCallable() { result = this.getScope() }
// TODO: check that this gives useful results
// Note `PY:BasicBlock` does not have a `GetLocation` and
// has a more complicated location info logic.
// This is good enough for here.
Location getLocation() { result = super.getNode(0).getLocation() }
}