KE2: Start extracting return statements

This commit is contained in:
Ian Lynagh
2024-09-04 18:25:18 +01:00
parent 9601b10734
commit 482cf2f0ff

View File

@@ -2950,7 +2950,7 @@ OLD: KE1
is IrSyntheticBody -> extractSyntheticBody(b, callable)
else -> extractExpressionBody(b, callable)
*/
else -> TODO()
else -> {} // TODO
}
}
}
@@ -6024,13 +6024,13 @@ OLD: KE1
}
*/
is KtReturnExpression -> {
/*
OLD: KE1
val stmtParent = parent.stmt(e, callable)
val id = tw.getFreshIdLabel<DbReturnstmt>()
val locId = tw.getLocation(e)
tw.writeStmts_returnstmt(id, stmtParent.parent, stmtParent.idx, callable)
tw.writeHasLocation(id, locId)
/*
OLD: KE1
extractExpressionExpr(e.value, callable, id, 0, id)
*/
}