Repository navigation
Commit e02caca
committed
Fail generation if a non-class statement sits between generated classes
The define-before-use reorder reassembles a generated wire package from
its class blocks plus the text before the first class and after the
last, so a module-level statement emitted between two classes would
silently disappear. codegen emits none today; assert it stays that way.1 parent 986d3b9 commit e02caca
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
326 | 338 | | |
327 | 339 | | |
328 | | - | |
329 | | - | |
| 340 | + | |
| 341 | + | |
330 | 342 | | |
331 | 343 | | |
332 | 344 | | |
| |||
0 commit comments