File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
python/ql/lib/semmle/python/dataflow/new/internal Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ private module Cached {
186
186
jumpStep ( nodeFrom , nodeTo ) and
187
187
summary = JumpStep ( )
188
188
or
189
- levelStep ( nodeFrom , nodeTo ) and
189
+ levelStepNoCall ( nodeFrom , nodeTo ) and
190
190
summary = LevelStep ( )
191
191
or
192
192
exists ( TypeTrackerContent content |
@@ -216,6 +216,9 @@ private module Cached {
216
216
or
217
217
returnStep ( nodeFrom , nodeTo ) and
218
218
summary = ReturnStep ( )
219
+ or
220
+ levelStepCall ( nodeFrom , nodeTo ) and
221
+ summary = LevelStep ( )
219
222
}
220
223
}
221
224
Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ predicate simpleLocalFlowStep = DataFlowPrivate::simpleLocalFlowStepForTypetrack
45
45
46
46
predicate jumpStep = DataFlowPrivate:: jumpStepSharedWithTypeTracker / 2 ;
47
47
48
- /** Holds if there is a level step from `pred` to `succ`. */
49
- predicate levelStep ( Node pred , Node succ ) { none ( ) }
48
+ /** Holds if there is a level step from `nodeFrom` to `nodeTo`, which may depend on the call graph. */
49
+ predicate levelStepCall ( Node pred , Node succ ) { none ( ) }
50
+
51
+ /** Holds if there is a level step from `nodeFrom` to `nodeTo`, which does not depend on the call graph. */
52
+ predicate levelStepNoCall ( Node nodeFrom , Node nodeTo ) { none ( ) }
50
53
51
54
/**
52
55
* Gets the name of a possible piece of content. For Python, this is currently only attribute names,
You can’t perform that action at this time.
0 commit comments