Quick fix for unreachable_from_main - remove it #50533
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
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...
The text was updated successfully, but these errors were encountered: