@@ -18,10 +18,10 @@ private class SummarizedCallableIdentity extends SummarizedCallable {
1818
1919 override MethodCall getACall ( ) { result .getMethodName ( ) = this }
2020
21- override predicate propagatesFlowExt ( string input , string output , string kind ) {
21+ override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
2222 input = "Argument[0]" and
2323 output = "ReturnValue" and
24- kind = "value"
24+ preservesValue = true
2525 }
2626}
2727
@@ -30,14 +30,14 @@ private class SummarizedCallableApplyBlock extends SummarizedCallable {
3030
3131 override MethodCall getACall ( ) { result .getMethodName ( ) = this }
3232
33- override predicate propagatesFlowExt ( string input , string output , string kind ) {
33+ override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
3434 input = "Argument[0]" and
3535 output = "Parameter[0] of BlockArgument" and
36- kind = "value"
36+ preservesValue = true
3737 or
3838 input = "ReturnValue of BlockArgument" and
3939 output = "ReturnValue" and
40- kind = "value"
40+ preservesValue = true
4141 }
4242}
4343
@@ -46,14 +46,14 @@ private class SummarizedCallableApplyLambda extends SummarizedCallable {
4646
4747 override MethodCall getACall ( ) { result .getMethodName ( ) = this }
4848
49- override predicate propagatesFlowExt ( string input , string output , string kind ) {
49+ override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
5050 input = "Argument[1]" and
5151 output = "Parameter[0] of Argument[0]" and
52- kind = "value"
52+ preservesValue = true
5353 or
5454 input = "ReturnValue of Argument[0]" and
5555 output = "ReturnValue" and
56- kind = "value"
56+ preservesValue = true
5757 }
5858}
5959
0 commit comments