IR: undeprecate IrUninitializedType
It's no longer a temporary hack, see the comment. (cherry picked from commit a3f3c4543f545eae76d322d5ae697347c94528cc)
This commit is contained in:
committed by
Vasily Levchenko
parent
75dc0643c9
commit
ddb5588258
+2
-2
@@ -23,7 +23,7 @@ import org.jetbrains.kotlin.ir.expressions.impl.IrTryImpl
|
||||
import org.jetbrains.kotlin.ir.symbols.impl.IrSimpleFunctionSymbolImpl
|
||||
import org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl
|
||||
import org.jetbrains.kotlin.ir.types.IrType
|
||||
import org.jetbrains.kotlin.ir.types.impl.*
|
||||
import org.jetbrains.kotlin.ir.types.impl.IrUninitializedType
|
||||
import org.jetbrains.kotlin.ir.util.constructors
|
||||
import org.jetbrains.kotlin.ir.util.irBuilder
|
||||
import org.jetbrains.kotlin.ir.util.irCatch
|
||||
@@ -108,7 +108,7 @@ private fun createKotlinBridge(
|
||||
isExternal: Boolean
|
||||
): IrFunction {
|
||||
val bridgeDescriptor = WrappedSimpleFunctionDescriptor()
|
||||
@Suppress("DEPRECATION") val bridge = IrFunctionImpl(
|
||||
val bridge = IrFunctionImpl(
|
||||
startOffset,
|
||||
endOffset,
|
||||
IrDeclarationOrigin.DEFINED,
|
||||
|
||||
+1
-3
@@ -15,7 +15,7 @@ import org.jetbrains.kotlin.ir.expressions.IrExpression
|
||||
import org.jetbrains.kotlin.ir.expressions.impl.IrInstanceInitializerCallImpl
|
||||
import org.jetbrains.kotlin.ir.symbols.IrClassSymbol
|
||||
import org.jetbrains.kotlin.ir.symbols.IrSymbol
|
||||
import org.jetbrains.kotlin.ir.types.impl.*
|
||||
import org.jetbrains.kotlin.ir.types.impl.IrUninitializedType
|
||||
import org.jetbrains.kotlin.ir.util.*
|
||||
import org.jetbrains.kotlin.resolve.descriptorUtil.getSuperClassNotAny
|
||||
import org.jetbrains.kotlin.resolve.descriptorUtil.getSuperInterfaces
|
||||
@@ -82,8 +82,6 @@ internal interface DescriptorToIrTranslationMixin {
|
||||
fun createConstructor(constructorDescriptor: ClassConstructorDescriptor): IrConstructor {
|
||||
val irConstructor = symbolTable.declareConstructor(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
|
||||
|
||||
Reference in New Issue
Block a user