readElement2 property
The element that is used to read the value.
Returns 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 LocalVariableElement2, a FormalParameterElement, or a GetterElement.
In invalid code this element is null
. For example, in int += 2
. In
such cases, for recovery purposes, writeElement is filled, and can be
used for navigation.
Implementation
@experimental
Element2? get readElement2;