Extract WhenBranch as Stmt

This commit is contained in:
Tony Torralba
2022-03-07 15:55:42 +01:00
committed by Ian Lynagh
parent 10ab11cdf7
commit 4b22e1a378
4 changed files with 9 additions and 19 deletions

View File

@@ -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)