pub fn decode_semantic_tokens(
data: &[SemanticToken],
token_types: &[SemanticTokenType],
token_modifiers: &[SemanticTokenModifier],
) -> Vec<DecodedSemanticToken>Expand description
4.4.h: decode the LSP semantic-tokens stream into
absolute-position tokens. Format per LSP §3.17.6: each
token’s delta_line is relative to the previous token’s
line; delta_start is relative to the previous token’s
start when on the same line, otherwise relative to column
0. token_types / token_modifiers are the server’s
legend slices – indexes outside the legend are dropped
(defense-in-depth; real servers don’t emit out-of-range).