Python: Use default getEnclosingCallable

for `RetrunNode`
This commit is contained in:
Rasmus Lerchedahl Petersen
2020-11-20 12:25:25 +01:00
parent 36d9097d03
commit 88643da01f
3 changed files with 6 additions and 6 deletions

View File

@@ -739,10 +739,6 @@ class ReturnNode extends CfgNode {
/** Gets the kind of this return node. */
ReturnKind getKind() { any() }
override DataFlowCallable getEnclosingCallable() {
result.getScope().getAStmt() = ret // TODO: check nested function definitions
}
}
/** A data flow node that represents the output of a call. */