-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update shared analysis of object patterns to match spec.
In dart-lang/language@ce01d33, the patterns spec was changed so that if an object pattern's type resolves to `dynamic` or `Never`, no getters are looked up during static analysis, and the getter type is simply presumed to be `dynamic` or `Never`, respectively. Also, the parameter `requiredType` of `analyzeObjectPattern` is removed (is was not needed, and the caller always passed `null`). Finally, the test artifact `ObjectPatternRequiredType` is removed in favor of just using a PrimaryType directly. This makes the tests a little bit more compact. Change-Id: I6fcef8dab8250905e1d37308bbdc82a4fd65f52c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/270982 Reviewed-by: Chloe Stefantsova <[email protected]> Commit-Queue: Paul Berry <[email protected]>
- Loading branch information
1 parent
2d2a15a
commit ac1ad9f
Showing
4 changed files
with
71 additions
and
43 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
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