KaFunctionCall
KaFunctionCall<S> represents a call to a function within Kotlin code — regular functions, constructors, superclass constructors, and annotations.
Hierarchy
Inherits KaSingleCall. (For historical reasons it also inherits the legacy KaCallableMemberCall; new code should treat KaFunctionCall as a KaSingleCall and use the inline accessors documented there.)
The following subtypes commit to a specific kind of function call:
KaImplicitInvokeCall — an implicit
invokecall.KaAnnotationCall — a call to an annotation constructor.
KaDelegatedConstructorCall — a
this(...)orsuper(...)delegation.
Members
In addition to the KaSingleCall members (signature, dispatchReceiver, extensionReceiver, contextArguments, typeArgumentsMapping), KaFunctionCall adds argument mappings.
val valueArgumentMapping: Map<KtExpression, KaVariableSignature<KaValueParameterSymbol>>A mapping from the call's argument expressions to their associated parameter symbols in a stable order. In case of
varargparameters, multiple arguments may be mapped to the sameKaValueParameterSymbol.val contextArgumentMapping: Map<KtExpression, KaVariableSignature<KaContextParameterSymbol>>A mapping from the call's explicit context argument expressions to their associated context parameter symbols in a stable order.
val combinedArgumentMapping: Map<KtExpression, KaVariableSignature<KaParameterSymbol>>A combined mapping from the call's argument expressions to their associated parameter symbols in a stable order. Includes both
valueArgumentMappingandcontextArgumentMapping. In case ofvarargparameters, multiple arguments may be mapped to the sameKaValueParameterSymbol.val argumentMapping: Map<KtExpression, KaVariableSignature<KaValueParameterSymbol>>— deprecatedUse
valueArgumentMapping(only value arguments) orcombinedArgumentMapping(value + context arguments).