Skip to content

Commit 0b11e77

Browse files
committed
Python: make compile
1 parent 0175d5b commit 0b11e77

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

python/ql/src/experimental/dataflow/internal/DataFlowPrivate.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ predicate compatibleTypes(DataFlowType t1, DataFlowType t2) {
214214
any()
215215
}
216216

217-
DataFlowType getErasedRepr(DataFlowType t) { result = t }
217+
/**
218+
* Gets the type of `node`.
219+
*/
220+
DataFlowType getNodeType(Node node) { result = TStringFlow() }
218221

219222
/** Gets a string representation of a type returned by `getErasedRepr`. */
220223
string ppReprType(DataFlowType t) { result = t.toString() }

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ class Node extends TNode {
5454
result.getScope() = this.asEssaNode().getScope() // this allows ESSA var -> Cfg use
5555
}
5656

57-
/**
58-
* Gets an upper bound on the type of this node.
59-
*/
60-
DataFlowType getTypeBound() {
61-
any()
62-
}
63-
6457
/**
6558
* Holds if this element is at the specified location.
6659
* The location spans column `startcolumn` of line `startline` to

python/ql/test/experimental/dataflow/consistency/dataflow-consistency.expected

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ uniqueEnclosingCallable
105105
| test.py:161:1:161:17 | Exit node for Function test_truth | Node should have one enclosing callable but has 0. |
106106
| test.py:161:1:161:17 | Exit node for Function test_truth | Node should have one enclosing callable but has 0. |
107107
| test.py:161:5:161:14 | GSSA Variable test_truth | Node should have one enclosing callable but has 0. |
108-
uniqueTypeBound
109-
uniqueTypeRepr
108+
uniqueType
110109
uniqueNodeLocation
111110
missingLocation
112111
uniqueNodeToString

0 commit comments

Comments
 (0)