Kotlin: Add IrContainerExpression

This commit is contained in:
Ian Lynagh
2021-08-16 16:01:14 +01:00
parent e7cabfb965
commit 94eefbff17
3 changed files with 5 additions and 3 deletions

View File

@@ -591,7 +591,7 @@ class KotlinFileExtractor(val logger: Logger, val tw: TrapWriter) {
tw.writeStmts_returnstmt(id, parent, idx, callable)
tw.writeHasLocation(id, locId)
extractExpression(e.value, callable, id, 0)
} is IrBlock -> {
} is IrContainerExpression -> {
val id = tw.getFreshIdLabel<DbBlock>()
val locId = tw.getLocation(e.startOffset, e.endOffset)
tw.writeStmts_block(id, parent, idx, callable)
@@ -639,8 +639,7 @@ class KotlinFileExtractor(val logger: Logger, val tw: TrapWriter) {
tw.writeWhen_branch_else(bId)
}
}
}
else -> {
} else -> {
logger.warn("Unrecognised IrExpression: " + e.javaClass)
}
}