Function mz_lsp_server::backend::position_to_offset
source ยท fn position_to_offset(position: Position, rope: &Rope) -> Option<usize>
Expand description
This function converts a (line, column) position in the text to an offset in the file.
It is the inverse of the offset_to_position
function.