pub fn position_to_byte(
line_map: &LineMap,
source: &str,
pos: Position,
encoding: PositionEncoding,
) -> u32Expand description
Convert an LSP Position to a byte offset within source.
pub fn position_to_byte(
line_map: &LineMap,
source: &str,
pos: Position,
encoding: PositionEncoding,
) -> u32Convert an LSP Position to a byte offset within source.