[IR] Autogenerate IrEnumEntryImpl

^KT-65773 In Progress
This commit is contained in:
Wojciech Litewka
2024-02-16 12:46:39 +01:00
committed by Space Team
parent 401113cc27
commit f30f2216cc
2 changed files with 16 additions and 9 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. * 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 package org.jetbrains.kotlin.ir.declarations.impl
import org.jetbrains.kotlin.descriptors.ClassDescriptor import org.jetbrains.kotlin.descriptors.ClassDescriptor
@@ -18,21 +23,23 @@ class IrEnumEntryImpl @IrImplementationDetail constructor(
override val startOffset: Int, override val startOffset: Int,
override val endOffset: Int, override val endOffset: Int,
override var origin: IrDeclarationOrigin, override var origin: IrDeclarationOrigin,
override val symbol: IrEnumEntrySymbol,
override var name: Name,
override val factory: IrFactory, override val factory: IrFactory,
override var name: Name,
override val symbol: IrEnumEntrySymbol,
) : IrEnumEntry() { ) : IrEnumEntry() {
init { override var annotations: List<IrConstructorCall> = emptyList()
symbol.bind(this)
}
override lateinit var parent: IrDeclarationParent override lateinit var parent: IrDeclarationParent
override var annotations: List<IrConstructorCall> = emptyList()
@ObsoleteDescriptorBasedAPI @ObsoleteDescriptorBasedAPI
override val descriptor: ClassDescriptor override val descriptor: ClassDescriptor
get() = symbol.descriptor get() = symbol.descriptor
override var correspondingClass: IrClass? = null
override var initializerExpression: IrExpressionBody? = null override var initializerExpression: IrExpressionBody? = null
override var correspondingClass: IrClass? = null
init {
symbol.bind(this)
}
} }
@@ -94,7 +94,7 @@ object ImplementationConfigurator : AbstractIrTreeImplementationConfigurator() {
} }
impl(enumEntry) { impl(enumEntry) {
implementation.doPrint = false defaultNull("correspondingClass", "initializerExpression")
} }
impl(script) { impl(script) {