Liking cljdoc? Tell your friends :D
ClojureScript only.

dots.vscode.semantic-tokens-builder

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.
raw docstring

buildcljs

(build semantic-tokens-builder)
(build semantic-tokens-builder result-id)

Finish and create a SemanticTokens instance.

Parameters:

  • result-id: string | undefined

Returns: SemanticTokens

Finish and create a `SemanticTokens` instance.

**Parameters:**
- `result-id`: `string | undefined`

**Returns:** `SemanticTokens`
sourceraw docstring

pushcljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close