21 references to TokenModifiers
Microsoft.CodeAnalysis.LanguageServer.Protocol (12)
Handler\SemanticTokens\SemanticTokensHelpers.cs (5)
150if (SemanticTokensSchema.AdditiveClassificationTypeToTokenModifier.TryGetValue(s.ClassificationType, out var modifier) && modifier == TokenModifiers.None) 330var modifierBits = TokenModifiers.None; 340if (SemanticTokensSchema.AdditiveClassificationTypeToTokenModifier.TryGetValue(classificationType, out var modifier))
Handler\SemanticTokens\SemanticTokensSchema.cs (7)
81public static readonly ImmutableDictionary<string, TokenModifiers> AdditiveClassificationTypeToTokenModifier = new Dictionary<string, TokenModifiers>() 83[ClassificationTypeNames.StaticSymbol] = SemanticTokens.TokenModifiers.Static, 84[ClassificationTypeNames.ReassignedVariable] = SemanticTokens.TokenModifiers.ReassignedVariable, 85[ClassificationTypeNames.ObsoleteSymbol] = SemanticTokens.TokenModifiers.Deprecated, 86[ClassificationTypeNames.TestCode] = SemanticTokens.TokenModifiers.None, 144nameof(SemanticTokens.TokenModifiers.ReassignedVariable),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (9)
SemanticTokens\SemanticTokensFullTests.cs (2)
450, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 580, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C'
SemanticTokens\SemanticTokensRangesTests.cs (2)
450, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 580, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C'
SemanticTokens\SemanticTokensRangeTests.cs (4)
490, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 620, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C' 1970, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 2090, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C'
SemanticTokens\SemanticTokensSchemaTests.cs (1)
18Assert.True(SemanticTokensSchema.AdditiveClassificationTypeToTokenModifier.ContainsKey(additiveClassification), $"Modifier '{additiveClassification}' is not mapped to a {nameof(TokenModifiers)}");