Extract type access for enum value access

This commit is contained in:
Tamas Vajk
2022-04-14 15:03:50 +02:00
committed by Ian Lynagh
parent b5c8d29e40
commit f43296a157
2 changed files with 6 additions and 1 deletions

View File

@@ -2487,6 +2487,8 @@ open class KotlinFileExtractor(
if (receiver != null) {
extractExpressionExpr(receiver, callable, id, -1, exprParent.enclosingStmt)
}
// todo: do we need to extract a type access expression for static fields?
}
is IrGetEnumValue -> {
val exprParent = parent.expr(e, callable)
@@ -2511,6 +2513,8 @@ open class KotlinFileExtractor(
val vId = useEnumEntry(owner)
tw.writeVariableBinding(id, vId)
extractTypeAccessRecursive(e.type, locId, id, -1, callable, exprParent.enclosingStmt)
}
is IrSetValue,
is IrSetField -> {