Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] Resolve annotations on local variable elements
Metadata is attached to a `VariableDeclarationList`, not the individual declarations therein. Even though annotations from the list are copied down into the local variable elements, the resolver did not set the `element` property on those annotations which is required for computing the constant value in a later step. This is fixed by making the resolver visit the declaration list instead of individual declarations. Closes dart-lang#47502 Change-Id: Id6e47e6fa878e61be5279fa4127262deb73ab1c1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217363 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
- Loading branch information