LambdaArgument¶
interface LambdaArgument : ValueArgument
A ValueArgument that is a trailing lambda passed outside the call parentheses, as in list.forEach { ... }.
Inheritors¶
Properties¶
isSpread¶
Functions¶
asElement¶
Returns the underlying PSI element that this argument corresponds to.
getArgumentExpression¶
abstract fun getArgumentExpression(): KtExpression?
Returns the argument expression, or null if it is missing in incomplete code.
getArgumentName¶
abstract fun getArgumentName(): ValueArgumentName?
Returns the argument name for a named argument (name = value), or null if this argument is positional.
getLambdaExpression¶
abstract fun getLambdaExpression(): KtLambdaExpression?
Returns the lambda expression of this argument, or null if it is missing in incomplete code.
getSpreadElement¶
abstract fun getSpreadElement(): LeafPsiElement?
Returns the * spread token for a spread argument (foo(*array), which passes an array as a series of vararg arguments), or null if this argument is not spread.
isExternal¶
abstract fun isExternal(): Boolean
Returns true if the argument is located outside of the call element, as with the range in a when condition with a subject: when (a) { in c -> }.