A set of predefined token types. This set is not fixed an clients can specify additional token types via the corresponding client capabilities.

Available since

3.16.0

.

Variables

@:value(cast "class")@:impl@:enuminlineread onlyClass:SemanticTokenTypes = "class"

@:value(cast "comment")@:impl@:enuminlineread onlyComment:SemanticTokenTypes = "comment"

@:value(cast "decorator")@:impl@:enuminlineread onlyDecorator:SemanticTokenTypes = "decorator"

Available since

3.17.0

.

@:value(cast "enum")@:impl@:enuminlineread onlyEnum:SemanticTokenTypes = "enum"

@:value(cast "enumMember")@:impl@:enuminlineread onlyEnumMember:SemanticTokenTypes = "enumMember"

@:value(cast "event")@:impl@:enuminlineread onlyEvent:SemanticTokenTypes = "event"

@:value(cast "function")@:impl@:enuminlineread onlyFunction:SemanticTokenTypes = "function"

@:value(cast "interface")@:impl@:enuminlineread onlyInterface:SemanticTokenTypes = "interface"

@:value(cast "keyword")@:impl@:enuminlineread onlyKeyword:SemanticTokenTypes = "keyword"

@:value(cast "macro")@:impl@:enuminlineread onlyMacro:SemanticTokenTypes = "macro"

@:value(cast "method")@:impl@:enuminlineread onlyMethod:SemanticTokenTypes = "method"

@:value(cast "modifier")@:impl@:enuminlineread onlyModifier:SemanticTokenTypes = "modifier"

@:value(cast "number")@:impl@:enuminlineread onlyNumber:SemanticTokenTypes = "number"

@:value(cast "operator")@:impl@:enuminlineread onlyOperator:SemanticTokenTypes = "operator"

@:value(cast "parameter")@:impl@:enuminlineread onlyParameter:SemanticTokenTypes = "parameter"

@:value(cast "property")@:impl@:enuminlineread onlyProperty:SemanticTokenTypes = "property"

@:value(cast "regexp")@:impl@:enuminlineread onlyRegexp:SemanticTokenTypes = "regexp"

@:value(cast "string")@:impl@:enuminlineread onlyStringToken:SemanticTokenTypes = "string"

@:value(cast "struct")@:impl@:enuminlineread onlyStruct:SemanticTokenTypes = "struct"

@:value(cast "type")@:impl@:enuminlineread onlyType:SemanticTokenTypes = "type"

Represents a generic type. Acts as a fallback for types which can't be mapped to a specific type like class or enum.

@:value(cast "typeParameter")@:impl@:enuminlineread onlyTypeParameter:SemanticTokenTypes = "typeParameter"

@:value(cast "variable")@:impl@:enuminlineread onlyVariable:SemanticTokenTypes = "variable"

@:value(cast "namespace")@:impl@:enuminlineread onlynamespace:SemanticTokenTypes = "namespace"