57 references to CaseSwitchLabel
Microsoft.CodeAnalysis.CSharp (6)
Binder\ExpressionVariableFinder.cs (1)
157case SyntaxKind.CaseSwitchLabel:
Binder\LocalBinderFactory.cs (1)
764case SyntaxKind.CaseSwitchLabel:
Binder\SwitchBinder.cs (1)
208case SyntaxKind.CaseSwitchLabel:
Binder\SwitchBinder_Patterns.cs (1)
236case SyntaxKind.CaseSwitchLabel:
Compilation\CSharpSemanticModel.cs (1)
5098case SyntaxKind.CaseSwitchLabel:
Syntax\SyntaxKindFacts.cs (1)
818return SyntaxKind.CaseSwitchLabel;
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
250if (nodeParent.IsKind(SyntaxKind.CaseSwitchLabel))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
400SyntaxKind.CaseSwitchLabel or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
300if (currentOriginalNode.Kind() is SyntaxKind.CaseSwitchLabel or SyntaxKind.ConstantPattern)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
167case SyntaxKind.CaseSwitchLabel:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
156return token.Parent is (kind: SyntaxKind.CaseSwitchLabel or SyntaxKind.DefaultSwitchLabel or SyntaxKind.CasePatternSwitchLabel or SyntaxKind.LabeledStatement); 403if (targetToken.Parent is (kind: SyntaxKind.CaseSwitchLabel or SyntaxKind.DefaultSwitchLabel or SyntaxKind.CasePatternSwitchLabel))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
2114switchLabel.Kind() != SyntaxKind.CaseSwitchLabel) 2133.FirstOrDefault(label => label.Kind() == SyntaxKind.CaseSwitchLabel) is CaseSwitchLabelSyntax firstCase)
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
488else if (parent.IsParentKind(SyntaxKind.CaseSwitchLabel))
EditAndContinue\BreakpointSpans.cs (1)
285case SyntaxKind.CaseSwitchLabel:
EditAndContinue\SyntaxComparer.cs (1)
421case SyntaxKind.CaseSwitchLabel:
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
167case SyntaxKind.CaseSwitchLabel:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (31)
Parsing\ExpressionParsingTests.cs (2)
3961N(SyntaxKind.CaseSwitchLabel); 4627N(SyntaxKind.CaseSwitchLabel);
Parsing\NullableParsingTests.cs (1)
704N(SyntaxKind.CaseSwitchLabel);
Parsing\PatternParsingTests.cs (25)
818N(SyntaxKind.CaseSwitchLabel); 835N(SyntaxKind.CaseSwitchLabel); 852N(SyntaxKind.CaseSwitchLabel); 869N(SyntaxKind.CaseSwitchLabel); 886N(SyntaxKind.CaseSwitchLabel); 903N(SyntaxKind.CaseSwitchLabel); 1470N(SyntaxKind.CaseSwitchLabel); 1633N(SyntaxKind.CaseSwitchLabel); 1745N(SyntaxKind.CaseSwitchLabel); 2352N(SyntaxKind.CaseSwitchLabel); 2828N(SyntaxKind.CaseSwitchLabel); 5501N(SyntaxKind.CaseSwitchLabel); 5537N(SyntaxKind.CaseSwitchLabel); 6593N(SyntaxKind.CaseSwitchLabel); 6615N(SyntaxKind.CaseSwitchLabel); 6641N(SyntaxKind.CaseSwitchLabel); 6667N(SyntaxKind.CaseSwitchLabel); 7095N(SyntaxKind.CaseSwitchLabel); 7212N(SyntaxKind.CaseSwitchLabel); 7274N(SyntaxKind.CaseSwitchLabel); 7339N(SyntaxKind.CaseSwitchLabel); 7396N(SyntaxKind.CaseSwitchLabel); 11753N(SyntaxKind.CaseSwitchLabel); 12603N(SyntaxKind.CaseSwitchLabel); 12654N(SyntaxKind.CaseSwitchLabel);
Parsing\StatementAttributeParsingTests.cs (1)
2481N(SyntaxKind.CaseSwitchLabel);
Parsing\StatementParsingTests.cs (1)
5568N(SyntaxKind.CaseSwitchLabel);
Parsing\SwitchExpressionParsingTests.cs (1)
398N(SyntaxKind.CaseSwitchLabel);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\ClassificationHelpers.cs (1)
119case SyntaxKind.CaseSwitchLabel:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
250if (nodeParent.IsKind(SyntaxKind.CaseSwitchLabel))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
400SyntaxKind.CaseSwitchLabel or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
300if (currentOriginalNode.Kind() is SyntaxKind.CaseSwitchLabel or SyntaxKind.ConstantPattern)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (2)
156return token.Parent is (kind: SyntaxKind.CaseSwitchLabel or SyntaxKind.DefaultSwitchLabel or SyntaxKind.CasePatternSwitchLabel or SyntaxKind.LabeledStatement); 403if (targetToken.Parent is (kind: SyntaxKind.CaseSwitchLabel or SyntaxKind.DefaultSwitchLabel or SyntaxKind.CasePatternSwitchLabel))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
2114switchLabel.Kind() != SyntaxKind.CaseSwitchLabel) 2133.FirstOrDefault(label => label.Kind() == SyntaxKind.CaseSwitchLabel) is CaseSwitchLabelSyntax firstCase)