KaCompoundArrayAccessCall
KaCompoundArrayAccessCall represents a compound array-like access convention involving calls to both get() and set(), e.g. a[1] += "foo".
The above desugars into m.get("a").plus("b") followed by m.set("a", ...). The compound call captures all three operator calls plus the index arguments.
Hierarchy
Inherits KaMultiCall. (It also inherits the legacy KaCall for historical reasons.)
Members
val getterCall: KaFunctionCall<KaNamedFunctionSymbol>The
getfunction call invoked when reading values corresponding to the givenindexArguments.val setterCall: KaFunctionCall<KaNamedFunctionSymbol>The
setfunction call invoked when writing the computed value corresponding to the givenindexArguments.val indexArguments: List<KtExpression>The arguments representing the indices in the index access operator.
val compoundOperation: KaCompoundOperationThe compound operation kind. See KaCompoundOperation.
compoundOperation.operationCallgives the resolved operator function call (e.g.String.plusfor+=); the operation call is also available directly on the inheritedKaCompoundAccessCall.operationCall.val getPartiallyAppliedSymbol: KaPartiallyAppliedFunctionSymbol<KaNamedFunctionSymbol>— deprecatedLegacy wrapper around the
getfunction. Replaced bygetterCall.val setPartiallyAppliedSymbol: KaPartiallyAppliedFunctionSymbol<KaNamedFunctionSymbol>— deprecatedLegacy wrapper around the
setfunction. Replaced bysetterCall.