difft::diff::sliders

Function novel_regions_before_unchanged

Source
fn novel_regions_before_unchanged<'a>(
    nodes: &[&'a Syntax<'a>],
    change_map: &ChangeMap<'a>,
) -> Vec<(usize, usize)>
Expand description

Return the start and end indexes of sequences of novel nodes that occur before unchanged nodes.