KmTypeAlias

class KmTypeAlias : KmTypeAliasVisitor

Represents a Kotlin type alias declaration.

Various type alias attributes can be read and manipulated via extension properties, such as KmTypeAlias.visibility or KmTypeAlias.hasAnnotations.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

Annotations on the type alias.

Link copied to clipboard
lateinit var expandedType: KmType

Expanded type of the type alias, i.e. the full expansion of the underlying type, where all type aliases are substituted with their expanded types. If no type aliases are used in the underlying type, the expanded type is equal to the underlying type.

Link copied to clipboard

Indicates that the corresponding type alias has at least one annotation.

Link copied to clipboard

the name of the type alias

Link copied to clipboard

Type parameters of the type alias.

Link copied to clipboard
lateinit var underlyingType: KmType

Underlying type of the type alias, i.e. the type in the right-hand side of the type alias declaration.

Link copied to clipboard

Version requirements on the type alias.

Link copied to clipboard

Represents visibility of the corresponding type alias.

Functions

Link copied to clipboard
open fun visitEnd()

Visits the end of the type alias.