[analysis_server] convert_to_if_case_statement_chain
assist deletes switch with empty body
#54077
Labels
analyzer-assist
Issues with analysis server assists
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
If you try a quick fix on
switch
, it will offer to applyconvert_to_if_case_statement_chain
, which removes the switch. Technically it doesn't change the behavior in this situation, but I'd rather this not be offered even in that case. If the expression being matched does have side effects though, the quick fix will change behavior.The text was updated successfully, but these errors were encountered: