Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 712d702

Browse files
committed
Kotlin: Add CFG for VarArgExpr
1 parent 8440baf commit 712d702

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ private module ControlFlowGraphImpl {
461461
or
462462
this instanceof StringTemplateExpr
463463
or
464+
this instanceof VarArgExpr
465+
or
464466
this instanceof ClassExpr
465467
or
466468
this instanceof RValue
@@ -556,6 +558,10 @@ private module ControlFlowGraphImpl {
556558
result = e.getComponent(index)
557559
)
558560
or
561+
exists(VarArgExpr e | e = this |
562+
result = e.getComponent(index)
563+
)
564+
or
559565
index = 0 and result = this.(ClassExpr).getExpr()
560566
or
561567
index = 0 and result = this.(ReturnStmt).getResult()

0 commit comments

Comments
 (0)