pub trait Editor {
// Required methods
fn has_edit(&self, tree: &Tree, node: &Node<'_>) -> bool;
fn edit(&self, source: &[u8], tree: &Tree, node: &Node<'_>) -> Vec<u8> ⓘ;
// Provided method
fn in_order_edits<'a>(
&'a self,
source: &'a [u8],
tree: &'a Tree,
) -> Box<dyn Iterator<Item = Edit> + 'a> { ... }
}Expand description
Modify a tree-sitter parse tree when printing.