ReturnExpression

data class ReturnExpression(val label: Node.Expression.NameExpression?, val expression: Node.Expression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.Expression.WithLabel

AST node that represents a return expression. The node corresponds to KtReturnExpression.

Constructors

Link copied to clipboard
constructor(label: Node.Expression.NameExpression?, expression: Node.Expression?, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

expression to be returned if exists, otherwise null.

Link copied to clipboard

label of this return expression if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.