pub fn byte_offset_to_position(source: &str, byte_offset: usize) -> (u32, u32)
Convert a byte offset in source to an (line, column) pair whose column unit depends on the negotiated PositionEncoding.
source
(line, column)
PositionEncoding