@@ -614,9 +614,9 @@ class PythonFunctionValue extends FunctionValue {
614
614
override string descriptiveString ( ) {
615
615
if this .getScope ( ) .isMethod ( )
616
616
then
617
- exists ( Class cls | this .getScope ( ) .getScope ( ) = cls |
618
- result = "method " + this .getQualifiedName ( )
619
- )
617
+ exists ( Class cls | this .getScope ( ) .getScope ( ) = cls |
618
+ result = "method " + this .getQualifiedName ( )
619
+ )
620
620
else result = "function " + this .getQualifiedName ( )
621
621
}
622
622
@@ -641,14 +641,9 @@ class PythonFunctionValue extends FunctionValue {
641
641
}
642
642
643
643
/** Gets a control flow node corresponding to a return statement in this function */
644
- ControlFlowNode getAReturnedNode ( ) {
645
- result = this .getScope ( ) .getAReturnValueFlowNode ( )
646
- }
647
-
648
- override ClassValue getARaisedType ( ) {
649
- scope_raises ( result , this .getScope ( ) )
650
- }
644
+ ControlFlowNode getAReturnedNode ( ) { result = this .getScope ( ) .getAReturnValueFlowNode ( ) }
651
645
646
+ override ClassValue getARaisedType ( ) { scope_raises ( result , this .getScope ( ) ) }
652
647
}
653
648
654
649
/** Class representing builtin functions, such as `len` or `print` */
@@ -661,9 +656,7 @@ class BuiltinFunctionValue extends FunctionValue {
661
656
662
657
override int minParameters ( ) { none ( ) }
663
658
664
- override int maxParameters ( ) {
665
- none ( )
666
- }
659
+ override int maxParameters ( ) { none ( ) }
667
660
668
661
override ClassValue getARaisedType ( ) {
669
662
/* Information is unavailable for C code in general */
@@ -685,19 +678,14 @@ class BuiltinMethodValue extends FunctionValue {
685
678
686
679
override string descriptiveString ( ) { result = "builtin-method " + this .getQualifiedName ( ) }
687
680
688
- override int minParameters ( ) {
689
- none ( )
690
- }
681
+ override int minParameters ( ) { none ( ) }
691
682
692
- override int maxParameters ( ) {
693
- none ( )
694
- }
683
+ override int maxParameters ( ) { none ( ) }
695
684
696
685
override ClassValue getARaisedType ( ) {
697
686
/* Information is unavailable for C code in general */
698
687
none ( )
699
688
}
700
-
701
689
}
702
690
703
691
/**
@@ -923,10 +911,8 @@ module ClassValue {
923
911
ClassValue lookupError ( ) { result = TBuiltinClassObject ( Builtin:: builtin ( "LookupError" ) ) }
924
912
925
913
/** Get the `ClassValue` for the `IndexError` class. */
926
- ClassValue indexError ( ) {
927
- result = TBuiltinClassObject ( Builtin:: builtin ( "IndexError" ) )
928
- }
929
-
914
+ ClassValue indexError ( ) { result = TBuiltinClassObject ( Builtin:: builtin ( "IndexError" ) ) }
915
+
930
916
/** Get the `ClassValue` for the `IOError` class. */
931
917
ClassValue ioError ( ) { result = TBuiltinClassObject ( Builtin:: builtin ( "IOError" ) ) }
932
918
@@ -949,8 +935,5 @@ module ClassValue {
949
935
}
950
936
951
937
/** Get the `ClassValue` for the `SystemExit` class. */
952
- ClassValue systemExit ( ) {
953
- result = TBuiltinClassObject ( Builtin:: builtin ( "SystemExit" ) )
954
- }
955
-
938
+ ClassValue systemExit ( ) { result = TBuiltinClassObject ( Builtin:: builtin ( "SystemExit" ) ) }
956
939
}
0 commit comments