WhenSubject
data class WhenSubject(val lPar: Node.Keyword.LPar, val annotationSets: List<Node.Modifier.AnnotationSet>, val variable: Node.Variable?, val expression: Node.Expression, val rPar: Node.Keyword.RPar, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithAnnotationSets
AST node that represents a subject of when expression. The node corresponds to a part of KtWhenExpression.
Constructors
Link copied to clipboard
constructor(lPar: Node.Keyword.LPar, annotationSets: List<Node.Modifier.AnnotationSet>, variable: Node.Variable?, expression: Node.Expression, rPar: Node.Keyword.RPar, supplement: NodeSupplement = NodeSupplement())
Properties
Link copied to clipboard
list of annotation sets.
Link copied to clipboard
expression of when subject.
Link copied to clipboard
left parenthesis of when subject.
Link copied to clipboard
right parenthesis of when subject.
Link copied to clipboard
Supplemental data for the node.
Link copied to clipboard
variable of when subject if exists, otherwise null
.