readElement property

Element? get readElement

The element that is used to read the value.

If this node is not a compound assignment, this element is null.

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

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

This element is null if the AST structure has not been resolved, or if the target could not be resolved.

Implementation

Element? get readElement;