File tree Expand file tree Collapse file tree
python/ql/consistency-queries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,24 +46,6 @@ private module Input implements InputSig<PythonDataFlow> {
4646 )
4747 }
4848
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-
6749 predicate uniqueCallEnclosingCallableExclude ( DataFlowCall call ) {
6850 not exists ( call .getLocation ( ) .getFile ( ) .getRelativePath ( ) )
6951 }
You can’t perform that action at this time.
0 commit comments