This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit 8fc5c65
authored
[multiple] Avoid new
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.
Before adding the new warning to the analyzer, code in the engine needs
to first be updated to eliminate these unreachable `default` clauses, so
that the warning won't cause builds to break.
For more information, see
dart-lang/sdk#54575.unreachable_switch_default warning. (#54996)1 parent 0fad460 commit 8fc5c65
File tree
6 files changed
+0
-11
lines changed- lib/web_ui/lib/src/engine
- canvaskit
- html
- shaders
- text_editing
- text
6 files changed
+0
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | 269 | | |
272 | 270 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
848 | | - | |
849 | 847 | | |
850 | 848 | | |
851 | 849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1337 | 1337 | | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | | - | |
1341 | 1340 | | |
1342 | 1341 | | |
1343 | 1342 | | |
| |||
1349 | 1348 | | |
1350 | 1349 | | |
1351 | 1350 | | |
1352 | | - | |
1353 | 1351 | | |
1354 | 1352 | | |
1355 | 1353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
918 | | - | |
919 | 917 | | |
920 | 918 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
1121 | | - | |
1122 | | - | |
1123 | 1121 | | |
1124 | 1122 | | |
1125 | 1123 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
0 commit comments