File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
python/ql/src/semmle/python/objects Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ class CallableValue extends Value {
425
425
or
426
426
exists ( int n |
427
427
call .getArg ( n ) = result and
428
- this .getParameter ( n + offset ) .getId ( ) = name
428
+ this .getParameter ( n + offset ) .getId ( ) = name
429
429
)
430
430
or
431
431
called instanceof BoundMethodObjectInternal and
@@ -728,9 +728,11 @@ class PythonFunctionValue extends FunctionValue {
728
728
override ClassValue getARaisedType ( ) { scope_raises ( result , this .getScope ( ) ) }
729
729
730
730
override ClassValue getAnInferredReturnType ( ) {
731
- /* We have to do a special version of this because builtin functions have no
731
+ /*
732
+ * We have to do a special version of this because builtin functions have no
732
733
* explicit return nodes that we can query and get the class of.
733
734
*/
735
+
734
736
result = this .getAReturnedNode ( ) .pointsTo ( ) .getClass ( )
735
737
}
736
738
}
@@ -753,9 +755,11 @@ class BuiltinFunctionValue extends FunctionValue {
753
755
}
754
756
755
757
override ClassValue getAnInferredReturnType ( ) {
756
- /* We have to do a special version of this because builtin functions have no
758
+ /*
759
+ * We have to do a special version of this because builtin functions have no
757
760
* explicit return nodes that we can query and get the class of.
758
761
*/
762
+
759
763
result = TBuiltinClassObject ( this .( BuiltinFunctionObjectInternal ) .getReturnType ( ) )
760
764
}
761
765
}
You can’t perform that action at this time.
0 commit comments