62 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)
39return ClassificationTypeNames.Keyword; 271return ClassificationTypeNames.Keyword; 526var wasKeyword = classificationType == ClassificationTypeNames.Keyword; 562isKeyword ? 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)
78if (classifiedSpan.ClassificationType != ClassificationTypeNames.Keyword) 153classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 160classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 168classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 175classifiedSpan = new ClassifiedSpan(name.Span, ClassificationTypeNames.Keyword); 297result.Add(new ClassifiedSpan(token.Span, ClassificationTypeNames.Keyword)); 312result.Add(new ClassifiedSpan(name.Identifier.Span, ClassificationTypeNames.Keyword)); 328result.Add(new(name.Span, ClassificationTypeNames.Keyword));
Classification\Worker.cs (1)
134AddClassification(TextSpan.FromBounds(token.Span.End - "u8".Length, token.Span.End), ClassificationTypeNames.Keyword);
Classification\Worker_DocumentationComments.cs (1)
320AddClassification(token, isControlKeyword ? ClassificationTypeNames.ControlKeyword : ClassificationTypeNames.Keyword);
Classification\Worker_Preprocesser.cs (1)
126AddClassification(literal.Token, ClassificationTypeNames.Keyword);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Classification\FormattedClassifications.cs (1)
127=> New(text, ClassificationTypeNames.Keyword);
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
155TextTags.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)
13812, 0, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 14316, 3, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 3151, 8, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 4051, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 5191, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var'
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Tooltip\ClassifiedTagHelperTooltipFactory.cs (2)
341runs.Add(new ClassifiedTextRun(ClassificationTypeNames.Keyword, aliasedTypeName)); 346runs.Add(new ClassifiedTextRun(ClassificationTypeNames.Keyword, typeName));
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (18)
Hover\HoverFactoryTest.cs (1)
592run => run.AssertExpectedClassification("bool", ClassificationTypeNames.Keyword),
Tooltip\ClassifiedTagHelperTooltipFactoryTest.cs (17)
39run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 62run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 217run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 299run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 313run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 350run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 367run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 404run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 419run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 424run => run.AssertExpectedClassification("bool", ClassificationTypeNames.Keyword), 440run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 510run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 540run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 595run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 615run => run.AssertExpectedClassification("string", ClassificationTypeNames.Keyword), 631run => run.AssertExpectedClassification("bool", ClassificationTypeNames.Keyword), 652run => run.AssertExpectedClassification("string", 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);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (6)
Cohost\HoverAssertions.cs (1)
75=> Run(text, ClassificationTypeNames.Keyword);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\DocumentExcerpt\RazorDocumentExcerptServiceTest.cs (5)
54Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 316Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 397Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 494Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 592Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (5)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\DocumentExcerpt\RazorDocumentExcerptServiceTest.cs (5)
54Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 316Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 397Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 494Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType); 592Assert.Equal(ClassificationTypeNames.Keyword, c.ClassificationType);