mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Kotlin: WhenBranch isn't postorder
This commit is contained in:
@@ -478,8 +478,6 @@ private module ControlFlowGraphImpl {
|
||||
this instanceof LocalTypeDeclStmt
|
||||
or
|
||||
this instanceof AssertStmt
|
||||
or
|
||||
this instanceof WhenBranch
|
||||
}
|
||||
|
||||
/** Gets child nodes in their order of execution. Indexing starts at either -1 or 0. */
|
||||
@@ -593,6 +591,8 @@ private module ControlFlowGraphImpl {
|
||||
or
|
||||
result = n and n instanceof WhenExpr
|
||||
or
|
||||
result = n and n instanceof WhenBranch
|
||||
or
|
||||
result = n and n.(PostOrderNode).isLeafNode()
|
||||
or
|
||||
result = first(n.(PostOrderNode).firstChild())
|
||||
|
||||
Reference in New Issue
Block a user