generate_node_types

Macro generate_node_types 

Source
generate_node_types!() { /* proc-macro */ }
Expand description

Generate a StaticNodeTypes constant for a language.

Usage: generate_node_types!("javascript")

This reads the node-types.json at compile time and uses the tree-sitter Language to resolve node/field names to IDs, producing efficient lookup tables. The output is fully statically allocated - no runtime initialization needed.