Crate type_sitter_proc
source ·Expand description
type-sitter-proc: generate type-sitter wrappers via procedural macros
See type-sitter for more information. This provides procedural macros which will generate typed node wrappers. However, it’s highly recommended to use type-sitter-cli instead, as it’s more tested and will give your IDE better inference.
If a project depends on this (and as with type-sitter-cli), it must also depend on type-sitter-lib and tree-sitter.
Note that you can’t generate multiple node-type or query wrappers in the same module, due to the fact that they will each generate their own submodules with the same name. You have to put the wrapper-generating macros in separate modules and then pub use
the generated definitions. Sorry!
Macros
- Generate typed AST node wrappers.
- Generate typed wrappers for tree-sitter queries.