Creates a semantic tokens builder.
A semantic tokens legent.
Add another token.
The token start line number (absolute value).
The token start character (absolute value).
The token length in characters.
The encoded token type.
The encoded token modifiers.
Add another token. Use only when providing a legend.
The range of the token. Must be single-line.
The token type.
The token modifiers.
Finish and create a SemanticTokens
instance.
A semantic tokens builder can help with creating a
SemanticTokens
instance which contains delta encoded semantic tokens.