Kotlin Analysis API Documentation Help

KaCompoundVariableAccessCall

KaCompoundVariableAccessCall represents a compound access to a mutable variable. Such accesses combine reading, modifying, and writing back the variable's value in a single expression using operators like +=, -=, ++, or --.

var i = 0 i += 1 i++

Hierarchy

Inherits KaMultiCall. (It also inherits the legacy KaCall for historical reasons.)

Members

val variableCall: KaVariableAccessCall

The variable read/write part of the compound expression — a full KaVariableAccessCall.

val compoundOperation: KaCompoundOperation

The compound operation kind. See KaCompoundOperation. compoundOperation.operationCall gives the resolved operator function call (e.g. Int.plus for += or Int.inc for ++); the operation call is also available directly on the inherited KaCompoundAccessCall.operationCall.

val variablePartiallyAppliedSymbol: KaPartiallyAppliedVariableSymbol<KaVariableSymbol>deprecated

The legacy wrapper around the variable's symbol. Replaced by variableCall.

19 May 2026