Commit df96f15
Elements. APIs for constant initializers.
I found that we have ConstTopLevelVariableElementImpl,
ConstFieldElementImpl, DefaultSuperFormalParameterElementImpl, etc.
But we don't have corresponding Element2.
And this is probably good.
Having so many classes might be too much.
Why not turn the constant initializer into a property?
Change-Id: I1fe7c2709e2bee4d8868e2916a3b3e8f7a6fb1f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406880
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>1 parent b79729c commit df96f15
File tree
3 files changed
+55
-0
lines changed- pkg/analyzer/lib
- dart/element
- src/dart/element
3 files changed
+55
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
256 | 273 | | |
257 | 274 | | |
258 | 275 | | |
| |||
2806 | 2823 | | |
2807 | 2824 | | |
2808 | 2825 | | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
2809 | 2833 | | |
2810 | 2834 | | |
2811 | 2835 | | |
| |||
2857 | 2881 | | |
2858 | 2882 | | |
2859 | 2883 | | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
2860 | 2891 | | |
2861 | 2892 | | |
2862 | 2893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11671 | 11671 | | |
11672 | 11672 | | |
11673 | 11673 | | |
| 11674 | + | |
| 11675 | + | |
| 11676 | + | |
| 11677 | + | |
| 11678 | + | |
| 11679 | + | |
11674 | 11680 | | |
11675 | 11681 | | |
11676 | 11682 | | |
| |||
11768 | 11774 | | |
11769 | 11775 | | |
11770 | 11776 | | |
| 11777 | + | |
| 11778 | + | |
| 11779 | + | |
| 11780 | + | |
| 11781 | + | |
| 11782 | + | |
11771 | 11783 | | |
11772 | 11784 | | |
11773 | 11785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
564 | 570 | | |
565 | 571 | | |
566 | 572 | | |
| |||
1211 | 1217 | | |
1212 | 1218 | | |
1213 | 1219 | | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1214 | 1226 | | |
1215 | 1227 | | |
1216 | 1228 | | |
| |||
0 commit comments