Crate tree_sitter_edit

source ·
Expand description

tree-sitter-edit is a crate for printing modified tree-sitter parse trees, intended for use in multi-language code refactoring, linting, or modification (codemod) tools.

Structs

An Editor that deletes the text of a single Node.
The Editor that makes no changes.
An Editor that merges the edits from two Editors, preferring the left one.
Newtype around usize, holding values from Node::id.
An Editor that replaces the text of a single Node.

Traits

Modify a tree-sitter parse tree when printing.

Functions