[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
@@ -9,26 +9,26 @@ abstract class AbstractField : Importable {
abstract val name: String
val typeRef: TypeRef
open val typeRef: TypeRef
get() = type(packageName!!, type).withArgs(*arguments.toTypedArray()).copy(nullable = nullable)
open val arguments = mutableListOf<TypeRef>()
abstract val nullable: Boolean
abstract var isVolatile: Boolean
abstract val isVolatile: Boolean
abstract var isFinal: Boolean
abstract val isFinal: Boolean
abstract var isLateinit: Boolean
abstract val isLateinit: Boolean
abstract var isParameter: Boolean
abstract val isParameter: Boolean
open val arbitraryImportables: MutableList<Importable> = mutableListOf()
open var optInAnnotation: ArbitraryImportable? = null
abstract var isMutable: Boolean
abstract val isMutable: Boolean
open val withGetter: Boolean get() = false
open val customSetter: String? get() = null