This repository was archived by the owner on Apr 1, 2024. It is now read-only.
Commit f233e39
committed
Add runtime errors when constructing any element with children or categories
- children declarations are meant to be (and appear to be) parse errors
with the new syntax
- categories can be fully be replaced with interfaces; let's ban them
here in expectation of a hack/parser ban in the future
- remove the consistency validation trait: it can't be used even before
this diff, but doubly so now that it throws
- raising exceptions from the constructor gives clearer traces than from
render1 parent 3163ad6 commit f233e39
File tree
4 files changed
+20
-68
lines changed- src
- ChildValidation
- core
- tests
4 files changed
+20
-68
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
| |||
573 | 582 | | |
574 | 583 | | |
575 | 584 | | |
576 | | - | |
| 585 | + | |
577 | 586 | | |
578 | 587 | | |
579 | 588 | | |
| 589 | + | |
580 | 590 | | |
581 | 591 | | |
582 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
| |||
0 commit comments