Refactor metadata serialization for using after frontend

for "tight" IC cycle
This commit is contained in:
Ilya Chernikov
2021-12-15 09:01:03 +01:00
committed by teamcity
parent 5cca01a7d2
commit 3ca4fe5f9e
9 changed files with 393 additions and 267 deletions
@@ -404,7 +404,7 @@ class GenerationState private constructor(
classBuilderMode == ClassBuilderMode.LIGHT_CLASSES && origin.originKind in doNotGenerateInLightClassMode
companion object {
private val LANGUAGE_TO_METADATA_VERSION = EnumMap<LanguageVersion, JvmMetadataVersion>(LanguageVersion::class.java).apply {
val LANGUAGE_TO_METADATA_VERSION = EnumMap<LanguageVersion, JvmMetadataVersion>(LanguageVersion::class.java).apply {
val oldMetadataVersion = JvmMetadataVersion(1, 1, 18)
this[KOTLIN_1_0] = oldMetadataVersion
this[KOTLIN_1_1] = oldMetadataVersion