ArgumentHolder

This interfaces denotes that Node can accept arguments. The most famous example would be a CallExpression to populate CallExpression.arguments or the ReturnStatement.returnValue of a return statement.

We do have some use-cases where we are a little "relaxed" about what is an argument. For example, we also consider the BinaryOperator.lhs and BinaryOperator.rhs of a binary operator as arguments, so we can use node builders in the Node Fluent DSL.

Functions

Link copied to clipboard
abstract fun addArgument(expression: Expression)

Adds the expression to the list of arguments.

Link copied to clipboard
open operator override fun plusAssign(node: Expression)

Adds a Node to the list of "held" nodes.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard