Commit a2af8a5
[analyzer] Mark switch expression's matched expression as used
Fixes unused_result being incorrectly reported.
Change-Id: Ifcf06bdb3e2134cdd738f3f880290e5c1be7e16b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448224
Reviewed-by: Paul Berry <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Samuel Rawlins <[email protected]>
Commit-Queue: Paul Berry <[email protected]>1 parent 7431020 commit a2af8a5
File tree
2 files changed
+18
-1
lines changed- pkg/analyzer
- lib/src/error
- test/src/diagnostics
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1444 | 1444 | | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | | - | |
1448 | 1447 | | |
1449 | 1448 | | |
1450 | 1449 | | |
1451 | 1450 | | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
1452 | 1468 | | |
1453 | 1469 | | |
1454 | 1470 | | |
| |||
0 commit comments