A semantic tokens builder can help with creating a SemanticTokens instance
which contains delta encoded semantic tokens.
Constructor
new(?legend:SemanticTokensLegend)
Creates a semantic tokens builder.
Parameters:
legend | A semantic tokens legend. |
|---|
Methods
push(line:Int, char:Int, length:Int, tokenType:Int, ?tokenModifiers:Int):Void
push(range:Range, tokenType:String, ?tokenModifiers:ReadOnlyArray<String>):Void
Add another token.
Parameters:
line | The token start line number (absolute value). |
|---|---|
char | The token start character (absolute value). |
length | The token length in characters. |
tokenType | The encoded token type. |
tokenModifiers | The encoded token modifiers. |