25 references to DefaultSwitchLabel
Microsoft.CodeAnalysis.CSharp (8)
Binder\DecisionDagBuilder.cs (1)
153if (label.Syntax.Kind() != SyntaxKind.DefaultSwitchLabel)
Binder\SwitchBinder.cs (1)
113else if (labelKind == SyntaxKind.DefaultSwitchLabel)
Binder\SwitchBinder_Patterns.cs (2)
97if (!label.HasErrors && isSubsumed(label, reachableLabels) && label.Syntax.Kind() != SyntaxKind.DefaultSwitchLabel) 248case SyntaxKind.DefaultSwitchLabel:
Compilation\CSharpSemanticModel.cs (1)
5099case SyntaxKind.DefaultSwitchLabel:
Operations\CSharpOperationFactory.cs (1)
2751if (boundSwitchLabel.Syntax.Kind() == SyntaxKind.DefaultSwitchLabel)
Symbols\Source\SourceLabelSymbol.cs (1)
51if (node.Kind() == SyntaxKind.DefaultSwitchLabel)
Syntax\SyntaxKindFacts.cs (1)
820return SyntaxKind.DefaultSwitchLabel;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
15if (node.IsKind(SyntaxKind.DefaultSwitchLabel))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
398SyntaxKind.DefaultSwitchLabel or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
171case SyntaxKind.DefaultSwitchLabel:
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))
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\CompletionUtilities.cs (1)
167symbol.DeclaringSyntaxReferences[0].GetSyntax().Kind() == SyntaxKind.DefaultSwitchLabel)
EditAndContinue\BreakpointSpans.cs (1)
286case SyntaxKind.DefaultSwitchLabel:
EditAndContinue\SyntaxComparer.cs (1)
422case SyntaxKind.DefaultSwitchLabel:
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionHelpers.cs (1)
15if (node.IsKind(SyntaxKind.DefaultSwitchLabel))
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
171case SyntaxKind.DefaultSwitchLabel:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\StatementAttributeParsingTests.cs (1)
2360N(SyntaxKind.DefaultSwitchLabel);
Parsing\StatementParsingTests.cs (1)
2247Assert.Equal(SyntaxKind.DefaultSwitchLabel, ss.Sections[0].Labels[0].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
122case SyntaxKind.DefaultSwitchLabel:
Recommendations\CSharpRecommendationServiceRunner.cs (1)
311.Kind() is SyntaxKind.LabeledStatement or SyntaxKind.DefaultSwitchLabel);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
398SyntaxKind.DefaultSwitchLabel or
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))