Skip to content
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

Consider doing custom flow analysis during migration tool's EdgeBuilder stage. #40566

Closed
stereotype441 opened this issue Feb 10, 2020 · 2 comments
Labels
analyzer-technical-debt area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool). NNBD Issues related to NNBD Release P2 A bug or feature request we're likely to work on

Comments

@stereotype441
Copy link
Member

stereotype441 commented Feb 10, 2020

Currently the migration tool re-uses the analyzer/CFE shared flow analysis stage to analyze the flow of nullabilities through the bodies of functions. This is not ideal for several reasons:

Rather than address all these issues through changes to the shared flow analysis stage, I think it would be better to have a separate nullability flow analysis stage that's specific to the migration tool.

@stereotype441 stereotype441 added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-nnbd-migration NNBD Issues related to NNBD Release analyzer-technical-debt labels Feb 10, 2020
@stereotype441 stereotype441 changed the title Consider doing full flow analysis during migration tool's EdgeBuilder stage. Consider doing custom flow analysis during migration tool's EdgeBuilder stage. Feb 21, 2020
@MichaelRFairhurst
Copy link
Contributor

If we do this, it is worth taking a look at #42380 for other opportunities here.

The one that I see is self invocating function literals. If those could be treated as being guaranteed to execute (even in, in the case of that bug, an assert) then that could be a potential improvement as wel.

@srawlins srawlins added the P2 A bug or feature request we're likely to work on label Sep 8, 2020
@stereotype441 stereotype441 added area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool). and removed analyzer-nnbd-migration area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Nov 16, 2020
@stereotype441
Copy link
Member Author

As of 1c7fe71, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned.

If you still need help, or you believe this issue has been closed in error, please feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-technical-debt area-migration (deprecated) Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool). NNBD Issues related to NNBD Release P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

3 participants