type-sitter-lib: type-sitter code for generated / downstream code

Crates.io Docs.rs

See type-sitter for more information. This is the library which code generated from type-sitter depends on.

This library also contains the tree-sitter-wrapper feature.module, enabled by default, which provides lightweight general-purpose wrappers over tree-sitter data-structures, to the extent you won't need to explicitly use tree-sitter at all. These wrappers have convenience functions like getting a node's text as a &str and assigning arbitrary bitmasks ("marks") to each node, at the cost of slightly lower performance. tree-sitter-wrapper also has a QueryMatches which is a streaming iterator because it's not a real iterator.

Documentation Note: All documentation is generated with the tree-sitter-wrapper flag enabled, which is enabled by default