JVM_IR drop StripTypeAliasDeclarationsLowering
This commit is contained in:
@@ -52,12 +52,6 @@ private val validateIrAfterLowering = makeCustomPhase(
|
|||||||
description = "Validate IR after lowering"
|
description = "Validate IR after lowering"
|
||||||
)
|
)
|
||||||
|
|
||||||
private val stripTypeAliasDeclarationsPhase = makeIrFilePhase<CommonBackendContext>(
|
|
||||||
{ StripTypeAliasDeclarationsLowering() },
|
|
||||||
name = "StripTypeAliasDeclarations",
|
|
||||||
description = "Strip typealias declarations"
|
|
||||||
)
|
|
||||||
|
|
||||||
// TODO make all lambda-related stuff work with IrFunctionExpression and drop this phase
|
// TODO make all lambda-related stuff work with IrFunctionExpression and drop this phase
|
||||||
private val provisionalFunctionExpressionPhase = makeIrFilePhase<CommonBackendContext>(
|
private val provisionalFunctionExpressionPhase = makeIrFilePhase<CommonBackendContext>(
|
||||||
{ ProvisionalFunctionExpressionLowering() },
|
{ ProvisionalFunctionExpressionLowering() },
|
||||||
@@ -260,7 +254,6 @@ private val kotlinNothingValueExceptionPhase = makeIrFilePhase<CommonBackendCont
|
|||||||
|
|
||||||
private val jvmFilePhases = listOf(
|
private val jvmFilePhases = listOf(
|
||||||
typeAliasAnnotationMethodsPhase,
|
typeAliasAnnotationMethodsPhase,
|
||||||
stripTypeAliasDeclarationsPhase,
|
|
||||||
provisionalFunctionExpressionPhase,
|
provisionalFunctionExpressionPhase,
|
||||||
|
|
||||||
jvmOverloadsAnnotationPhase,
|
jvmOverloadsAnnotationPhase,
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ inline fun <T, reified S : T> MutableList<T>.transformSubsetFlat(transformation:
|
|||||||
when (transformed?.size) {
|
when (transformed?.size) {
|
||||||
null -> i++
|
null -> i++
|
||||||
0 -> removeAt(i)
|
0 -> removeAt(i)
|
||||||
1 -> set(i++, transformed.first())
|
1 -> set(i++, transformed[0])
|
||||||
else -> {
|
else -> {
|
||||||
addAll(i, transformed)
|
addAll(i, transformed)
|
||||||
i += transformed.size
|
i += transformed.size
|
||||||
|
|||||||
Reference in New Issue
Block a user