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:
@@ -124,12 +124,6 @@ class KotlinFacetSettings {
|
|||||||
LanguageFeature.State.ENABLED_WITH_ERROR, LanguageFeature.State.DISABLED -> CommonCompilerArguments.ERROR
|
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 {
|
fun TargetPlatformKind<*>.createCompilerArguments(init: CommonCompilerArguments.() -> Unit = {}): CommonCompilerArguments {
|
||||||
|
|||||||
Reference in New Issue
Block a user