24 references to SemanticTokenTypes
Microsoft.CodeAnalysis.LanguageServer.Protocol (24)
Handler\SemanticTokens\SemanticTokensSchema.cs (24)
25[ClassificationTypeNames.Comment] = SemanticTokenTypes.Comment,
26[ClassificationTypeNames.Identifier] = SemanticTokenTypes.Variable,
27[ClassificationTypeNames.Keyword] = SemanticTokenTypes.Keyword,
28[ClassificationTypeNames.NumericLiteral] = SemanticTokenTypes.Number,
29[ClassificationTypeNames.Operator] = SemanticTokenTypes.Operator,
30[ClassificationTypeNames.StringLiteral] = SemanticTokenTypes.String,
40[ClassificationTypeNames.ClassName] = SemanticTokenTypes.Class,
41[ClassificationTypeNames.StructName] = SemanticTokenTypes.Struct,
42[ClassificationTypeNames.NamespaceName] = SemanticTokenTypes.Namespace,
43[ClassificationTypeNames.EnumName] = SemanticTokenTypes.Enum,
44[ClassificationTypeNames.InterfaceName] = SemanticTokenTypes.Interface,
45[ClassificationTypeNames.TypeParameterName] = SemanticTokenTypes.TypeParameter,
46[ClassificationTypeNames.ParameterName] = SemanticTokenTypes.Parameter,
47[ClassificationTypeNames.LocalName] = SemanticTokenTypes.Variable,
48[ClassificationTypeNames.PropertyName] = SemanticTokenTypes.Property,
49[ClassificationTypeNames.MethodName] = SemanticTokenTypes.Method,
50[ClassificationTypeNames.EnumMemberName] = SemanticTokenTypes.EnumMember,
51[ClassificationTypeNames.EventName] = SemanticTokenTypes.Event,
52[ClassificationTypeNames.PreprocessorKeyword] = SemanticTokenTypes.Macro,
80/// <see cref="SemanticTokenTypes"/> or a custom token name.
91/// Equivalent to see <see cref="SemanticTokenTypes.AllTypes"/> combined with the remaining custom token names from <see cref="TokenTypeMap"/>
101.Where(tokenType => !SemanticTokenTypes.AllTypes.Contains(tokenType))
105AllTokenTypes = [.. SemanticTokenTypes.AllTypes, .. customTokenTypes];
109foreach (var lspTokenType in SemanticTokenTypes.AllTypes)