[IR] Autogenerate IrClassImpl

^KT-65773 In Progress
This commit is contained in:
Wojciech Litewka
2024-02-22 11:23:22 +01:00
committed by Space Team
parent fde3ea14ae
commit 401113cc27
2 changed files with 43 additions and 26 deletions
@@ -1,8 +1,13 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
// This file was generated automatically. See compiler/ir/ir.tree/tree-generator/ReadMe.md.
// DO NOT MODIFY IT MANUALLY.
@file:Suppress("DuplicatedCode", "unused")
package org.jetbrains.kotlin.ir.declarations.impl
import org.jetbrains.kotlin.descriptors.*
@@ -20,49 +25,58 @@ open class IrClassImpl @IrImplementationDetail constructor(
override val startOffset: Int,
override val endOffset: Int,
override var origin: IrDeclarationOrigin,
final override val symbol: IrClassSymbol,
override val factory: IrFactory,
override var name: Name,
override var kind: ClassKind,
override var visibility: DescriptorVisibility,
override val symbol: IrClassSymbol,
override var kind: ClassKind,
override var modality: Modality,
override val source: SourceElement,
override val factory: IrFactory,
) : IrClass() {
init {
symbol.bind(this)
}
override var annotations: List<IrConstructorCall> = emptyList()
override lateinit var parent: IrDeclarationParent
override var annotations: List<IrConstructorCall> = emptyList()
override var isExternal: Boolean = false
override var typeParameters: List<IrTypeParameter> = emptyList()
@UnsafeDuringIrConstructionAPI
override val declarations: MutableList<IrDeclaration> = ArrayList()
override var attributeOwnerId: IrAttributeContainer = this
override var originalBeforeInline: IrAttributeContainer? = null
override var metadata: MetadataSource? = null
@ObsoleteDescriptorBasedAPI
override val descriptor: ClassDescriptor
get() = symbol.descriptor
override var thisReceiver: IrValueParameter? = null
override var isCompanion: Boolean = false
@UnsafeDuringIrConstructionAPI
override val declarations: MutableList<IrDeclaration> = ArrayList()
override var isInner: Boolean = false
override var typeParameters: List<IrTypeParameter> = emptyList()
override var isData: Boolean = false
override var isValue: Boolean = false
override var isExpect: Boolean = false
override var isFun: Boolean = false
override var hasEnumEntries: Boolean = false
override var superTypes: List<IrType> = emptyList()
override var thisReceiver: IrValueParameter? = null
override var valueClassRepresentation: ValueClassRepresentation<IrSimpleType>? = null
override var metadata: MetadataSource? = null
override var attributeOwnerId: IrAttributeContainer = this
override var originalBeforeInline: IrAttributeContainer? = null
override var sealedSubclasses: List<IrClassSymbol> = emptyList()
override var isCompanion: Boolean = false
override var isInner: Boolean = false
override var isData: Boolean = false
override var isExternal: Boolean = false
override var isValue: Boolean = false
override var isExpect: Boolean = false
override var isFun: Boolean = false
override var hasEnumEntries: Boolean = false
init {
symbol.bind(this)
}
}
@@ -87,7 +87,10 @@ object ImplementationConfigurator : AbstractIrTreeImplementationConfigurator() {
}
impl(`class`) {
implementation.doPrint = false
kind = ImplementationKind.OpenClass
defaultNull("thisReceiver", "valueClassRepresentation")
defaultEmptyList("superTypes", "sealedSubclasses")
defaultFalse("isExternal", "isCompanion", "isInner", "isData", "isValue", "isExpect", "isFun", "hasEnumEntries")
}
impl(enumEntry) {