Crate yak_sitter
source ·Macros§
- Macro which lets you generate your own
tree-sitter
wrappers, which will be versions of the [yak_sitter] ones with a definedCustom
.
Structs§
- Wrapper around tree_sitter::Node which can access its text, tree’s filepath, and tree’s
Custom
data behind a shared reference. It also uses and is used by [tree_sitter_wrapper] wrapper classes. - Wrapper around
usize
(aka node id). - Raw pointer equivalent of Node.
- Wrapper around tree_sitter::Parser
- Wrapper around tree_sitter::Point, which displays as
:line:column
- Variant of std::ops::Range which can be copied and displays as
:line:column-:line:column
- Iterator over a tree in pre-order traversal which iterates nodes with children both up and down
- Wrapper around tree_sitter::QueryCapture
- Wrapper around tree_sitter::QueryCapture
- Wrapper around tree_sitter::QueryCursor
- Wrapper around tree_sitter::QueryMatch
- Wrapper around tree_sitter::QueryMatches
- A byte and point range in one data-structure. Wrapper around tree_sitter::Range which displays as
:line:column-:line:column
- General-purpose way to store TSNode separately from the tree, e.g. if you need to serialize it. Unfortunately this is just done by storing the text and range, there’s not much else we can do
- Iterated node in a traversal (includes field name and last state)
- Wrapper around tree_sitter::Tree which stores its text, filepath, and extra data that is accessible from any node. It also uses and is used by [tree_sitter_wrapper] wrapper classes.
- Wrapper around tree_sitter::TreeCursor, which can actually go outside of its “local” node, albeit with degraded performance (we just do standard lookups)
Enums§
- Describes the previous traversal action in a pre-order traversal which iterates nodes with children both up and down, so we can get the next node in the traversal.
- Error from parsing a tree
Type Aliases§
- Re-exports tree_sitter::QueryError
- Re-exports tree_sitter::InputEdit
- Re-exports tree_sitter::Language
- Re-exports tree_sitter::LanguageError
- Re-exports tree_sitter::QueryError
- Re-exports tree_sitter::QueryError