-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Null-aware elements] Analyzer implementation #56836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This CL implements type inference for null-aware colletion elements and map entires in the Analyzer. The new functionality is dependent on the `null-aware-elements` feature flag, since only when the flag is enable, can the `keyQuestion` and `valueQuestion` properties of the MapEntryLiteralEntry class be not null and the objects of the `NullAwareElement` be created. Part of #56836 Change-Id: I9243b01d5de097ae0d2ca3376807c6209ef0f830 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/387980 Commit-Queue: Chloe Stefantsova <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Hi! As part of triage, we look for updates on all |
@pq Yes, at this point the flow analysis, the type inference, and constant verification are implemented. Currently I'm working on reporting warnings. With warnings done, the existing failures on the co19 tests for the Analyzer will be fully addressed. Then I will switch to supporting the constants in the summaries, lints, and analysis server features. |
Awesome. Thanks for the update. Cool to see this feature cruising along! |
Part of #56836 Change-Id: I3fcdceff667f371fcf4b66c12bd16e2f34e6446c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391621 Reviewed-by: Keerti Parthasarathy <[email protected]> Reviewed-by: Erik Ernst <[email protected]> Commit-Queue: Chloe Stefantsova <[email protected]>
This meta issue tracks all the analyzer implementation work items. Referenced from: https://github.com/dart-lang/sdk/blob/main/pkg/analyzer/doc/process/new_language_feature.md
Work Items
AstBuilder
)Type system updates(should not be affected)Resolution(should not be affected)(should not be affected)ResolutionVisitor
(should not be affected)ScopeResolverVisitor
(should not be affected)ResolverVisitor
Index and search(should not be affected)ErrorVerifier
The text was updated successfully, but these errors were encountered: