ConditionalWhenBranch

AST node that represents a when branch with conditions.

Constructors

Link copied to clipboard
constructor(conditions: List<Node.Expression.WhenExpression.WhenCondition>, arrow: Node.Keyword.Arrow, body: Node.Expression, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard
open override val arrow: Node.Keyword.Arrow

arrow symbol.

Link copied to clipboard
open override val body: Node.Expression

body expression of this branch.

Link copied to clipboard

non-empty list of conditions.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.