Skip to main content

byte_to_position

Function byte_to_position 

Source
pub fn byte_to_position(
    line_map: &LineMap,
    source: &str,
    byte: u32,
    encoding: PositionEncoding,
) -> Position
Expand description

Convert a byte offset within source to an LSP Position.