3 overrides of Keyword
Microsoft.CodeAnalysis.CSharp (3)
Syntax.xml.Syntax.Generated.cs (3)
8664public override SyntaxToken Keyword => new SyntaxToken(this, ((InternalSyntax.CasePatternSwitchLabelSyntax)this.Green).keyword, Position, 0); 8731public override SyntaxToken Keyword => new SyntaxToken(this, ((InternalSyntax.CaseSwitchLabelSyntax)this.Green).keyword, Position, 0); 8782public override SyntaxToken Keyword => new SyntaxToken(this, ((InternalSyntax.DefaultSwitchLabelSyntax)this.Green).keyword, Position, 0);
19 references to Keyword
Microsoft.CodeAnalysis.CSharp (1)
Binder\SwitchBinder_Patterns.cs (1)
270MessageID.IDS_FeaturePatternMatching.CheckFeatureAvailability(diagnostics, node.Keyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2113if (previousToken.Value != switchLabel.Keyword ||
Microsoft.CodeAnalysis.CSharp.Features (1)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
45spans.Add(label.Keyword.Span);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Parsing\StatementParsingTests.cs (14)
2162Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword); 2163Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind()); 2198Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword); 2199Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind()); 2209Assert.NotEqual(default, ss.Sections[1].Labels[0].Keyword); 2210Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[1].Labels[0].Keyword.Kind()); 2245Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword); 2246Assert.Equal(SyntaxKind.DefaultKeyword, ss.Sections[0].Labels[0].Keyword.Kind()); 2278Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword); 2279Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind()); 2284Assert.NotEqual(default, ss.Sections[0].Labels[1].Keyword); 2285Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[1].Keyword.Kind()); 2320Assert.NotEqual(default, ss.Sections[0].Labels[0].Keyword); 2321Assert.Equal(SyntaxKind.CaseKeyword, ss.Sections[0].Labels[0].Keyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2113if (previousToken.Value != switchLabel.Keyword ||
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2113if (previousToken.Value != switchLabel.Keyword ||