LambdaParameter
data class LambdaParameter(val lPar: Node.Keyword.LPar?, val variables: List<Node.Variable>, val rPar: Node.Keyword.RPar?, val destructuringType: Node.Type?, val supplement: NodeSupplement = NodeSupplement()) : Node
AST node that represents a formal parameter of lambda expression. For example, x in { x -> ... } is a lambda parameter. The node corresponds to KtParameter under KtLambdaExpression. Unlike FunctionParameter, this node can have multiple variables, i.e. destructuring declaration.
Constructors
Link copied to clipboard
constructor(lPar: Node.Keyword.LPar?, variables: List<Node.Variable>, rPar: Node.Keyword.RPar?, destructuringType: Node.Type?, supplement: NodeSupplement = NodeSupplement())
Properties
Link copied to clipboard
type of whole parameter on destructuring if exists, otherwise null.
Link copied to clipboard
left parenthesis of this parameter if exists, otherwise null.
Link copied to clipboard
right parenthesis of this parameter if exists, otherwise null.
Link copied to clipboard
Supplemental data for the node.
Link copied to clipboard
list of variables.