[IR generator] Inherit Field from AbstractField

This is a step towards commonizing the code generator between
FIR and IR: KT-61970
This commit is contained in:
Sergej Jaskiewicz
2023-09-14 18:34:00 +02:00
committed by Space Team
parent 15751333e3
commit f9d17a2d51
7 changed files with 54 additions and 26 deletions
@@ -35,6 +35,16 @@ sealed class Field : AbstractField() {
var withBindThis = true
abstract override var isVolatile: Boolean
abstract override var isFinal: Boolean
abstract override var isLateinit: Boolean
abstract override var isParameter: Boolean
abstract override var isMutable: Boolean
override fun getTypeWithArguments(notNull: Boolean): String = type + generics + if (nullable && !notNull) "?" else ""
fun copy(): Field = internalCopy().also {