IR API: Make IrEnumEntry.initializerExpression IrExpressionBody
All non-declarations should be inside IrBody's now
This commit is contained in:
+1
-1
@@ -1097,7 +1097,7 @@ abstract class IrFileDeserializer(
|
||||
if (proto.hasCorrespondingClass())
|
||||
correspondingClass = deserializeIrClass(proto.correspondingClass)
|
||||
if (proto.hasInitializer())
|
||||
initializerExpression = deserializeExpressionBody(proto.initializer)
|
||||
initializerExpression = IrExpressionBodyImpl(deserializeExpressionBody(proto.initializer))
|
||||
|
||||
(descriptor as? WrappedEnumEntryDescriptor)?.bind(this)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1231,7 +1231,7 @@ open class IrFileSerializer(
|
||||
.setName(serializeName(enumEntry.name))
|
||||
|
||||
enumEntry.initializerExpression?.let {
|
||||
proto.initializer = serializeIrExpressionBody(it)
|
||||
proto.initializer = serializeIrExpressionBody(it.expression)
|
||||
}
|
||||
enumEntry.correspondingClass?.let {
|
||||
proto.correspondingClass = serializeIrClass(it)
|
||||
|
||||
Reference in New Issue
Block a user