Structs§
- Node
- A single node on a syntax
Tree
. - NodeId
- Wrapper around
usize
(aka node id) - NodePtr
- Raw pointer equivalent of
Node
- Parser
- A stateful object that this is used to produce a Tree based on some source code
- Point
- Structurally identical to
tree_sitter::Point
but displays as:line:column
- Point
Range - Variant of
std::ops::Range
that can be copied and displays as:line:column-:line:column
- Preorder
Traversal - Iterator over a tree in pre-order traversal which iterates nodes with children both up and down
- Query
Capture - Wrapper around
tree_sitter::QueryCapture
- Query
Captures - Wrapper around
tree_sitter::QueryCaptures
- Query
Cursor - Wrapper around
tree_sitter::QueryCursor
- Query
Match - Wrapper around
tree_sitter::QueryMatch
- Query
Matches - Wrapper around
tree_sitter::QueryMatches
. - Range
- Structurally identical to
tree_sitter::Range
(byte and point range) but displays as:line:column-:line:column
- Traversal
Item - Iterated node in a traversal (includes field name and last state)
- Tree
- A tree that represents the syntactic structure of a source code file.
- Tree
Cursor - A stateful object for walking a syntax tree efficiently.
Enums§
- Traversal
State - 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
- Tree
Parse Error - Error from parsing a tree
Type Aliases§
- Included
Ranges Error - An error that occurred in
Parser::set_included_ranges
- Input
Edit - A summary of a change to a text document
- Language
- An opaque object that defines how to parse a particular language.
- Language
Error - An error that occurred when trying to assign an incompatible
Language
to aParser
- Language
Ref - Re-exports
tree_sitter::LanguageRef
- Query
- A set of patterns that match nodes in a syntax tree
- Query
Property - A key-value pair associated with a particular pattern in a
Query