Commit 131df86
committed
Add as_expression_list to reflection APIs
Style note: I'm currently trying to follow the pattern of choosing ".get_Y" vs. ".as_Y" names as follows...
"get": X::is_Y / X::get_Y pairs
- when Y is conceptually "NOT all of" the X
- for example, expression_statement::get_expression because even though the expression is most of the statement the expression-statement contains that extra `;` and is at a different conceptual layer
"as": X::is_Y / X::as_Y pairs
- when Y is conceptually "all of" the X
- for example, statement::as_expression_statement because it's really still the whole statement
- with the idea that this could legitimately become an actual `as` operator
I may not be 100% consistent on that right now, but I think the current API is pretty close to that1 parent 146c783 commit 131df86
File tree
5 files changed
+655
-580
lines changed- regression-tests/test-results
- source
5 files changed
+655
-580
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| |||
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
416 | 431 | | |
417 | 432 | | |
418 | 433 | | |
| |||
628 | 643 | | |
629 | 644 | | |
630 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
631 | 655 | | |
632 | 656 | | |
633 | 657 | | |
| |||
836 | 860 | | |
837 | 861 | | |
838 | 862 | | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
839 | 872 | | |
840 | 873 | | |
841 | 874 | | |
| |||
1035 | 1068 | | |
1036 | 1069 | | |
1037 | 1070 | | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1038 | 1080 | | |
1039 | 1081 | | |
1040 | 1082 | | |
| |||
1128 | 1170 | | |
1129 | 1171 | | |
1130 | 1172 | | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1131 | 1182 | | |
1132 | 1183 | | |
1133 | 1184 | | |
| |||
1658 | 1709 | | |
1659 | 1710 | | |
1660 | 1711 | | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1661 | 1721 | | |
1662 | 1722 | | |
1663 | 1723 | | |
| |||
0 commit comments