Python: Fix inconsostencies to fix flow

(and fix annotations again)
This commit is contained in:
Rasmus Lerchedahl Petersen
2021-01-14 00:09:18 +01:00
parent 36a4a5081e
commit e3199fbbe2
3 changed files with 114 additions and 7 deletions

View File

@@ -339,6 +339,10 @@ class IterableSequence extends Node, TIterableSequence {
override string toString() { result = "IterableSequence" }
override DataFlowCallable getEnclosingCallable() {
result = any(CfgNode node | node = TCfgNode(consumer)).getEnclosingCallable()
}
override Location getLocation() { result = consumer.getLocation() }
}
@@ -353,6 +357,10 @@ class IterableElement extends Node, TIterableElement {
override string toString() { result = "IterableElement" }
override DataFlowCallable getEnclosingCallable() {
result = any(CfgNode node | node = TCfgNode(consumer)).getEnclosingCallable()
}
override Location getLocation() { result = consumer.getLocation() }
}