TypeParameter

data class TypeParameter(val modifiers: List<Node.Modifier>, val name: Node.Expression.NameExpression, val type: Node.Type?, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithModifiers

AST node that represents a formal type parameter of a function or a class. For example, T in fun <T> f() is a type parameter. The node corresponds to KtTypeParameter.

Constructors

Link copied to clipboard
constructor(modifiers: List<Node.Modifier>, name: Node.Expression.NameExpression, type: Node.Type?, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

list of annotation sets.

Link copied to clipboard
open override val modifiers: List<Node.Modifier>

list of modifiers.

Link copied to clipboard

name of the type parameter.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.

Link copied to clipboard

type of the type parameter if exists, otherwise null.