writeElement2 property
The element that is used to write the result.
Returns null
if the AST structure hasn't been resolved, or if the target
couldn't be resolved.
In valid code this is a LocalVariableElement2, FormalParameterElement, or a SetterElement.
In invalid code, for recovery, we might use other elements, for example a
GetterElement myGetter = 0
even though the getter can't be used to set
a value. We do this to help the user to navigate to the getter, and maybe
add the corresponding setter.
If this node is a compound assignment, such as x += y
, both
readElement and writeElement could be non-null
.
Implementation
@experimental
Element2? get writeElement2;