Python: use updated names

This commit is contained in:
Rasmus Lerchedahl Petersen
2023-12-15 13:48:28 +01:00
parent b07316f4ae
commit 739b839628

View File

@@ -43,7 +43,7 @@ private module Input implements InputSig<PythonDataFlow> {
predicate uniqueEnclosingCallableExclude(Node n) {
// `CaptureNode`s miss enclosing calables in some cases.
exists(Function func |
func = n.(CaptureNode).getSynthesizedCaptureNode().getEnclosingCallable()
func = n.(SynthCaptureNode).getSynthesizedCaptureNode().getEnclosingCallable()
|
// This can happen if `func` is a comprehension.
// In that case, there is no associated DataFlowCallable.
@@ -51,7 +51,7 @@ private module Input implements InputSig<PythonDataFlow> {
)
or
// We do not have classes as `DataFlowCallable`s.
n.(CaptureNode).getSynthesizedCaptureNode().getEnclosingCallable() instanceof Class
n.(SynthCaptureNode).getSynthesizedCaptureNode().getEnclosingCallable() instanceof Class
}
predicate uniqueCallEnclosingCallableExclude(DataFlowCall call) {