Commit 7927445
authored
Parse
The reference parser represents `do` syntax with a closure for the second
argument. However, the nested closure with `->` head is implied rather
than present in the surface syntax, which suggests this is a premature
desugaring step. Instead we emit a flatter three-argument form for `do`.do blocks without desugaring the closure (JuliaLang/JuliaSyntax.jl#98)1 parent 8a148ff commit 7927445
4 files changed
Lines changed: 37 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
465 | 482 | | |
466 | 483 | | |
467 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | | - | |
228 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
229 | 229 | | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
| 426 | + | |
428 | 427 | | |
429 | 428 | | |
430 | 429 | | |
| |||
1452 | 1451 | | |
1453 | 1452 | | |
1454 | 1453 | | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
| 1454 | + | |
| 1455 | + | |
1459 | 1456 | | |
1460 | 1457 | | |
1461 | 1458 | | |
| |||
2179 | 2176 | | |
2180 | 2177 | | |
2181 | 2178 | | |
2182 | | - | |
| 2179 | + | |
| 2180 | + | |
2183 | 2181 | | |
2184 | | - | |
| 2182 | + | |
2185 | 2183 | | |
2186 | | - | |
2187 | | - | |
| 2184 | + | |
| 2185 | + | |
2188 | 2186 | | |
2189 | 2187 | | |
2190 | 2188 | | |
2191 | 2189 | | |
2192 | | - | |
| 2190 | + | |
2193 | 2191 | | |
2194 | 2192 | | |
2195 | | - | |
| 2193 | + | |
2196 | 2194 | | |
2197 | 2195 | | |
2198 | | - | |
| 2196 | + | |
2199 | 2197 | | |
2200 | 2198 | | |
2201 | 2199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments