[IR] Autogenerate IrConstructorImpl
^KT-65773 In Progress
This commit is contained in:
committed by
Space Team
parent
d97681f2a9
commit
f2af1bc04a
+27
-18
@@ -3,6 +3,11 @@
|
|||||||
* 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.ClassConstructorDescriptor
|
import org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor
|
||||||
@@ -21,37 +26,41 @@ class IrConstructorImpl @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: IrConstructorSymbol,
|
|
||||||
override var name: Name,
|
|
||||||
override var visibility: DescriptorVisibility,
|
|
||||||
override var isInline: Boolean,
|
|
||||||
override var isExternal: Boolean,
|
|
||||||
override var isPrimary: Boolean,
|
|
||||||
override var isExpect: Boolean,
|
|
||||||
override var containerSource: DeserializedContainerSource?,
|
|
||||||
override val factory: IrFactory,
|
override val factory: IrFactory,
|
||||||
|
override var name: Name,
|
||||||
|
override var isExternal: Boolean,
|
||||||
|
override var visibility: DescriptorVisibility,
|
||||||
|
override val containerSource: DeserializedContainerSource?,
|
||||||
|
override var isInline: Boolean,
|
||||||
|
override var isExpect: Boolean,
|
||||||
|
override val symbol: IrConstructorSymbol,
|
||||||
|
override var isPrimary: Boolean,
|
||||||
) : IrConstructor() {
|
) : IrConstructor() {
|
||||||
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()
|
|
||||||
|
|
||||||
override var typeParameters: List<IrTypeParameter> = emptyList()
|
override var typeParameters: List<IrTypeParameter> = emptyList()
|
||||||
|
|
||||||
override var dispatchReceiverParameter: IrValueParameter? = null
|
override var metadata: MetadataSource? = null
|
||||||
override var extensionReceiverParameter: IrValueParameter? = null
|
|
||||||
override var contextReceiverParametersCount: Int = 0
|
|
||||||
override var valueParameters: List<IrValueParameter> = emptyList()
|
|
||||||
|
|
||||||
override lateinit var returnType: IrType
|
override lateinit var returnType: IrType
|
||||||
|
|
||||||
override var body: IrBody? = null
|
override var dispatchReceiverParameter: IrValueParameter? = null
|
||||||
|
|
||||||
override var metadata: MetadataSource? = null
|
override var extensionReceiverParameter: IrValueParameter? = null
|
||||||
|
|
||||||
|
override var valueParameters: List<IrValueParameter> = emptyList()
|
||||||
|
|
||||||
|
override var contextReceiverParametersCount: Int = 0
|
||||||
|
|
||||||
|
override var body: IrBody? = null
|
||||||
|
|
||||||
@ObsoleteDescriptorBasedAPI
|
@ObsoleteDescriptorBasedAPI
|
||||||
override val descriptor: ClassConstructorDescriptor
|
override val descriptor: ClassConstructorDescriptor
|
||||||
get() = symbol.descriptor
|
get() = symbol.descriptor
|
||||||
|
|
||||||
|
init {
|
||||||
|
symbol.bind(this)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -42,7 +42,10 @@ object ImplementationConfigurator : AbstractIrTreeImplementationConfigurator() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl(constructor) {
|
impl(constructor) {
|
||||||
implementation.doPrint = false
|
defaultEmptyList("valueParameters")
|
||||||
|
defaultNull("dispatchReceiverParameter", "extensionReceiverParameter", "body")
|
||||||
|
default("contextReceiverParametersCount", "0")
|
||||||
|
isLateinit("returnType")
|
||||||
}
|
}
|
||||||
|
|
||||||
impl(field) {
|
impl(field) {
|
||||||
|
|||||||
Reference in New Issue
Block a user