A semantic tokens builder can help with creating a SemanticTokens
instance
which contains delta encoded semantic tokens.
Constructor
Methods
push(line:Int, char:Int, length:Int, tokenType:Int, ?tokenModifiers:Int):Void
push(range:Range, tokenType:String, ?tokenModifiers:Array<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. |