@@ -1095,10 +1095,8 @@ module Array {
1095
1095
}
1096
1096
}
1097
1097
1098
- private class ProductSummary extends SummarizedCallable {
1099
- MethodCall mc ;
1100
-
1101
- ProductSummary ( ) { this = "product" and mc .getMethodName ( ) = this }
1098
+ private class ProductSummary extends SimpleSummarizedCallable {
1099
+ ProductSummary ( ) { this = "product" }
1102
1100
1103
1101
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
1104
1102
(
@@ -1111,17 +1109,11 @@ module Array {
1111
1109
output = "ArrayElement[?] of ArrayElement[?] of ReturnValue" and
1112
1110
preservesValue = true
1113
1111
}
1114
-
1115
- override MethodCall getACall ( ) { result = mc }
1116
1112
}
1117
1113
1118
- private class PushSummary extends SummarizedCallable {
1119
- MethodCall mc ;
1120
-
1114
+ private class PushSummary extends SimpleSummarizedCallable {
1121
1115
// `append` is an alias for `push`
1122
- PushSummary ( ) { this = [ "push" , "append" ] and mc .getMethodName ( ) = this }
1123
-
1124
- override MethodCall getACall ( ) { result = mc }
1116
+ PushSummary ( ) { this = [ "push" , "append" ] }
1125
1117
1126
1118
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
1127
1119
(
@@ -1633,12 +1625,8 @@ module Array {
1633
1625
}
1634
1626
}
1635
1627
1636
- private class UnionSummary extends SummarizedCallable {
1637
- MethodCall mc ;
1638
-
1639
- UnionSummary ( ) { this = "union" and mc .getMethodName ( ) = this }
1640
-
1641
- override MethodCall getACall ( ) { result = mc }
1628
+ private class UnionSummary extends SimpleSummarizedCallable {
1629
+ UnionSummary ( ) { this = "union" }
1642
1630
1643
1631
override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
1644
1632
(
0 commit comments