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

Quick fix for unreachable_from_main - remove it #50533

Open
srawlins opened this issue Nov 22, 2022 · 0 comments
Open

Quick fix for unreachable_from_main - remove it #50533

srawlins opened this issue Nov 22, 2022 · 0 comments
Labels
analyzer-quick-fix area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@srawlins
Copy link
Member

An element which is unreachable_from_main can be removed.

It may be referenced by other unreachable-from-main elements, so running the quick fix on such code could introduce compile-time errors, similar to unused fields, unused_local_variables, etc.

We could make the quick fix more destructive by removing all elements that refer to an unreachable-from-main element, but it would then need to reach into parts...

@srawlins srawlins added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request analyzer-quick-fix type-enhancement A request for a change that isn't a bug labels Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-quick-fix area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

1 participant