mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Python: Fix inconsostencies to fix flow
(and fix annotations again)
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user