SimpleTokenData

data class SimpleTokenData(val range: IntRange, val type: TokenType)

A simplified version of a semantic token, used for initial processing. This can be converted to a full semantic token via toSemanticData.

Parameters

range

the character range, inclusive, of the token in the text

type

the type of the token, which is an index into the semantic token legend

Constructors

Link copied to clipboard
constructor(range: IntRange, type: TokenType)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Converts a SimpleTokenData to a full SemanticTokenData which adheres to the LSP specification.