Crate yak_sitter

Source

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
PointRange
Variant of std::ops::Range that can be copied and displays as :line:column-:line:column
PreorderTraversal
Iterator over a tree in pre-order traversal which iterates nodes with children both up and down
QueryCapture
Wrapper around tree_sitter::QueryCapture
QueryCaptures
Wrapper around tree_sitter::QueryCaptures
QueryCursor
Wrapper around tree_sitter::QueryCursor
QueryMatch
Wrapper around tree_sitter::QueryMatch
QueryMatches
Wrapper around tree_sitter::QueryMatches.
Range
Structurally identical to tree_sitter::Range (byte and point range) but displays as :line:column-:line:column
TraversalItem
Iterated node in a traversal (includes field name and last state)
Tree
A tree that represents the syntactic structure of a source code file.
TreeCursor
A stateful object for walking a syntax tree efficiently.

Enums§

TraversalState
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
TreeParseError
Error from parsing a tree

Type Aliases§

IncludedRangesError
An error that occurred in Parser::set_included_ranges
InputEdit
A summary of a change to a text document
Language
An opaque object that defines how to parse a particular language.
LanguageError
An error that occurred when trying to assign an incompatible Language to a Parser
LanguageRef
Re-exports tree_sitter::LanguageRef
Query
A set of patterns that match nodes in a syntax tree
QueryProperty
A key-value pair associated with a particular pattern in a Query