Skip to content

Add a checked API#452

Open
Schottkyc137 wants to merge 2 commits intoVHDL-LS:masterfrom
Schottkyc137:checked-nodes
Open

Add a checked API#452
Schottkyc137 wants to merge 2 commits intoVHDL-LS:masterfrom
Schottkyc137:checked-nodes

Conversation

@Schottkyc137
Copy link
Copy Markdown
Contributor

CheckedNodes are a wrapper around SyntaxNodes with guarantees that there are no missing or extraneous elements.
This information is extracted from the new meta-API and checked nodes can only be constructed (safely) if they pass validation.
They enable a more ergonomic API entry to the design as all optional nodes are now truly optional, and all required nodes simply return the node instead of Option as would be the case for the SyntaxNode

Changes are fairly simple, but contains ~10k of generated code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant