@@ -99,7 +99,7 @@ class ArrayConstructorSummary extends SummarizedCallable {
99
99
result = arrayConstructorRef ( ) .getAnInvocation ( )
100
100
}
101
101
102
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
102
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
103
103
preservesValue = true and
104
104
input = "Argument[0..]" and
105
105
output = "ReturnValue.ArrayElement"
@@ -123,7 +123,7 @@ class Join extends SummarizedCallable {
123
123
result .getNumArgument ( ) = [ 0 , 1 ]
124
124
}
125
125
126
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
126
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
127
127
preservesValue = false and
128
128
input = "Argument[this].ArrayElement" and
129
129
output = "ReturnValue"
@@ -135,7 +135,7 @@ class CopyWithin extends SummarizedCallable {
135
135
136
136
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "copyWithin" }
137
137
138
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
138
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
139
139
preservesValue = true and
140
140
input = "Argument[this].WithArrayElement" and
141
141
output = "ReturnValue"
@@ -154,7 +154,7 @@ class FlowIntoCallback extends SummarizedCallable {
154
154
result .getMethodName ( ) = [ "every" , "findIndex" , "findLastIndex" , "some" ]
155
155
}
156
156
157
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
157
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
158
158
preservesValue = true and
159
159
(
160
160
input = "Argument[this].ArrayElement" and
@@ -171,7 +171,7 @@ class Filter extends SummarizedCallable {
171
171
172
172
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "filter" }
173
173
174
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
174
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
175
175
preservesValue = true and
176
176
(
177
177
input = "Argument[this].ArrayElement" and
@@ -198,7 +198,7 @@ class Fill extends SummarizedCallable {
198
198
199
199
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "fill" }
200
200
201
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
201
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
202
202
preservesValue = true and
203
203
input = "Argument[0..]" and
204
204
output = [ "ReturnValue.ArrayElement" , "Argument[this].ArrayElement" ]
@@ -210,7 +210,7 @@ class FindLike extends SummarizedCallable {
210
210
211
211
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "find" , "findLast" ] }
212
212
213
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
213
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
214
214
preservesValue = true and
215
215
(
216
216
input = "Argument[this].ArrayElement" and
@@ -229,7 +229,7 @@ class FindLibrary extends SummarizedCallable {
229
229
result = DataFlow:: moduleImport ( [ "array.prototype.find" , "array-find" ] ) .getACall ( )
230
230
}
231
231
232
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
232
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
233
233
preservesValue = true and
234
234
(
235
235
input = "Argument[0].ArrayElement" and
@@ -257,7 +257,7 @@ class Flat extends SummarizedCallable {
257
257
)
258
258
}
259
259
260
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
260
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
261
261
preservesValue = true and
262
262
(
263
263
input = "Argument[this]" + concat ( int n | n in [ 0 .. depth ] | ".ArrayElement" )
@@ -277,7 +277,7 @@ class FlatMap extends SummarizedCallable {
277
277
278
278
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "flatMap" }
279
279
280
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
280
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
281
281
preservesValue = true and
282
282
(
283
283
input = "Argument[this].ArrayElement" and
@@ -309,7 +309,7 @@ class From1Arg extends SummarizedCallable {
309
309
result = arrayFromCall ( ) and result .getNumArgument ( ) = 1
310
310
}
311
311
312
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
312
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
313
313
preservesValue = true and
314
314
(
315
315
input = "Argument[0].WithArrayElement" and
@@ -346,7 +346,7 @@ class FromManyArg extends SummarizedCallable {
346
346
result .getNumArgument ( ) > 1
347
347
}
348
348
349
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
349
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
350
350
preservesValue = true and
351
351
(
352
352
input = "Argument[0]." + [ "ArrayElement" , "SetElement" , "IteratorElement" ] and
@@ -380,7 +380,7 @@ class Map extends SummarizedCallable {
380
380
result .getMethodName ( ) = "map"
381
381
}
382
382
383
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
383
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
384
384
preservesValue = true and
385
385
(
386
386
input = "Argument[this].ArrayElement" and
@@ -405,7 +405,7 @@ class Of extends SummarizedCallable {
405
405
result = arrayConstructorRef ( ) .getAMemberCall ( "of" )
406
406
}
407
407
408
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
408
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
409
409
preservesValue = true and
410
410
input = "Argument[0..]" and
411
411
output = "ReturnValue.ArrayElement"
@@ -417,7 +417,7 @@ class Pop extends SummarizedCallable {
417
417
418
418
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "pop" }
419
419
420
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
420
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
421
421
preservesValue = true and
422
422
input = "Argument[this].ArrayElement" and
423
423
output = "ReturnValue"
@@ -429,7 +429,7 @@ class PushLike extends SummarizedCallable {
429
429
430
430
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "push" , "unshift" ] }
431
431
432
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
432
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
433
433
preservesValue = true and
434
434
input = "Argument[0..]" and
435
435
output = "Argument[this].ArrayElement"
@@ -441,7 +441,7 @@ class ReduceLike extends SummarizedCallable {
441
441
442
442
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "reduce" , "reduceRight" ] }
443
443
444
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
444
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
445
445
preservesValue = true and
446
446
/*
447
447
* Signatures:
@@ -470,7 +470,7 @@ class Reverse extends SummarizedCallable {
470
470
471
471
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "reverse" , "toReversed" ] }
472
472
473
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
473
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
474
474
preservesValue = true and
475
475
input = "Argument[this].ArrayElement" and
476
476
output = "ReturnValue.ArrayElement"
@@ -482,7 +482,7 @@ class Shift extends SummarizedCallable {
482
482
483
483
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "shift" }
484
484
485
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
485
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
486
486
preservesValue = true and
487
487
input = "Argument[this].ArrayElement[0]" and
488
488
output = "ReturnValue"
@@ -500,7 +500,7 @@ class Sort extends SummarizedCallable {
500
500
501
501
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "sort" , "toSorted" ] }
502
502
503
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
503
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
504
504
preservesValue = true and
505
505
(
506
506
input = "Argument[this].ArrayElement" and
@@ -517,7 +517,7 @@ class Splice extends SummarizedCallable {
517
517
518
518
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "splice" }
519
519
520
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
520
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
521
521
preservesValue = true and
522
522
(
523
523
input = "Argument[this].ArrayElement" and
@@ -534,7 +534,7 @@ class ToSpliced extends SummarizedCallable {
534
534
535
535
override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "toSpliced" }
536
536
537
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
537
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
538
538
preservesValue = true and
539
539
(
540
540
input = "Argument[this].ArrayElement" and
@@ -551,7 +551,7 @@ class ArrayCoercionPackage extends FunctionalPackageSummary {
551
551
552
552
override string getAPackageName ( ) { result = [ "arrify" , "array-ify" ] }
553
553
554
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
554
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
555
555
preservesValue = true and
556
556
(
557
557
input = "Argument[0].WithArrayElement" and
@@ -573,7 +573,7 @@ class ArrayCopyingPackage extends FunctionalPackageSummary {
573
573
574
574
override string getAPackageName ( ) { result = [ "array-union" , "array-uniq" , "uniq" ] }
575
575
576
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
576
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
577
577
preservesValue = true and
578
578
input = "Argument[0..].ArrayElement" and
579
579
output = "ReturnValue.ArrayElement"
@@ -587,7 +587,7 @@ class ArrayFlatteningPackage extends FunctionalPackageSummary {
587
587
result = [ "array-flatten" , "arr-flatten" , "flatten" , "array.prototype.flat" ]
588
588
}
589
589
590
- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
590
+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
591
591
// TODO: properly support these. For the moment we're just adding parity with the old model
592
592
preservesValue = false and
593
593
input = "Argument[0..]" and
0 commit comments