ImmutableKmTypeParameter

data class ImmutableKmTypeParameter : ImmutableKmWithFlags

Immutable representation of KmTypeParameter.

Represents a type parameter of a Kotlin class, function, property or type alias.

Functions

toMutable
Link copied to clipboard
fun toMutable(): KmTypeParameter

Properties

annotations
Link copied to clipboard
val annotations: List<KmAnnotation>
Annotations on the type parameter.
flags
Link copied to clipboard
open override val flags: Flags
Type parameter flags, consisting of Flag.TypeParameter flags.
id
Link copied to clipboard
val id: Int
The id of the type parameter, useful to be able to uniquely identify the type parameter in different contexts where the name isn't enough (e.g.
name
Link copied to clipboard
val name: String
The name of the type parameter.
upperBounds
Link copied to clipboard
val upperBounds: List<ImmutableKmType>
Upper bounds of the type parameter.
variance
Link copied to clipboard
val variance: KmVariance
The declaration-site variance of the type parameter.

Extensions

isReified
Link copied to clipboard
val ImmutableKmTypeParameter.isReified: Boolean