Commit 5f30c56
authored
[dwds] Delete unreachable
The Dart analyzer will soon be changed so that if the `default` clause
of a `switch` statement is determined to be unreachable by the
exhaustiveness checker, a new warning of type
`unreachable_switch_default` will be issued. This parallels the
behavior of the existing `unreachable_switch_case` warning, which is
issued whenever a `case` clause of a `switch` statement is determined
to be unreachable. For details see
dart-lang/sdk#54575.
This PR deletes unreachable `default` clauses from `webdev/dwds` now,
to avoid a spurious warning when the analyzer change lands.default clauses. (#2484)1 parent 8156106 commit 5f30c56
File tree
2 files changed
+0
-3
lines changed- dwds/lib/src
- debugging
- servers
2 files changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
368 | | - | |
369 | 367 | | |
370 | 368 | | |
371 | 369 | | |
| |||
0 commit comments