mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Extract WhenBranch as Stmt
This commit is contained in:
committed by
Ian Lynagh
parent
10ab11cdf7
commit
4b22e1a378
@@ -2411,7 +2411,7 @@ open class KotlinFileExtractor(
|
||||
e.branches.forEachIndexed { i, b ->
|
||||
val bId = tw.getFreshIdLabel<DbWhenbranch>()
|
||||
val bLocId = tw.getLocation(b)
|
||||
tw.writeWhen_branch(bId, id, i)
|
||||
tw.writeStmts_whenbranch(bId, id, i, callable)
|
||||
tw.writeHasLocation(bId, bLocId)
|
||||
extractExpressionExpr(b.condition, callable, bId, 0, exprParent.enclosingStmt)
|
||||
extractExpressionStmt(b.result, callable, bId, 1)
|
||||
|
||||
Reference in New Issue
Block a user