Introduce LanguageFeature.Kind

Mainly, Kind affects 'forcesPreReleaseBinaries' and
'enabledInProgressiveMode' flags, and allows to cover common
combinations of those flags.
This commit is contained in:
Dmitry Savvinov
2018-05-16 20:21:23 +03:00
parent c33b7377da
commit 68dbeeac7a
2 changed files with 74 additions and 18 deletions
@@ -224,7 +224,7 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
}
if (progressiveMode) {
LanguageFeature.values().filter { it.enabledInProgressiveMode }.forEach {
LanguageFeature.values().filter { it.kind.enabledInProgressiveMode }.forEach {
// Don't overwrite other settings: users may want to turn off some particular
// breaking change manually instead of turning off whole progressive mode
if (!contains(it)) put(it, LanguageFeature.State.ENABLED)