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)
37return ClassificationTypeNames.Keyword; 263return ClassificationTypeNames.Keyword; 517var wasKeyword = classificationType == ClassificationTypeNames.Keyword; 553isKeyword ? 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); 294result.Add(new ClassifiedSpan(token.Span, ClassificationTypeNames.Keyword)); 309result.Add(new ClassifiedSpan(name.Identifier.Span, ClassificationTypeNames.Keyword)); 325result.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_Preprocesser.cs (1)
121AddClassification(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)
78New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 84New ClassifiedTextRun(ClassificationTypeNames.Keyword, "string"), 165New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 171New ClassifiedTextRun(ClassificationTypeNames.Keyword, "string"), 266New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 272New ClassifiedTextRun(ClassificationTypeNames.Keyword, "string"), 352New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 365New ClassifiedTextRun(ClassificationTypeNames.Keyword, "default"), 425New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 472New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 529New ClassifiedTextRun(ClassificationTypeNames.Keyword, "delegate"), 531New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 588New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 596New ClassifiedTextRun(ClassificationTypeNames.Keyword, "get"), 661New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 709New ClassifiedTextRun(ClassificationTypeNames.Keyword, "bool", navigationAction:=Sub() Return, "bool"), 758New ClassifiedTextRun(ClassificationTypeNames.Keyword, "bool", navigationAction:=Sub() Return, "bool"), 807New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 852New ClassifiedTextRun(ClassificationTypeNames.Keyword, "readonly"), 854New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 889New ClassifiedTextRun(ClassificationTypeNames.Keyword, "readonly"), 891New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 899New ClassifiedTextRun(ClassificationTypeNames.Keyword, "get"), 931New ClassifiedTextRun(ClassificationTypeNames.Keyword, "readonly"), 976New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 1027New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 1033New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1040New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1078New ClassifiedTextRun(ClassificationTypeNames.Keyword, "void"), 1134New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1139New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1169New ClassifiedTextRun(ClassificationTypeNames.Keyword, "enum"), 1175New ClassifiedTextRun(ClassificationTypeNames.Keyword, "byte", navigationAction:=Sub() Return, "byte")))) 1213New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1218New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1260New ClassifiedTextRun(ClassificationTypeNames.Keyword, "int", navigationAction:=Sub() Return, "int"), 1265New 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' 3101, 8, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 3981, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 5071, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var'
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
Classification\ClassificationHelpers.vb (2)
25Return ClassificationTypeNames.Keyword 226Return ClassificationTypeNames.Keyword
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
27result.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.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 (4)
ColorSchemes\ColorSchemeApplier.ClassificationVerifier.cs (3)
49[ClassificationTypeNames.Keyword] = DarkThemeKeyword, 59[ClassificationTypeNames.Keyword] = LightThemeKeyword, 196ClassificationTypeNames.ControlKeyword => coreThemeColors[ClassificationTypeNames.Keyword],
HACK_ThemeColorFixer.cs (1)
120UpdateForegroundColor(ClassificationTypeNames.Keyword, sourceFormatMap, targetFormatMap);