KaDelegatedPropertyCall
KaDelegatedPropertyCall represents a resolved by-delegated property. The Kotlin compiler desugars a delegated property into up to three operator calls:
Desugared form (conceptually):
For a var property a setValue() call is also generated. If the delegate expression provides a provideDelegate() operator, it is called first.
KaDelegatedPropertyCall is the assembled multi-call returned from KtPropertyDelegate.resolveCall(): KaDelegatedPropertyCall?. For per-sub-call inspection (and partial-failure handling), use KaDelegatedPropertyCallResolutionAttempt documented under KaCallResolutionAttempt.
Hierarchy
Inherits KaMultiCall.
Members
val valueGetterCall: KaFunctionCall<KaNamedFunctionSymbol>The
getValue()operator call on the delegate object.val valueSetterCall: KaFunctionCall<KaNamedFunctionSymbol>?The
setValue()operator call.nullforvalproperties.val provideDelegateCall: KaFunctionCall<KaNamedFunctionSymbol>?The
provideDelegate()operator call.nullwhen the delegate does not provide that operator.
Each non-null sub-call is a full KaFunctionCall and exposes the call-site context as usual. KaMultiCall.calls gives a flat list of all present sub-calls.