Skip to content

Commit f0e7c17

Browse files
authored
Add a Meta API for vhdl_syntax (#451)
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.
1 parent 3ac2f59 commit f0e7c17

22 files changed

Lines changed: 11050 additions & 3784 deletions

vhdl_syntax/src/syntax/generated/concurrent_statements.rs

Lines changed: 1417 additions & 460 deletions
Large diffs are not rendered by default.

vhdl_syntax/src/syntax/generated/declarations.rs

Lines changed: 2274 additions & 870 deletions
Large diffs are not rendered by default.

vhdl_syntax/src/syntax/generated/design_entities.rs

Lines changed: 599 additions & 206 deletions
Large diffs are not rendered by default.

vhdl_syntax/src/syntax/generated/design_units.rs

Lines changed: 335 additions & 180 deletions
Large diffs are not rendered by default.

vhdl_syntax/src/syntax/generated/expression.rs

Lines changed: 543 additions & 209 deletions
Large diffs are not rendered by default.

vhdl_syntax/src/syntax/generated/meta.rs

Lines changed: 381 additions & 0 deletions
Large diffs are not rendered by default.

vhdl_syntax/src/syntax/generated/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ pub mod types;
3131
pub use types::*;
3232
pub mod builders;
3333
pub use builders::*;
34+
pub mod meta;
35+
pub use meta::*;

0 commit comments

Comments
 (0)