ImmutableKmVersionRequirement

data class ImmutableKmVersionRequirement : KmVersionRequirementVisitor

Immutable representation of KmVersionRequirement.

Represents a version requirement on a Kotlin declaration.

Version requirement is an internal feature of the Kotlin compiler and the standard Kotlin library, enabled for example with the internal kotlin.internal.RequireKotlin annotation.

Functions

toMutable
Link copied to clipboard
fun toMutable(): KmVersionRequirement
visit
Link copied to clipboard
open fun visit(kind: KmVersionRequirementVersionKind, level: KmVersionRequirementLevel, errorCode: Int?, message: String?)
visitEnd
Link copied to clipboard
open fun visitEnd()
visitVersion
Link copied to clipboard
open fun visitVersion(major: Int, minor: Int, patch: Int)

Properties

errorCode
Link copied to clipboard
val errorCode: Int?
Optional error code to be displayed in the diagnostic.
kind
Link copied to clipboard
val kind: KmVersionRequirementVersionKind
Kind of the version that this declaration requires.
level
Link copied to clipboard
val level: KmVersionRequirementLevel
Level of the diagnostic that must be reported on the usages of the declaration in case the version requirement is not satisfied.
message
Link copied to clipboard
val message: String?
Optional message to be displayed in the diagnostic.
version
Link copied to clipboard
val version: KmVersion
Version required by this requirement.