Constants§
- MOD_
DECLARATION - MOD_
DEFAULT_ LIBRARY - MOD_
MODIFICATION - MOD_
READONLY - TOKEN_
MODIFIERS - TOKEN_
TYPES - Our semantic token types, registered with the client.
The legend is APPEND-ONLY — indices are a wire contract with client themes
(pinned by
tests/locks.rs). - TYPE_
COMMENT - TYPE_
ENUM_ MEMBER - TYPE_
FUNCTION - TYPE_
KEYWORD - TYPE_
MODIFIER - TYPE_
NAMESPACE - TYPE_
NUMBER - TYPE_
OPERATOR - TYPE_
PARAMETER - TYPE_
PROPERTY - TYPE_
STRING - TYPE_
TYPE - TYPE_
VARIABLE
Functions§
- classify_
token - Map a
TokenTypeto a semantic token type index and modifier bitset. - encode_
document_ tokens - Encode a document’s tokens with the full resolution overlay.
- encode_
document_ tokens_ in_ range - 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.
- encode_
tokens - Convert a token stream to LSP semantic tokens (delta-encoded) using the
base part-of-speech layer only.
encode_document_tokensis the resolution-aware entry point. - find_
mutation_ targets - Span starts of tokens that a statement WRITES:
Set <x> to …/Set … at <k> to …-style targets take the identifier nearest the write (the last one beforeto, or beforeatwhen a keyed write follows),Increase/Decrease <x>,Push/Add/Append … to <x>,Remove/Pop … from <x>. - legend
- semantic_
token_ edits - The minimal single-splice edit list turning
previntonext. - semantic_
type_ for - The semantic token type an identifier gets once resolution names its kind.
Wildcard-free: a new
DefinitionKindmust decide its color here.