Commit f0e7c17
authored
Add a Meta API for
This adds a const META: &'static Layout field to the AstNode.
The meta field contains static information about the layout of a node. For example, for a SyntaxNode, it contains all fields with flags whether the field is repeated or optional.
This enables validator APIs and potentially tests and generally computes more fields instead of generating them.vhdl_syntax (#451)1 parent 3ac2f59 commit f0e7c17
22 files changed
Lines changed: 11050 additions & 3784 deletions
File tree
- vhdl_syntax/src/syntax
- generated
- xtask/src
- generate
- snapshots
Lines changed: 1417 additions & 460 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
0 commit comments