98 references to Keyword
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.cs (1)
112=> New(text, ClassificationTypeNames.Keyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (18)
Classification\ClassificationHelpers.cs (4)
37return ClassificationTypeNames.Keyword; 269return ClassificationTypeNames.Keyword; 520var wasKeyword = classificationType == ClassificationTypeNames.Keyword; 556isKeyword ? ClassificationTypeNames.Keyword : ClassificationTypeNames.Identifier, span);
Classification\SyntaxClassification\DiscardSyntaxClassifier.cs (3)
30result.Add(new ClassifiedSpan(syntax.Span, ClassificationTypeNames.Keyword)); 41result.Add(new ClassifiedSpan(parameter.Identifier.Span, ClassificationTypeNames.Keyword)); 51result.Add(new ClassifiedSpan(syntax.Span, ClassificationTypeNames.Keyword));
Classification\SyntaxClassification\NameSyntaxClassifier.cs (8)
79if (classifiedSpan.ClassificationType != ClassificationTypeNames.Keyword) 154classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 161classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 169classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 176classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 298result.Add(new ClassifiedSpan(token.Span, ClassificationTypeNames.Keyword)); 313result.Add(new ClassifiedSpan(name.Identifier.Span, ClassificationTypeNames.Keyword)); 329result.Add(new(name.Span, ClassificationTypeNames.Keyword));
Classification\Worker.cs (1)
136AddClassification(TextSpan.FromBounds(token.Span.End - "u8".Length, token.Span.End), ClassificationTypeNames.Keyword);
Classification\Worker_DocumentationComments.cs (1)
313AddClassification(token, isControlKeyword ? ClassificationTypeNames.ControlKeyword : ClassificationTypeNames.Keyword);
Classification\Worker_Preprocesser.cs (1)
125AddClassification(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)
79New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 85New ClassifiedTextRun(ClassificationTypeNames.Keyword, "string"), 166New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 172New ClassifiedTextRun(ClassificationTypeNames.Keyword, "string"), 267New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 273New ClassifiedTextRun(ClassificationTypeNames.Keyword, "string"), 353New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 366New ClassifiedTextRun(ClassificationTypeNames.Keyword, "default"), 426New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 473New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 530New ClassifiedTextRun(ClassificationTypeNames.Keyword, "delegate"), 532New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 589New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 597New ClassifiedTextRun(ClassificationTypeNames.Keyword, "get"), 662New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 710New ClassifiedTextRun(ClassificationTypeNames.Keyword, "bool", navigationAction:=Sub() Return, "bool"), 759New ClassifiedTextRun(ClassificationTypeNames.Keyword, "bool", navigationAction:=Sub() Return, "bool"), 808New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 853New ClassifiedTextRun(ClassificationTypeNames.Keyword, "readonly"), 855New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 890New ClassifiedTextRun(ClassificationTypeNames.Keyword, "readonly"), 892New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 900New ClassifiedTextRun(ClassificationTypeNames.Keyword, "get"), 932New ClassifiedTextRun(ClassificationTypeNames.Keyword, "readonly"), 977New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 1028New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 1034New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1041New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1079New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 1135New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1140New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1170New ClassifiedTextRun(ClassificationTypeNames.Keyword, "enum"), 1176New ClassifiedTextRun(ClassificationTypeNames.Keyword, "byte", navigationAction:=Sub() Return, "byte")))) 1214New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1219New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1261New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1266New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Code.vb (2)
46New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 95New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Inheritdoc.vb (8)
48New ClassifiedTextRun(ClassificationTypeNames.Keyword, "class"), 90New ClassifiedTextRun(ClassificationTypeNames.Keyword, "class"), 136New ClassifiedTextRun(ClassificationTypeNames.Keyword, "class"), 190New ClassifiedTextRun(ClassificationTypeNames.Keyword, "class"), 236New ClassifiedTextRun(ClassificationTypeNames.Keyword, "class"), 287New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 293New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 349New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Links.vb (4)
48New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 95New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 140New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 150New ClassifiedTextRun(ClassificationTypeNames.Keyword, "string", navigationAction:=Sub() Return, "string"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Lists.vb (5)
52New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 115New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 174New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 239New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 318New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Styles.vb (1)
56New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"),
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
149TextTags.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)
13912, 0, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 14417, 3, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 3161, 8, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 4061, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 5181, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var'
Microsoft.CodeAnalysis.VisualBasic.Workspaces (10)
Classification\ClassificationHelpers.vb (2)
25Return ClassificationTypeNames.Keyword 226Return ClassificationTypeNames.Keyword
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
33result.Add(New ClassifiedSpan(ClassificationTypeNames.Keyword, identifier.Span))
Classification\SyntaxClassification\NameSyntaxClassifier.vb (5)
158classifiedSpan = New ClassifiedSpan(GetNameToken(node).Span, ClassificationTypeNames.Keyword) 180classifiedSpan = New ClassifiedSpan(token.Span, ClassificationTypeNames.Keyword) 187classifiedSpan = New ClassifiedSpan(token.Span, ClassificationTypeNames.Keyword) 215Return ClassificationTypeNames.Keyword 257result.Add(New ClassifiedSpan(token.Span, ClassificationTypeNames.Keyword))
Classification\Worker.DocumentationCommentClassifier.vb (1)
298AddXmlClassification(token, If(isControlKeyword, ClassificationTypeNames.ControlKeyword, ClassificationTypeNames.Keyword))
Classification\Worker.XmlClassifier.vb (1)
328AddTokenClassification(node.GetXmlNamespaceKeyword, ClassificationTypeNames.Keyword)
Microsoft.CodeAnalysis.Workspaces (3)
Classification\ClassificationExtensions.cs (1)
19TypeKind.Dynamic => ClassificationTypeNames.Keyword,
Classification\ClassificationTypeNames.cs (1)
21Keyword,
Classification\Classifier.cs (1)
157ClassificationTypeNames.Keyword => SymbolDisplayPartKind.Keyword,
Microsoft.VisualStudio.LanguageServices (1)
HACK_ThemeColorFixer.cs (1)
118UpdateForegroundColor(ClassificationTypeNames.Keyword, sourceFormatMap, targetFormatMap);