TokenType

Types of tokens used for semantic highlighting.

Parameters

legendName

the name of the token type, used in the semantic token legend

Entries

Link copied to clipboard

A function call identifier.

Link copied to clipboard

A function call chaining separator.

Link copied to clipboard

A named parameter in a function call.

Link copied to clipboard

Delimiters of an inline argument in a function call.

Link copied to clipboard

A number value.

Link copied to clipboard

A range value.

Link copied to clipboard

A size value or a list of sizes.

Link copied to clipboard

A boolean value.

Link copied to clipboard

An enum value.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val index: Int

The index of this token type in the semantic token legend. This is used to encode the token type.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): TokenType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.