Skip to main content

byte_range_to_lsp_range

Function byte_range_to_lsp_range 

Source
pub fn byte_range_to_lsp_range(
    source: &str,
    start_byte: usize,
    end_byte: usize,
) -> ((u32, u32), (u32, u32))
Expand description

Byte range (start inclusive, end exclusive) to LSP (line, char) pairs.