Skip to main content

point_range_to_lsp_range

Function point_range_to_lsp_range 

Source
pub fn point_range_to_lsp_range(
    source: &str,
    start: Point,
    end: Point,
) -> ((u32, u32), (u32, u32))
Expand description

Map tree-sitter Point to byte offset then to LSP range.