99 references to Keyword
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.cs (1)
112
=> New(text, ClassificationTypeNames.
Keyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
Classification\ClassificationHelpers.cs (4)
37
return ClassificationTypeNames.
Keyword
;
263
return ClassificationTypeNames.
Keyword
;
517
var wasKeyword = classificationType == ClassificationTypeNames.
Keyword
;
553
isKeyword ? ClassificationTypeNames.
Keyword
: ClassificationTypeNames.Identifier, span);
Classification\SyntaxClassification\DiscardSyntaxClassifier.cs (3)
30
result.Add(new ClassifiedSpan(syntax.Span, ClassificationTypeNames.
Keyword
));
41
result.Add(new ClassifiedSpan(parameter.Identifier.Span, ClassificationTypeNames.
Keyword
));
51
result.Add(new ClassifiedSpan(syntax.Span, ClassificationTypeNames.
Keyword
));
Classification\SyntaxClassification\NameSyntaxClassifier.cs (8)
79
if (classifiedSpan.ClassificationType != ClassificationTypeNames.
Keyword
)
154
classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.
Keyword
);
161
classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.
Keyword
);
169
classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.
Keyword
);
176
classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.
Keyword
);
294
result.Add(new ClassifiedSpan(token.Span, ClassificationTypeNames.
Keyword
));
309
result.Add(new ClassifiedSpan(name.Identifier.Span, ClassificationTypeNames.
Keyword
));
325
result.Add(new(name.Span, ClassificationTypeNames.
Keyword
));
Classification\Worker.cs (1)
136
AddClassification(TextSpan.FromBounds(token.Span.End - "u8".Length, token.Span.End), ClassificationTypeNames.
Keyword
);
Classification\Worker_Preprocesser.cs (1)
121
AddClassification(literal.Token, ClassificationTypeNames.
Keyword
);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Classification\FormattedClassifications.cs (1)
115
=> New(text, ClassificationTypeNames.
Keyword
);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (57)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (37)
78
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
84
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "string"),
165
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
171
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "string"),
266
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
272
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "string"),
352
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
365
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "default"),
425
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
472
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
529
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "delegate"),
531
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
588
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
596
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "get"),
661
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
709
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "bool", navigationAction:=Sub() Return, "bool"),
758
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "bool", navigationAction:=Sub() Return, "bool"),
807
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
852
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "readonly"),
854
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
889
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "readonly"),
891
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
899
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "get"),
931
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "readonly"),
976
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
1027
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
1033
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
1040
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
1078
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
1134
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
1139
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
1169
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "enum"),
1175
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "byte", navigationAction:=Sub() Return, "byte"))))
1213
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
1218
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
1260
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
1265
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Code.vb (2)
46
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
95
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Inheritdoc.vb (8)
48
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "class"),
90
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "class"),
136
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "class"),
190
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "class"),
236
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "class"),
287
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
293
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
349
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "int", navigationAction:=Sub() Return, "int"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Links.vb (4)
48
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
95
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
140
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
150
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "string", navigationAction:=Sub() Return, "string"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Lists.vb (5)
52
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
115
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
174
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
239
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
318
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Styles.vb (1)
56
New ClassifiedTextRun(ClassificationTypeNames.
Keyword
, "void"),
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
149
TextTags.Keyword => ClassificationTypeNames.
Keyword
,
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\SemanticTokens\SemanticTokensSchema.cs (1)
27
[ClassificationTypeNames.
Keyword
] = SemanticTokenTypes.Keyword,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
SemanticTokens\SemanticTokensRangeTests.cs (5)
139
12, 0, 3, tokenTypeToIndex[ClassificationTypeNames.
Keyword
], 0, // 'var'
144
17, 3, 3, tokenTypeToIndex[ClassificationTypeNames.
Keyword
], 0, // 'var'
310
1, 8, 3, tokenTypeToIndex[ClassificationTypeNames.
Keyword
], 0, // 'var'
398
1, 2, 3, tokenTypeToIndex[ClassificationTypeNames.
Keyword
], 0, // 'var'
507
1, 2, 3, tokenTypeToIndex[ClassificationTypeNames.
Keyword
], 0, // 'var'
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
Classification\ClassificationHelpers.vb (2)
25
Return ClassificationTypeNames.
Keyword
226
Return ClassificationTypeNames.
Keyword
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
27
result.Add(New ClassifiedSpan(ClassificationTypeNames.
Keyword
, identifier.Span))
Classification\SyntaxClassification\NameSyntaxClassifier.vb (5)
158
classifiedSpan = New ClassifiedSpan(GetNameToken(node).Span, ClassificationTypeNames.
Keyword
)
180
classifiedSpan = New ClassifiedSpan(token.Span, ClassificationTypeNames.
Keyword
)
187
classifiedSpan = New ClassifiedSpan(token.Span, ClassificationTypeNames.
Keyword
)
215
Return ClassificationTypeNames.
Keyword
257
result.Add(New ClassifiedSpan(token.Span, ClassificationTypeNames.
Keyword
))
Classification\Worker.XmlClassifier.vb (1)
328
AddTokenClassification(node.GetXmlNamespaceKeyword, ClassificationTypeNames.
Keyword
)
Microsoft.CodeAnalysis.Workspaces (3)
Classification\ClassificationExtensions.cs (1)
19
TypeKind.Dynamic => ClassificationTypeNames.
Keyword
,
Classification\ClassificationTypeNames.cs (1)
21
Keyword
,
Classification\Classifier.cs (1)
157
ClassificationTypeNames.
Keyword
=> SymbolDisplayPartKind.Keyword,
Microsoft.VisualStudio.LanguageServices (4)
ColorSchemes\ColorSchemeApplier.ClassificationVerifier.cs (3)
49
[ClassificationTypeNames.
Keyword
] = DarkThemeKeyword,
59
[ClassificationTypeNames.
Keyword
] = LightThemeKeyword,
196
ClassificationTypeNames.ControlKeyword => coreThemeColors[ClassificationTypeNames.
Keyword
],
HACK_ThemeColorFixer.cs (1)
120
UpdateForegroundColor(ClassificationTypeNames.
Keyword
, sourceFormatMap, targetFormatMap);