Commit bcff902
authored
[spec/function] Remove MissingFunctionBody from FunctionBody (#4156)
* [spec/function] Split MissingFunctionBody from FunctionBody
Fixes #4101.
I think this is more natural, as a prototype does not have a body.
Changing the definition resolves an inaccuracy in the spec here:
> A disabled default constructor may not have a FunctionBody.
https://dlang.org/spec/struct.html#disable_default_construction
* Remove MainFunctionBody and unindent GRAMMAR
Otherwise indent shows up in output.1 parent 888c37b commit bcff902
4 files changed
+26
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
377 | 378 | | |
378 | 379 | | |
379 | 380 | | |
| |||
741 | 742 | | |
742 | 743 | | |
743 | 744 | | |
| 745 | + | |
744 | 746 | | |
745 | 747 | | |
746 | 748 | | |
| |||
819 | 821 | | |
820 | 822 | | |
821 | 823 | | |
| 824 | + | |
822 | 825 | | |
823 | 826 | | |
824 | 827 | | |
| |||
961 | 964 | | |
962 | 965 | | |
963 | 966 | | |
| 967 | + | |
964 | 968 | | |
965 | 969 | | |
966 | 970 | | |
| |||
972 | 976 | | |
973 | 977 | | |
974 | 978 | | |
| 979 | + | |
975 | 980 | | |
976 | 981 | | |
977 | 982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | | - | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
3448 | 3448 | | |
3449 | 3449 | | |
3450 | 3450 | | |
3451 | | - | |
3452 | | - | |
3453 | | - | |
3454 | | - | |
3455 | | - | |
3456 | | - | |
3457 | | - | |
3458 | | - | |
3459 | | - | |
3460 | | - | |
3461 | | - | |
3462 | | - | |
3463 | | - | |
3464 | | - | |
3465 | | - | |
| 3451 | + | |
| 3452 | + | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
3466 | 3462 | | |
3467 | 3463 | | |
3468 | 3464 | | |
| |||
3493 | 3489 | | |
3494 | 3490 | | |
3495 | 3491 | | |
3496 | | - | |
3497 | | - | |
3498 | | - | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
3499 | 3495 | | |
3500 | | - | |
3501 | | - | |
3502 | | - | |
3503 | | - | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
3504 | 3500 | | |
3505 | 3501 | | |
3506 | 3502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
| 1382 | + | |
1382 | 1383 | | |
1383 | 1384 | | |
1384 | 1385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
| 1531 | + | |
1531 | 1532 | | |
1532 | 1533 | | |
1533 | 1534 | | |
| |||
0 commit comments