LambdaExpression

data class LambdaExpression(val parameters: List<Node.LambdaParameter>, val arrow: Node.Keyword.Arrow?, val statements: List<Node.Statement>, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.WithStatements

AST node that represents a lambda expression. The node corresponds to KtLambdaExpression.

LambdaExpression = { LambdaParameter, LambdaParameter ->Statement... }

Constructors

Link copied to clipboard
constructor(parameters: List<Node.LambdaParameter>, arrow: Node.Keyword.Arrow?, statements: List<Node.Statement>, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

arrow symbol of the lambda expression if exists, otherwise null.

Link copied to clipboard

list of parameters in the lambda expression.

Link copied to clipboard
open override val statements: List<Node.Statement>

list of statements in the lambda expression.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.