File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
python/ql/consistency-queries Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -46,24 +46,6 @@ private module Input implements InputSig<PythonDataFlow> {
46
46
)
47
47
}
48
48
49
- predicate uniqueEnclosingCallableExclude ( Node n ) {
50
- // `CaptureNode`s miss enclosing calables in some cases.
51
- exists ( Function func |
52
- func = n .( SynthCaptureNode ) .getSynthesizedCaptureNode ( ) .getEnclosingCallable ( )
53
- |
54
- // This can happen if `func` is a comprehension.
55
- // In that case, there is no associated DataFlowCallable.
56
- not exists ( func .getDefinition ( ) )
57
- or
58
- func .getADecorator ( ) .( Name ) .getId ( ) = "property"
59
- )
60
- or
61
- // We only have a selection of valid callables.
62
- // For instance, we do not have classes as `DataFlowCallable`s.
63
- not n .( SynthCaptureNode ) .getSynthesizedCaptureNode ( ) .getEnclosingCallable ( ) instanceof Function and
64
- not n .( SynthCaptureNode ) .getSynthesizedCaptureNode ( ) .getEnclosingCallable ( ) instanceof Module
65
- }
66
-
67
49
predicate uniqueCallEnclosingCallableExclude ( DataFlowCall call ) {
68
50
not exists ( call .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
69
51
}
You can’t perform that action at this time.
0 commit comments