Fix binary compatibility with AS 222/223 in PhaseConfig
(cherry picked from commit a419120cbd6050417945a0e9f411213debd15b77)
This commit is contained in:
committed by
Space Team
parent
4be2f53b47
commit
5f4a560899
+21
@@ -48,6 +48,27 @@ class PhaseConfig(
|
||||
override val checkConditions: Boolean = false,
|
||||
override val checkStickyConditions: Boolean = false
|
||||
) : PhaseConfigurationService {
|
||||
@Deprecated("Provided for binary compatibility", level = DeprecationLevel.HIDDEN)
|
||||
constructor(
|
||||
compoundPhase: CompilerPhase<*, *, *>,
|
||||
phases: Map<String, AnyNamedPhase> = compoundPhase.toPhaseMap(),
|
||||
initiallyEnabled: Set<AnyNamedPhase> = phases.values.toSet(),
|
||||
verbose: Set<AnyNamedPhase> = emptySet(),
|
||||
toDumpStateBefore: Set<AnyNamedPhase> = emptySet(),
|
||||
toDumpStateAfter: Set<AnyNamedPhase> = emptySet(),
|
||||
dumpToDirectory: String? = null,
|
||||
dumpOnlyFqName: String? = null,
|
||||
toValidateStateBefore: Set<AnyNamedPhase> = emptySet(),
|
||||
toValidateStateAfter: Set<AnyNamedPhase> = emptySet(),
|
||||
@Suppress("UNUSED_PARAMETER") namesOfElementsExcludedFromDumping: Set<String> = emptySet(),
|
||||
needProfiling: Boolean = false,
|
||||
checkConditions: Boolean = false,
|
||||
checkStickyConditions: Boolean = false,
|
||||
) : this(
|
||||
compoundPhase, phases, initiallyEnabled, verbose, toDumpStateBefore, toDumpStateAfter, dumpToDirectory, dumpOnlyFqName,
|
||||
toValidateStateBefore, toValidateStateAfter, needProfiling, checkConditions, checkStickyConditions
|
||||
)
|
||||
|
||||
fun toBuilder() = PhaseConfigBuilder(compoundPhase).also {
|
||||
it.enabled.addAll(initiallyEnabled)
|
||||
it.verbose.addAll(verbose)
|
||||
|
||||
Reference in New Issue
Block a user