kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-reflect Show documentation
Show all versions of kotlin-reflect Show documentation
Kotlin Full Reflection Library
/*
* 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 kotlin.reflect.jvm.internal.impl.serialization.deserialization
import kotlin.reflect.jvm.internal.impl.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
}