IR: cleanup expression implementations

Remove unused constructors with descriptors, minimize usages of
secondary constructors and make some properties non-lateinit, fix some
inspections.
This commit is contained in:
Alexander Udalov
2020-07-22 16:51:13 +02:00
parent e36d3ba4f6
commit 687d13a320
28 changed files with 58 additions and 206 deletions
@@ -673,9 +673,7 @@ abstract class IrFileDeserializer(
val operator = deserializeTypeOperator(proto.operator)
val operand = deserializeIrType(proto.operand)//.brokenIr
val argument = deserializeExpression(proto.argument)
return IrTypeOperatorCallImpl(start, end, type, operator, operand).apply {
this.argument = argument
}
return IrTypeOperatorCallImpl(start, end, type, operator, operand, argument)
}
private fun deserializeVararg(proto: ProtoVararg, start: Int, end: Int, type: IrType): IrVararg {