File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
python/ql/lib/semmle/python/dataflow/new/internal Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,11 @@ private module CaptureInput implements Shared::InputSig<Location> {
34
34
class BasicBlock extends PY:: BasicBlock {
35
35
Callable getEnclosingCallable ( ) { result = this .getScope ( ) }
36
36
37
- // Note `PY:BasicBlock` does not have a `GetLocation` and
38
- // has a more complicated location info logic.
39
- // This is good enough for here.
37
+ // Note `PY:BasicBlock` does not have a `getLocation`.
38
+ // (Instead it has a complicated location info logic.)
39
+ // Using the location of the first node is simple
40
+ // and we just need a way to identify the basic block
41
+ // during debugging, so this will be serviceable.
40
42
Location getLocation ( ) { result = super .getNode ( 0 ) .getLocation ( ) }
41
43
}
42
44
You can’t perform that action at this time.
0 commit comments