-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Assist for merging single-body swicth cases with a logical-or pattern #56180
Comments
Summary: The user proposes a syntax change to Dart's |
Now that #55861 is closed, a workaround is to do both conversions to and from switch expression. It will give the same result asked above. But it obviously just works when the switch statement can be converted. |
If dart-lang/linter#5078 is accepted it would work great with this as well. |
Also, dart-lang/linter#5079 (if accepted) would help ensure duplicates are removed as well as |
I'd like to ask for an assist for merging single-body swicth cases with a logical-or pattern
So cases like:
Can become:
Originally posted by @FMorschel in #55861 (comment)
The text was updated successfully, but these errors were encountered: