CallExpression

data class CallExpression(val calleeExpression: Node.Expression, val lAngle: Node.Keyword.Less?, val typeArguments: List<Node.TypeArgument>, val rAngle: Node.Keyword.Greater?, val lPar: Node.Keyword.LPar?, val arguments: List<Node.ValueArgument>, val rPar: Node.Keyword.RPar?, val lambdaArgument: Node.Expression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression, Node.WithTypeArguments, Node.WithValueArguments

AST node that represents a call expression. The node corresponds to KtCallElement.

Constructors

Link copied to clipboard
constructor(calleeExpression: Node.Expression, lAngle: Node.Keyword.Less?, typeArguments: List<Node.TypeArgument>, rAngle: Node.Keyword.Greater?, lPar: Node.Keyword.LPar?, arguments: List<Node.ValueArgument>, rPar: Node.Keyword.RPar?, lambdaArgument: Node.Expression?, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard
open override val arguments: List<Node.ValueArgument>

list of value arguments.

Link copied to clipboard

callee expression.

Link copied to clipboard

lambda argument expression if exists, otherwise null. This can be one of LambdaExpression, AnnotatedExpression or LabeledExpression. To extract the lambda expression, use lambdaExpression.

Link copied to clipboard
open override val lAngle: Node.Keyword.Less?

left angle bracket of the type arguments if exists, otherwise null.

Link copied to clipboard
open override val lPar: Node.Keyword.LPar?

left parenthesis of the value arguments if exists, otherwise null.

Link copied to clipboard
open override val rAngle: Node.Keyword.Greater?

right angle bracket of the type arguments if exists, otherwise null.

Link copied to clipboard
open override val rPar: Node.Keyword.RPar?

right parenthesis of the value arguments if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.

Link copied to clipboard

list of type arguments.

Functions

Link copied to clipboard

Returns the lambda expression of the lambda argument if exists, otherwise null.