IR: remove deprecated constructor of IrConstructorImpl
(cherry picked from commit e505d12cee8817017415f32a25119cbabdc4d03d)
This commit is contained in:
committed by
Vasily Levchenko
parent
db1ac079b0
commit
6f9a4928b3
+9
-7
@@ -20,6 +20,7 @@ import org.jetbrains.kotlin.ir.types.impl.*
|
|||||||
import org.jetbrains.kotlin.ir.util.*
|
import org.jetbrains.kotlin.ir.util.*
|
||||||
import org.jetbrains.kotlin.resolve.descriptorUtil.getSuperClassNotAny
|
import org.jetbrains.kotlin.resolve.descriptorUtil.getSuperClassNotAny
|
||||||
import org.jetbrains.kotlin.resolve.descriptorUtil.getSuperInterfaces
|
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.resolve.descriptorUtil.parentsWithSelf
|
||||||
import org.jetbrains.kotlin.types.KotlinType
|
import org.jetbrains.kotlin.types.KotlinType
|
||||||
|
|
||||||
@@ -85,13 +86,14 @@ internal interface DescriptorToIrTranslationMixin {
|
|||||||
|
|
||||||
fun createConstructor(constructorDescriptor: ClassConstructorDescriptor): IrConstructor {
|
fun createConstructor(constructorDescriptor: ClassConstructorDescriptor): IrConstructor {
|
||||||
val irConstructor = symbolTable.declareConstructor(constructorDescriptor) {
|
val irConstructor = symbolTable.declareConstructor(constructorDescriptor) {
|
||||||
// TODO: [IrUninitializedType] is deprecated.
|
with(constructorDescriptor) {
|
||||||
@Suppress("DEPRECATION")
|
// TODO: [IrUninitializedType] is deprecated.
|
||||||
IrConstructorImpl(
|
@Suppress("DEPRECATION")
|
||||||
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET,
|
IrConstructorImpl(
|
||||||
IrDeclarationOrigin.IR_EXTERNAL_DECLARATION_STUB,
|
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET, IrDeclarationOrigin.IR_EXTERNAL_DECLARATION_STUB, it, name, visibility,
|
||||||
it, IrUninitializedType, constructorDescriptor
|
IrUninitializedType, isInline, isEffectivelyExternal(), isPrimary, isExpect
|
||||||
)
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
irConstructor.valueParameters += constructorDescriptor.valueParameters.map { valueParameterDescriptor ->
|
irConstructor.valueParameters += constructorDescriptor.valueParameters.map { valueParameterDescriptor ->
|
||||||
symbolTable.declareValueParameter(
|
symbolTable.declareValueParameter(
|
||||||
|
|||||||
Reference in New Issue
Block a user