ValueArgument

data class ValueArgument(val name: Node.Expression.NameExpression?, val spreadOperator: Node.Keyword.Asterisk?, val expression: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node

AST node that represents an actual value argument of a function call. For example, foo(1, 2) has two value arguments 1 and 2. The node corresponds to KtValueArgument.

Constructors

Link copied to clipboard
constructor(name: Node.Expression.NameExpression?, spreadOperator: Node.Keyword.Asterisk?, expression: Node.Expression, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

expression of the argument.

Link copied to clipboard

name of the argument if exists, otherwise null.

Link copied to clipboard

spread operator if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.