Refactor AnalysisFlags and their support in IDE

* Support flags with any value (not just Boolean)
* Support all flags by parsing arguments in KotlinFacetSettings, instead
  of manually listing known flags

 #KT-19210 Fixed

Original commit: 2f99f6ad34
This commit is contained in:
Alexander Udalov
2017-07-24 20:49:00 +03:00
parent f6eb56c4cc
commit 5747e1505a
@@ -124,12 +124,6 @@ class KotlinFacetSettings {
LanguageFeature.State.ENABLED_WITH_ERROR, LanguageFeature.State.DISABLED -> CommonCompilerArguments.ERROR
}
}
var skipMetadataVersionCheck: Boolean
get() = compilerArguments?.skipMetadataVersionCheck == true
set(value) {
compilerArguments!!.skipMetadataVersionCheck = value
}
}
fun TargetPlatformKind<*>.createCompilerArguments(init: CommonCompilerArguments.() -> Unit = {}): CommonCompilerArguments {