Represents semantic tokens, either in a range or in an entire document. @link DocumentSemanticTokensProvider.provideDocumentSemanticTokens provideDocumentSemanticTokens} for an explanation of the format. @link SemanticTokensBuilder} for a helper to create an instance.
See also:
{
{
Constructor
new(data:Uint32Array, ?resultId:String)
Create new semantic tokens.
Parameters:
data | Token data. |
---|---|
resultId | Result identifier. |
Variables
read onlydata:Uint32Array
The actual tokens data. @link DocumentSemanticTokensProvider.provideDocumentSemanticTokens provideDocumentSemanticTokens} for an explanation of the format.
See also:
{
read onlyresultId:Null<String>
The result id of the tokens.
This is the id that will be passed to DocumentSemanticTokensProvider.provideDocumentSemanticTokensEdits
(if implemented).