Skip to content

Commit

Permalink
[CLI] Change the type of PhaseConfig.verbose to be PhaseSet
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandev0 authored and qodana-bot committed Dec 12, 2024
1 parent 9fa1a91 commit d13194a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fun createPhaseConfig(

return PhaseConfig(
arguments.disablePhases.orEmpty().toSet(),
arguments.verbosePhases.orEmpty().toSet(),
createPhaseSetFromArguments(arguments.verbosePhases),
createPhaseSetFromArguments(arguments.phasesToDumpBefore) + toDumpBoth,
createPhaseSetFromArguments(arguments.phasesToDumpAfter) + toDumpBoth,
createPhaseSetFromArguments(arguments.phasesToValidateBefore) + toValidateBoth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package org.jetbrains.kotlin.config.phaser
*/
class PhaseConfig(
disabledPhases: Set<String> = emptySet(),
val verbose: Set<String> = emptySet(),
val verbose: PhaseSet = PhaseSet.Enum(emptySet()),
val toDumpStateBefore: PhaseSet = PhaseSet.Enum(emptySet()),
val toDumpStateAfter: PhaseSet = PhaseSet.Enum(emptySet()),
private val toValidateStateBefore: PhaseSet = PhaseSet.Enum(emptySet()),
Expand All @@ -28,7 +28,7 @@ class PhaseConfig(
phase.name !in disabledMut

override fun isVerbose(phase: AnyNamedPhase): Boolean =
phase.name in verbose
phase in verbose

override fun disable(phase: AnyNamedPhase) {
disabledMut += phase.name
Expand Down

0 comments on commit d13194a

Please sign in to comment.