pub fn path_to_byte_ranges(path: &[Edge], text: &[char]) -> Vec<TextRange>