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
This commit is contained in:
Alexander Udalov
2017-03-13 10:34:45 +03:00
parent f5d4dd33da
commit ac530ac49c
9 changed files with 24 additions and 11 deletions
@@ -100,6 +100,8 @@ interface LanguageVersionSettings {
// Please do not use this to enable/disable specific features/checks. Instead add a new LanguageFeature entry and call supportsFeature
val languageVersion: LanguageVersion
val skipMetadataVersionCheck: Boolean
val additionalFeatures: Collection<LanguageFeature>
@Deprecated("This is a temporary solution, please do not use.")
@@ -109,6 +111,7 @@ interface LanguageVersionSettings {
class LanguageVersionSettingsImpl @JvmOverloads constructor(
override val languageVersion: LanguageVersion,
override val apiVersion: ApiVersion,
override val skipMetadataVersionCheck: Boolean = false,
additionalFeatures: Collection<LanguageFeature> = emptySet(),
override val isApiVersionExplicit: Boolean = false
) : LanguageVersionSettings {