IR: remove deprecated constructor of IrConstructorImpl

(cherry picked from commit e505d12cee8817017415f32a25119cbabdc4d03d)
This commit is contained in:
Alexander Udalov
2020-07-06 23:21:56 +02:00
committed by Vasily Levchenko
parent db1ac079b0
commit 6f9a4928b3
@@ -20,6 +20,7 @@ import org.jetbrains.kotlin.ir.types.impl.*
import org.jetbrains.kotlin.ir.util.*
import org.jetbrains.kotlin.resolve.descriptorUtil.getSuperClassNotAny
import org.jetbrains.kotlin.resolve.descriptorUtil.getSuperInterfaces
import org.jetbrains.kotlin.resolve.descriptorUtil.isEffectivelyExternal
import org.jetbrains.kotlin.resolve.descriptorUtil.parentsWithSelf
import org.jetbrains.kotlin.types.KotlinType
@@ -85,13 +86,14 @@ internal interface DescriptorToIrTranslationMixin {
fun createConstructor(constructorDescriptor: ClassConstructorDescriptor): IrConstructor {
val irConstructor = symbolTable.declareConstructor(constructorDescriptor) {
// TODO: [IrUninitializedType] is deprecated.
@Suppress("DEPRECATION")
IrConstructorImpl(
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET,
IrDeclarationOrigin.IR_EXTERNAL_DECLARATION_STUB,
it, IrUninitializedType, constructorDescriptor
)
with(constructorDescriptor) {
// TODO: [IrUninitializedType] is deprecated.
@Suppress("DEPRECATION")
IrConstructorImpl(
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET, IrDeclarationOrigin.IR_EXTERNAL_DECLARATION_STUB, it, name, visibility,
IrUninitializedType, isInline, isEffectivelyExternal(), isPrimary, isExpect
)
}
}
irConstructor.valueParameters += constructorDescriptor.valueParameters.map { valueParameterDescriptor ->
symbolTable.declareValueParameter(