SemanticTokensBuilder
A semantic tokens builder can help with creating a SemanticTokens instance which contains delta encoded semantic tokens.
Functions
Link copied to clipboard
Finish and create a SemanticTokens instance.
Link copied to clipboard
fun push(range: Range, tokenType: String, tokenModifiers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString> = definedExternally)
Add another token. Use only when providing a legend.
fun push(line: Int, char: Int, length: Int, tokenType: Int, tokenModifiers: Int = definedExternally)
Add another token.