Commit eb2d567
committed
Generate location() accessor for Node enum (#76)
Adds `location()` accessor to the `Node` enum, delegating to
each variant's `location()` method.
A previous commit added `location()` to individual node types
but missed the enum itself. This allows getting the location of the
entire node definition when working with the `Node` enum directly.1 parent 8bdef0e commit eb2d567
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
532 | 546 | | |
533 | 547 | | |
534 | 548 | | |
| |||
0 commit comments