Commit bdc47d5
committed
Allow a newline after the first parameter list of an extension method
This was already postulated by the syntax, but the parser did not implement
it.
Maybe this change is enough to allow a formatting that makes defined extension
methods easy to find when scanning code.1 parent e1b8f74 commit bdc47d5
File tree
3 files changed
+11
-6
lines changed- compiler/src/dotty/tools/dotc/parsing
- docs/docs/internals
- tests/run
3 files changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2537 | 2537 | | |
2538 | 2538 | | |
2539 | 2539 | | |
2540 | | - | |
| 2540 | + | |
2541 | 2541 | | |
2542 | 2542 | | |
2543 | 2543 | | |
| |||
2567 | 2567 | | |
2568 | 2568 | | |
2569 | 2569 | | |
2570 | | - | |
| 2570 | + | |
| 2571 | + | |
2571 | 2572 | | |
2572 | 2573 | | |
2573 | 2574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
0 commit comments