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

component1
Link copied to clipboard
operator fun component1(): KmVersionRequirementVersionKind
component2
Link copied to clipboard
operator fun component2(): KmVersionRequirementLevel
component3
Link copied to clipboard
operator fun component3(): Int?
component4
Link copied to clipboard
operator fun component4(): String?
component5
Link copied to clipboard
operator fun component5(): KmVersion
copy
Link copied to clipboard
fun copy(kind: KmVersionRequirementVersionKind, level: KmVersionRequirementLevel, errorCode: Int?, message: String?, version: KmVersion): ImmutableKmVersionRequirement
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toMutable
Link copied to clipboard
fun toMutable(): KmVersionRequirement
toString
Link copied to clipboard
open override fun toString(): String
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.