AssignmentExpressionResolver
doesn't resolve the leftHandSide
?
#59861
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
I'm trying to determine if an identifier is a class instance variables or not and have hit what seems like a bug but I'm not sure.
It seems that
AssignmentExpressionResolver
does not resolve the left hand side of an assignment expression correctly.Smallest reproducible example is using
resolveFile2
with the following file:In the debugger I can see
AssignmentExpressionResolver.resolve()
being called when resolvingfn1()
, but neither thestaticElement
field on the AssignmentExpression node, nor thestaticElement
field on theleftHandSide
(which is a SimpleIdentifier for_str
) of the assignment expression node get updated and remain null.leftHandSide
has a validscopeLookupResult
value.In the case of
fn2()
all works fine and I can seestaticElement
of theSimpleIdentifier
node associated with_str
getting updated viaSimpleIdentifierResolver.resolve()
.I'm using SDK v3.6.0 with analyzer v7.1.0.
Any assistance would be greatly appreciated!
The text was updated successfully, but these errors were encountered: