Skip to main content

encode_document_tokens_in_range

Function encode_document_tokens_in_range 

Source
pub fn encode_document_tokens_in_range(
    doc: &DocumentState,
    start_offset: usize,
    end_offset: usize,
) -> Vec<SemanticToken>
Expand description

Resolution-aware encoding restricted to tokens overlapping a byte range. The first emitted token stays absolute from the document start, exactly as the LSP range response requires.