IR: remove IrTypeOperatorCall.typeOperandClassifier

This commit is contained in:
Alexander Udalov
2023-02-13 14:43:17 +01:00
committed by Space Team
parent 42daeaaa80
commit d2938e732a
5 changed files with 8 additions and 14 deletions
@@ -8,7 +8,6 @@
package org.jetbrains.kotlin.ir.expressions
import org.jetbrains.kotlin.ir.symbols.IrClassifierSymbol
import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.visitors.IrElementTransformer
import org.jetbrains.kotlin.ir.visitors.IrElementVisitor
@@ -24,8 +23,6 @@ abstract class IrTypeOperatorCall : IrExpression() {
abstract var typeOperand: IrType
abstract val typeOperandClassifier: IrClassifierSymbol
override fun <R, D> accept(visitor: IrElementVisitor<R, D>, data: D): R =
visitor.visitTypeOperator(this, data)
@@ -19,9 +19,7 @@ package org.jetbrains.kotlin.ir.expressions.impl
import org.jetbrains.kotlin.ir.expressions.IrExpression
import org.jetbrains.kotlin.ir.expressions.IrTypeOperator
import org.jetbrains.kotlin.ir.expressions.IrTypeOperatorCall
import org.jetbrains.kotlin.ir.symbols.IrClassifierSymbol
import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.types.classifierOrFail
class IrTypeOperatorCallImpl(
override val startOffset: Int,
@@ -30,7 +28,4 @@ class IrTypeOperatorCallImpl(
override val operator: IrTypeOperator,
override var typeOperand: IrType,
override var argument: IrExpression,
) : IrTypeOperatorCall() {
override val typeOperandClassifier: IrClassifierSymbol
get() = typeOperand.classifierOrFail
}
) : IrTypeOperatorCall()
@@ -973,7 +973,6 @@ object IrTree : AbstractTreeBuilder() {
+field("operator", type(Packages.exprs, "IrTypeOperator"))
+field("argument", expression, mutable = true, isChild = true)
+field("typeOperand", irTypeType, mutable = true)
+field("typeOperandClassifier", classifierSymbolType)
}
val valueAccessExpression: ElementConfig by element(Expression) {
visitorParent = declarationReference