@@ -99,7 +99,7 @@ class ArrayConstructorSummary extends SummarizedCallable {
9999 result = arrayConstructorRef ( ) .getAnInvocation ( )
100100 }
101101
102- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
102+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
103103 preservesValue = true and
104104 input = "Argument[0..]" and
105105 output = "ReturnValue.ArrayElement"
@@ -123,7 +123,7 @@ class Join extends SummarizedCallable {
123123 result .getNumArgument ( ) = [ 0 , 1 ]
124124 }
125125
126- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
126+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
127127 preservesValue = false and
128128 input = "Argument[this].ArrayElement" and
129129 output = "ReturnValue"
@@ -135,7 +135,7 @@ class CopyWithin extends SummarizedCallable {
135135
136136 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "copyWithin" }
137137
138- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
138+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
139139 preservesValue = true and
140140 input = "Argument[this].WithArrayElement" and
141141 output = "ReturnValue"
@@ -154,7 +154,7 @@ class FlowIntoCallback extends SummarizedCallable {
154154 result .getMethodName ( ) = [ "every" , "findIndex" , "findLastIndex" , "some" ]
155155 }
156156
157- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
157+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
158158 preservesValue = true and
159159 (
160160 input = "Argument[this].ArrayElement" and
@@ -171,7 +171,7 @@ class Filter extends SummarizedCallable {
171171
172172 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "filter" }
173173
174- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
174+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
175175 preservesValue = true and
176176 (
177177 input = "Argument[this].ArrayElement" and
@@ -198,7 +198,7 @@ class Fill extends SummarizedCallable {
198198
199199 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "fill" }
200200
201- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
201+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
202202 preservesValue = true and
203203 input = "Argument[0..]" and
204204 output = [ "ReturnValue.ArrayElement" , "Argument[this].ArrayElement" ]
@@ -210,7 +210,7 @@ class FindLike extends SummarizedCallable {
210210
211211 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "find" , "findLast" ] }
212212
213- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
213+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
214214 preservesValue = true and
215215 (
216216 input = "Argument[this].ArrayElement" and
@@ -229,7 +229,7 @@ class FindLibrary extends SummarizedCallable {
229229 result = DataFlow:: moduleImport ( [ "array.prototype.find" , "array-find" ] ) .getACall ( )
230230 }
231231
232- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
232+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
233233 preservesValue = true and
234234 (
235235 input = "Argument[0].ArrayElement" and
@@ -257,7 +257,7 @@ class Flat extends SummarizedCallable {
257257 )
258258 }
259259
260- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
260+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
261261 preservesValue = true and
262262 (
263263 input = "Argument[this]" + concat ( int n | n in [ 0 .. depth ] | ".ArrayElement" )
@@ -277,7 +277,7 @@ class FlatMap extends SummarizedCallable {
277277
278278 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "flatMap" }
279279
280- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
280+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
281281 preservesValue = true and
282282 (
283283 input = "Argument[this].ArrayElement" and
@@ -309,7 +309,7 @@ class From1Arg extends SummarizedCallable {
309309 result = arrayFromCall ( ) and result .getNumArgument ( ) = 1
310310 }
311311
312- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
312+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
313313 preservesValue = true and
314314 (
315315 input = "Argument[0].WithArrayElement" and
@@ -346,7 +346,7 @@ class FromManyArg extends SummarizedCallable {
346346 result .getNumArgument ( ) > 1
347347 }
348348
349- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
349+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
350350 preservesValue = true and
351351 (
352352 input = "Argument[0]." + [ "ArrayElement" , "SetElement" , "IteratorElement" ] and
@@ -380,7 +380,7 @@ class Map extends SummarizedCallable {
380380 result .getMethodName ( ) = "map"
381381 }
382382
383- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
383+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
384384 preservesValue = true and
385385 (
386386 input = "Argument[this].ArrayElement" and
@@ -405,7 +405,7 @@ class Of extends SummarizedCallable {
405405 result = arrayConstructorRef ( ) .getAMemberCall ( "of" )
406406 }
407407
408- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
408+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
409409 preservesValue = true and
410410 input = "Argument[0..]" and
411411 output = "ReturnValue.ArrayElement"
@@ -417,7 +417,7 @@ class Pop extends SummarizedCallable {
417417
418418 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "pop" }
419419
420- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
420+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
421421 preservesValue = true and
422422 input = "Argument[this].ArrayElement" and
423423 output = "ReturnValue"
@@ -429,7 +429,7 @@ class PushLike extends SummarizedCallable {
429429
430430 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "push" , "unshift" ] }
431431
432- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
432+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
433433 preservesValue = true and
434434 input = "Argument[0..]" and
435435 output = "Argument[this].ArrayElement"
@@ -441,7 +441,7 @@ class ReduceLike extends SummarizedCallable {
441441
442442 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "reduce" , "reduceRight" ] }
443443
444- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
444+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
445445 preservesValue = true and
446446 /*
447447 * Signatures:
@@ -470,7 +470,7 @@ class Reverse extends SummarizedCallable {
470470
471471 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "reverse" , "toReversed" ] }
472472
473- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
473+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
474474 preservesValue = true and
475475 input = "Argument[this].ArrayElement" and
476476 output = "ReturnValue.ArrayElement"
@@ -482,7 +482,7 @@ class Shift extends SummarizedCallable {
482482
483483 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "shift" }
484484
485- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
485+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
486486 preservesValue = true and
487487 input = "Argument[this].ArrayElement[0]" and
488488 output = "ReturnValue"
@@ -500,7 +500,7 @@ class Sort extends SummarizedCallable {
500500
501501 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = [ "sort" , "toSorted" ] }
502502
503- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
503+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
504504 preservesValue = true and
505505 (
506506 input = "Argument[this].ArrayElement" and
@@ -517,7 +517,7 @@ class Splice extends SummarizedCallable {
517517
518518 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "splice" }
519519
520- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
520+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
521521 preservesValue = true and
522522 (
523523 input = "Argument[this].ArrayElement" and
@@ -534,7 +534,7 @@ class ToSpliced extends SummarizedCallable {
534534
535535 override InstanceCall getACallSimple ( ) { result .getMethodName ( ) = "toSpliced" }
536536
537- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
537+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
538538 preservesValue = true and
539539 (
540540 input = "Argument[this].ArrayElement" and
@@ -551,7 +551,7 @@ class ArrayCoercionPackage extends FunctionalPackageSummary {
551551
552552 override string getAPackageName ( ) { result = [ "arrify" , "array-ify" ] }
553553
554- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
554+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
555555 preservesValue = true and
556556 (
557557 input = "Argument[0].WithArrayElement" and
@@ -573,7 +573,7 @@ class ArrayCopyingPackage extends FunctionalPackageSummary {
573573
574574 override string getAPackageName ( ) { result = [ "array-union" , "array-uniq" , "uniq" ] }
575575
576- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
576+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
577577 preservesValue = true and
578578 input = "Argument[0..].ArrayElement" and
579579 output = "ReturnValue.ArrayElement"
@@ -587,7 +587,7 @@ class ArrayFlatteningPackage extends FunctionalPackageSummary {
587587 result = [ "array-flatten" , "arr-flatten" , "flatten" , "array.prototype.flat" ]
588588 }
589589
590- override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
590+ override predicate propagatesFlow ( string input , string output , boolean preservesValue ) {
591591 // TODO: properly support these. For the moment we're just adding parity with the old model
592592 preservesValue = false and
593593 input = "Argument[0..]" and
0 commit comments