Skip to main content

position_to_byte

Function position_to_byte 

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

Convert an LSP Position to a byte offset within source.