Skip to main content

original_range

Function original_range 

Source
fn original_range(edits: &[SourceEdit], range: Range<usize>) -> (usize, usize)
Expand description

Maps a byte range of an edited source back to the original source.

edits must be sorted by start offset.