pub fn path_to_ranges(path: &[Edge]) -> Vec<TextRange>