[IR] Reorder parameters in IrFactory#createTypeParameter
This is to prepare for IrFactory auto-generation (KT-59308).
This commit is contained in:
committed by
Space Team
parent
b1f7b5e982
commit
2b4a08524d
+8
-3
@@ -18,7 +18,6 @@ import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
|
||||
import org.jetbrains.kotlin.backend.common.ir.addDispatchReceiver
|
||||
import org.jetbrains.kotlin.backend.common.lower.ConstructorDelegationKind
|
||||
import org.jetbrains.kotlin.backend.common.lower.DeclarationIrBuilder
|
||||
import org.jetbrains.kotlin.backend.common.lower.callsSuper
|
||||
import org.jetbrains.kotlin.backend.common.lower.delegationKind
|
||||
import org.jetbrains.kotlin.descriptors.*
|
||||
import org.jetbrains.kotlin.ir.IrStatement
|
||||
@@ -346,8 +345,14 @@ private val IrClassifierSymbol.isFragment: Boolean
|
||||
private fun TranslationPluginContext.declareTypeParameterStub(typeParameterDescriptor: TypeParameterDescriptor): IrTypeParameter {
|
||||
val symbol = IrTypeParameterSymbolImpl(typeParameterDescriptor)
|
||||
return irFactory.createTypeParameter(
|
||||
UNDEFINED_OFFSET, UNDEFINED_OFFSET, IrDeclarationOrigin.DEFINED, symbol, typeParameterDescriptor.name,
|
||||
typeParameterDescriptor.index, typeParameterDescriptor.isReified, typeParameterDescriptor.variance
|
||||
startOffset = UNDEFINED_OFFSET,
|
||||
endOffset = UNDEFINED_OFFSET,
|
||||
origin = IrDeclarationOrigin.DEFINED,
|
||||
name = typeParameterDescriptor.name,
|
||||
symbol = symbol,
|
||||
variance = typeParameterDescriptor.variance,
|
||||
index = typeParameterDescriptor.index,
|
||||
isReified = typeParameterDescriptor.isReified,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user