Variable

data class Variable(    val annotationSets: List<Node.Modifier.AnnotationSet>,     val name: Node.Expression.NameExpression,     val type: Node.Type?,     val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithAnnotationSets

AST node that represents a variable. The node corresponds to KtDestructuringDeclarationEntry, a part of KtProperty, or KtParameter whose child is IDENTIFIER.

Constructors

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

Properties

Link copied to clipboard

list of annotation sets.

Link copied to clipboard

name of the variable.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.

Link copied to clipboard

type of the variable if exists, otherwise null.