IR: IrTypeOperatorCall.classifierSymbol can be computed from typeOperand

This commit is contained in:
Dmitry Petrov
2019-04-22 17:13:47 +03:00
parent 18c3778250
commit 7a44b0f951
23 changed files with 227 additions and 145 deletions
@@ -240,6 +240,7 @@ object JsIrBuilder {
fun buildWhen(type: IrType, branches: List<IrBranch>, origin: IrStatementOrigin = SYNTHESIZED_STATEMENT) =
IrWhenImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, type, origin, branches)
// TODO drop type symbol here, it's really not needed
fun buildTypeOperator(type: IrType, operator: IrTypeOperator, argument: IrExpression, toType: IrType, symbol: IrClassifierSymbol) =
IrTypeOperatorCallImpl(UNDEFINED_OFFSET, UNDEFINED_OFFSET, type, operator, toType, symbol, argument)