Commit 41ef3a1
analyzer: look at element types for const sets and maps
Fixes #54356
Change-Id: Iee17d4aee3173db9747cdd9c9a0cc4203abab226
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/400802
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Samuel Rawlins <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>1 parent c1f5bab commit 41ef3a1
File tree
5 files changed
+218
-115
lines changed- pkg/analyzer
- lib/src/dart/constant
- test/src
- dart/constant
- diagnostics
5 files changed
+218
-115
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
| 1016 | + | |
1023 | 1017 | | |
1024 | 1018 | | |
1025 | 1019 | | |
| |||
1364 | 1358 | | |
1365 | 1359 | | |
1366 | 1360 | | |
1367 | | - | |
1368 | | - | |
| 1361 | + | |
1369 | 1362 | | |
1370 | 1363 | | |
1371 | 1364 | | |
| |||
1388 | 1381 | | |
1389 | 1382 | | |
1390 | 1383 | | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
1396 | 1387 | | |
1397 | 1388 | | |
1398 | 1389 | | |
| |||
1401 | 1392 | | |
1402 | 1393 | | |
1403 | 1394 | | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
| 1395 | + | |
1410 | 1396 | | |
1411 | 1397 | | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
| 1398 | + | |
1418 | 1399 | | |
1419 | 1400 | | |
1420 | 1401 | | |
| |||
1450 | 1431 | | |
1451 | 1432 | | |
1452 | 1433 | | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
| 1434 | + | |
1459 | 1435 | | |
1460 | 1436 | | |
1461 | 1437 | | |
1462 | 1438 | | |
1463 | 1439 | | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
1472 | 1443 | | |
1473 | 1444 | | |
1474 | 1445 | | |
| |||
1478 | 1449 | | |
1479 | 1450 | | |
1480 | 1451 | | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
1485 | 1457 | | |
1486 | 1458 | | |
1487 | 1459 | | |
| |||
1498 | 1470 | | |
1499 | 1471 | | |
1500 | 1472 | | |
1501 | | - | |
1502 | | - | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1503 | 1477 | | |
1504 | 1478 | | |
1505 | 1479 | | |
| |||
1556 | 1530 | | |
1557 | 1531 | | |
1558 | 1532 | | |
1559 | | - | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
1560 | 1537 | | |
1561 | 1538 | | |
1562 | 1539 | | |
| |||
1566 | 1543 | | |
1567 | 1544 | | |
1568 | 1545 | | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
1573 | 1551 | | |
1574 | 1552 | | |
1575 | 1553 | | |
| |||
1591 | 1569 | | |
1592 | 1570 | | |
1593 | 1571 | | |
1594 | | - | |
1595 | | - | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1596 | 1575 | | |
1597 | 1576 | | |
1598 | 1577 | | |
| |||
1646 | 1625 | | |
1647 | 1626 | | |
1648 | 1627 | | |
1649 | | - | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
1650 | 1631 | | |
1651 | 1632 | | |
1652 | 1633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
| 214 | + | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 222 | + | |
| 223 | + | |
228 | 224 | | |
229 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
230 | 231 | | |
231 | | - | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
2529 | 2531 | | |
2530 | 2532 | | |
2531 | 2533 | | |
2532 | | - | |
| 2534 | + | |
2533 | 2535 | | |
2534 | | - | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
2544 | 2539 | | |
2545 | 2540 | | |
2546 | 2541 | | |
2547 | 2542 | | |
2548 | 2543 | | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | 2544 | | |
2556 | 2545 | | |
2557 | 2546 | | |
| |||
2629 | 2618 | | |
2630 | 2619 | | |
2631 | 2620 | | |
2632 | | - | |
2633 | | - | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
2634 | 2624 | | |
2635 | 2625 | | |
2636 | 2626 | | |
2637 | 2627 | | |
2638 | 2628 | | |
2639 | 2629 | | |
2640 | 2630 | | |
2641 | | - | |
| 2631 | + | |
2642 | 2632 | | |
2643 | | - | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
2644 | 2645 | | |
2645 | 2646 | | |
2646 | 2647 | | |
| |||
2695 | 2696 | | |
2696 | 2697 | | |
2697 | 2698 | | |
2698 | | - | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
2699 | 2707 | | |
2700 | 2708 | | |
2701 | 2709 | | |
| |||
2913 | 2921 | | |
2914 | 2922 | | |
2915 | 2923 | | |
2916 | | - | |
2917 | | - | |
| 2924 | + | |
2918 | 2925 | | |
2919 | 2926 | | |
2920 | 2927 | | |
| |||
2924 | 2931 | | |
2925 | 2932 | | |
2926 | 2933 | | |
2927 | | - | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
2928 | 2944 | | |
2929 | 2945 | | |
2930 | 2946 | | |
| |||
2978 | 2994 | | |
2979 | 2995 | | |
2980 | 2996 | | |
2981 | | - | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
2982 | 3003 | | |
2983 | 3004 | | |
2984 | 3005 | | |
| |||
0 commit comments