readElement property

Element? get readElement

The element that is used to read the value, or null if this node isn't a compound assignment, if the AST structure hasn't been resolved, or if the target couldn't be resolved.

In valid code this element can be a LocalVariableElement, a ParameterElement, or a PropertyAccessorElement getter.

In invalid code this element is null. For example, in int += 2, for recovery purposes, writeElement is filled, and can be used for navigation.

Implementation

Element? get readElement;