A semantic tokens builder can help with creating a SemanticTokens instance
which contains delta encoded semantic tokens.
A semantic tokens builder can help with creating a `SemanticTokens` instance which contains delta encoded semantic tokens.
(build semantic-tokens-builder)(build semantic-tokens-builder result-id)Finish and create a SemanticTokens instance.
Parameters:
result-id: string | undefinedReturns: SemanticTokens
Finish and create a `SemanticTokens` instance. **Parameters:** - `result-id`: `string | undefined` **Returns:** `SemanticTokens`
(push semantic-tokens-builder range token-type)(push semantic-tokens-builder range token-type token-modifiers)(push semantic-tokens-builder line char length token-type)(push semantic-tokens-builder line char length token-type token-modifiers)Add another token. Add another token. Use only when providing a legend.
Parameters:
line: number - The token start line number (absolute value).range: Range - The range of the token. Must be single-line.char: number - The token start character (absolute value).token-type: string - The token type.length: number - The token length in characters.token-modifiers: readonly string[] | undefined - The token modifiers.Returns: void
Add another token. Add another token. Use only when providing a legend. **Parameters:** - `line`: `number` - The token start line number (absolute value). - `range`: `Range` - The range of the token. Must be single-line. - `char`: `number` - The token start character (absolute value). - `token-type`: `string` - The token type. - `length`: `number` - The token length in characters. - `token-modifiers`: `readonly string[] | undefined` - The token modifiers. **Returns:** `void`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |