Expand description
§type-sitter: generate typed wrappers for tree-sitter grammars from node-types.json and queries
See the monorepo workspace for background information and the following two linked crates for documentation. This crate bundles type-sitter-lib, and type-sitter-proc unless you disable the default feature proc.
Modules§
- Rust Tree-sitter
Macros§
- Generate typed AST node wrappers.
- Generate typed wrappers for tree-sitter queries.
Structs§
- A stub node that indicates a localized parse error.
- A node that can annotate any other node, e.g. a comment.
- An error that occurred in
Parser::set_included_ranges. - Error when attempting to wrap a node of the wrong kind
- A summary of a change to a text document.
- An opaque object that defines how to parse a particular language. The code for each
Languageis generated by the Tree-sitter CLI. - A stub node that indicates another node was expected.
- A stateful object that this is used to produce a tree based on some source code.
- A position in a multi-line text document, in terms of rows and columns.
- Iterate a query’s captures (see [RawQueryCaptures])
- Captures from a crate::QueryMatch
- Iterate captures from a crate::QueryMatch
- Iterate a typed query’s matches (see tree-sitter’s
QueryMatches). - A key-value pair associated with a particular pattern in a
Query. - A range of positions in a multi-line text document, both in terms of bytes and of rows and columns.
- A stateful object for walking a syntax tree efficiently. See
raw::TreeCursor - A node that is untyped other than being named.
- A node that is untyped, but implements
Nodeanyways.
Enums§
- Underlying cause of why the node is the wrong kind
Traits§
- Typed node wrapper.
- Useful trait to unwrap an
Option<NodeResult<'tree, T> - A query which can generate type-safe matches and captures, which contain typed nodes
- A capture from a
Querywith typed nodes - A match from a Query with typed nodes
- An interface for dealing with streaming iterators.
Type Aliases§
- Never type (for the weird case when there is an accessor that can’t return anything)
- Result of attempting to wrap a node