KmVersionRequirement

class KmVersionRequirement : KmVersionRequirementVisitor

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.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Optional error code to be displayed in the diagnostic.

Link copied to clipboard

Kind of the version that this declaration requires.

Link copied to clipboard

Level of the diagnostic that must be reported on the usages of the declaration in case the version requirement is not satisfied.

Link copied to clipboard

Optional message to be displayed in the diagnostic.

Link copied to clipboard
lateinit var version: KmVersion

Version required by this requirement.

Functions

Link copied to clipboard
open fun visitEnd()

Visits the end of the version requirement.