-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework _validateTopLevelInitializer to use a visitor.
The old implementation only validated a whitelisted set of use cases, so it would often miss important subexpressions. The new implementation is based on a RecursiveAstVisitor so by default it visits all subexpressions; we use overrides for the specific cases where it's not necessary to visit all subexpressions. Fixes #31963. Change-Id: Icb9833f51bef26874f655cd2ba4ffc509bfffef3 Reviewed-on: https://dart-review.googlesource.com/36803 Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
- Loading branch information
1 parent
6a6103b
commit 68fd556
Showing
3 changed files
with
574 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.