Matches only compound assignment operators such as a + b.
This pattern only matches nodes of type expression.
Properties
assignmentOperatorCompound produces a record that contains the following properties:
| Name | Type | Description |
|---|---|---|
kind |
enum |
Always `compound`
|
operator |
enum
(see binaryOperator)
|
The specific assignment operator matched |
sourceExpression |
expression |
The expression that is evaluated, and that will be assigned |
targetExpression |
expression |
The expression (typically a variable) that is being assigned |
Inherits properties from:
Example
Matches assignments such as x + 5.