Move skipMetadataVersionCheck flag to LanguageVersionSettings

This makes it possible to avoid the CompilerConfiguration instance in
injectors, because CompilerDeserializationConfiguration was the only
left component that required it.

LanguageVersionSettings is not a good name for this entity anymore, it
should be renamed in the future

Original commit: ac530ac49c
This commit is contained in:
Alexander Udalov
2017-03-13 10:34:45 +03:00
parent d01eed9849
commit 848d3761d1
@@ -123,6 +123,12 @@ class KotlinFacetSettings {
coroutinesError = value == CoroutineSupport.DISABLED
}
}
var skipMetadataVersionCheck: Boolean
get() = compilerArguments?.skipMetadataVersionCheck == true
set(value) {
compilerArguments!!.skipMetadataVersionCheck = value
}
}
fun TargetPlatformKind<*>.createCompilerArguments(): CommonCompilerArguments {