org.jetbrains.kotlin.serialization.deserialization.DeserializationConfiguration.kt Maven / Gradle / Ivy
/*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.serialization.deserialization
import org.jetbrains.kotlin.metadata.deserialization.BinaryVersion
interface DeserializationConfiguration {
val binaryVersion: BinaryVersion?
get() = null
val skipMetadataVersionCheck: Boolean
get() = false
val skipPrereleaseCheck: Boolean
get() = false
val reportErrorsOnPreReleaseDependencies: Boolean
get() = false
val allowUnstableDependencies: Boolean
get() = false
val typeAliasesAllowed: Boolean
get() = true
val isJvmPackageNameSupported: Boolean
get() = true
val readDeserializedContracts: Boolean
get() = false
/**
* We may want to preserve the order of the declarations the same as in the serialized object
* (for example, to later create a decompiled code with the original order of declarations).
*
* It is required to avoid PSI-Stub mismatch errors like in KT-41346.
*/
val preserveDeclarationsOrdering: Boolean
get() = false
object Default : DeserializationConfiguration
}