mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Kotlin: Add CFG for ClassExpr
This commit is contained in:
@@ -461,6 +461,8 @@ private module ControlFlowGraphImpl {
|
||||
or
|
||||
this instanceof StringTemplateExpr
|
||||
or
|
||||
this instanceof ClassExpr
|
||||
or
|
||||
this instanceof RValue
|
||||
or
|
||||
this instanceof Call // includes both expressions and statements
|
||||
@@ -554,6 +556,8 @@ private module ControlFlowGraphImpl {
|
||||
result = e.getComponent(index)
|
||||
)
|
||||
or
|
||||
index = 0 and result = this.(ClassExpr).getExpr()
|
||||
or
|
||||
index = 0 and result = this.(ReturnStmt).getResult()
|
||||
or
|
||||
index = 0 and result = this.(ThrowStmt).getExpr()
|
||||
|
||||
Reference in New Issue
Block a user