File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,12 @@ module LocalFlow {
250
250
scope = e2 and
251
251
isSuccessor = true
252
252
or
253
- e1 = e2 .( CollectionExpression ) .getAnElement ( ) .( SpreadElementExpr ) .getExpr ( ) and
253
+ e1 = e2 .( CollectionExpression ) .getAnElement ( ) and
254
+ e1 instanceof SpreadElementExpr and
255
+ scope = e2 and
256
+ isSuccessor = true
257
+ or
258
+ e1 = e2 .( SpreadElementExpr ) .getExpr ( ) and
254
259
scope = e2 and
255
260
isSuccessor = true
256
261
or
@@ -2018,6 +2023,8 @@ predicate clearsContent(Node n, ContentSet c) {
2018
2023
*/
2019
2024
predicate expectsContent ( Node n , ContentSet c ) {
2020
2025
FlowSummaryImpl:: Private:: Steps:: summaryExpectsContent ( n .( FlowSummaryNode ) .getSummaryNode ( ) , c )
2026
+ or
2027
+ n .asExpr ( ) instanceof SpreadElementExpr and c instanceof ElementContent
2021
2028
}
2022
2029
2023
2030
/**
You can’t perform that action at this time.
0 commit comments