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())