Skip to content

Commit f053134

Browse files
committed
Python: Move typePreservingStep into Private
1 parent 9b80563 commit f053134

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

python/ql/src/experimental/typetracking/TypeTracker.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ module StepSummary {
7878
}
7979
}
8080

81-
/** Holds if it's reasonable to expect the data flow step from `nodeFrom` to `nodeTo` to preserve types. */
82-
private predicate typePreservingStep(Node nodeFrom, Node nodeTo) {
83-
simpleLocalFlowStep(nodeFrom, nodeTo) or
84-
jumpStep(nodeFrom, nodeTo)
85-
}
86-
8781
/**
8882
* A utility class that is equivalent to `boolean` but does not require type joining.
8983
*/

python/ql/src/experimental/typetracking/TypeTrackerPrivate.qll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ class Node = DataFlowPublic::Node;
66

77
class LocalSourceNode = DataFlowPublic::LocalSourceNode;
88

9-
predicate jumpStep = DataFlowPrivate::jumpStep/2;
10-
11-
predicate simpleLocalFlowStep = DataFlowPrivate::simpleLocalFlowStep/2;
9+
/** Holds if it's reasonable to expect the data flow step from `nodeFrom` to `nodeTo` to preserve types. */
10+
predicate typePreservingStep(Node nodeFrom, Node nodeTo) {
11+
DataFlowPrivate::simpleLocalFlowStep(nodeFrom, nodeTo) or
12+
DataFlowPrivate::jumpStep(nodeFrom, nodeTo)
13+
}
1214

1315
/**
1416
* Gets the name of a possible piece of content. This will usually include things like

0 commit comments

Comments
 (0)