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§
- Delete
- An Editor that deletes the text of a single Node.
- Edit
- Id
- The Editor that makes no changes.
- Left
Biased Or - An Editor that merges the edits from two Editors, preferring the left one.
- NodeId
- Newtype around usize, holding values from
Node::id
. - Replace
- An Editor that replaces the text of a single Node.
Traits§
- Editor
- Modify a tree-sitter parse tree when printing.
Functions§
- render
- Render edits from
Editor::in_order_edits
.