File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
python/ql/consistency-queries Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ private module Input implements InputSig<PythonDataFlow> {
46
46
)
47
47
}
48
48
49
+ predicate uniqueEnclosingCallableExclude ( Node n ) {
50
+ // We only have a selection of valid callables.
51
+ // For instance, we do not have classes as `DataFlowCallable`s.
52
+ not n .( SynthCaptureNode ) .getSynthesizedCaptureNode ( ) .getEnclosingCallable ( ) instanceof Function and
53
+ not n .( SynthCaptureNode ) .getSynthesizedCaptureNode ( ) .getEnclosingCallable ( ) instanceof Module
54
+ }
55
+
49
56
predicate uniqueCallEnclosingCallableExclude ( DataFlowCall call ) {
50
57
not exists ( call .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
51
58
}
@@ -125,7 +132,7 @@ private module Input implements InputSig<PythonDataFlow> {
125
132
or
126
133
// The capture argument node will be reused for every call to the same callable.
127
134
arg = call .getArgument ( _) and
128
- arg instanceof CaptureArgumentNode
135
+ arg instanceof SynthCaptureArgumentNode
129
136
}
130
137
}
131
138
You can’t perform that action at this time.
0 commit comments