96 references to SwitchSection
Microsoft.CodeAnalysis.CSharp (9)
Binder\ExpressionVariableFinder.cs (1)
39case SyntaxKind.SwitchSection:
CodeGen\EmitStatement.cs (2)
777(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection || local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchExpressionArm)); 1809(local.ScopeDesignatorOpt?.Kind() is SyntaxKind.SwitchSection or SyntaxKind.SwitchExpressionArm)))
Compilation\MemberSemanticModel.cs (1)
283else if (kind == SyntaxKind.SwitchSection)
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
81(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection ||
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
50if (section?.Kind() == SyntaxKind.SwitchSection)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
325if ((local.SynthesizedKind == SynthesizedLocalKind.UserDefined && local.ScopeDesignatorOpt?.Kind() != SyntaxKind.SwitchSection) || 721(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection ||
Syntax\SyntaxNodeExtensions.cs (1)
90case SyntaxKind.SwitchSection:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
CSharpBlockFacts.cs (1)
26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
NewLineUserSettingFormattingRule.cs (1)
67case SyntaxKind.SwitchSection:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
85&& !statement.IsParentKind(SyntaxKind.SwitchSection)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
142token.Parent.IsParentKind(SyntaxKind.SwitchSection))
Microsoft.CodeAnalysis.CSharp.Features (12)
BraceCompletion\CurlyBraceCompletionService.cs (1)
230case SyntaxKind.SwitchSection:
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
85&& !statement.IsParentKind(SyntaxKind.SwitchSection)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1775case SyntaxKind.SwitchSection:
EditAndContinue\SyntaxComparer.cs (3)
417case SyntaxKind.SwitchSection: 727case SyntaxKind.SwitchSection: 1055case SyntaxKind.SwitchSection:
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (2)
38=> ifNode?.Parent is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection); 47=> node.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection;
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
102|| parent.IsKind(SyntaxKind.SwitchSection)
Structure\Providers\BlockSyntaxStructureProvider.cs (2)
67if (parentKind is SyntaxKind.Block or SyntaxKind.SwitchSection) 152case SyntaxKind.SwitchSection: return BlockTypes.Conditional;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (65)
Parsing\DeconstructionTests.cs (2)
2827N(SyntaxKind.SwitchSection); 2895N(SyntaxKind.SwitchSection);
Parsing\ExpressionParsingTests.cs (3)
3959N(SyntaxKind.SwitchSection); 4625N(SyntaxKind.SwitchSection); 4851N(SyntaxKind.SwitchSection);
Parsing\FunctionPointerTests.cs (1)
2562N(SyntaxKind.SwitchSection);
Parsing\NullableParsingTests.cs (5)
701N(SyntaxKind.SwitchSection); 763N(SyntaxKind.SwitchSection); 849N(SyntaxKind.SwitchSection); 905N(SyntaxKind.SwitchSection); 964N(SyntaxKind.SwitchSection);
Parsing\PatternParsingTests.cs (48)
816N(SyntaxKind.SwitchSection); 950N(SyntaxKind.SwitchSection); 1468N(SyntaxKind.SwitchSection); 1520N(SyntaxKind.SwitchSection); 1588N(SyntaxKind.SwitchSection); 1631N(SyntaxKind.SwitchSection); 1682N(SyntaxKind.SwitchSection); 1743N(SyntaxKind.SwitchSection); 1793N(SyntaxKind.SwitchSection); 1882N(SyntaxKind.SwitchSection); 1970N(SyntaxKind.SwitchSection); 2055N(SyntaxKind.SwitchSection); 2194N(SyntaxKind.SwitchSection); 2267N(SyntaxKind.SwitchSection); 2316N(SyntaxKind.SwitchSection); 2362N(SyntaxKind.SwitchSection); 2413N(SyntaxKind.SwitchSection); 2792N(SyntaxKind.SwitchSection); 2865N(SyntaxKind.SwitchSection); 2935N(SyntaxKind.SwitchSection); 2986N(SyntaxKind.SwitchSection); 3923N(SyntaxKind.SwitchSection); 3994N(SyntaxKind.SwitchSection); 4067N(SyntaxKind.SwitchSection); 4138N(SyntaxKind.SwitchSection); 4211N(SyntaxKind.SwitchSection); 4298N(SyntaxKind.SwitchSection); 5538N(SyntaxKind.SwitchSection); 5574N(SyntaxKind.SwitchSection); 5610N(SyntaxKind.SwitchSection); 6630N(SyntaxKind.SwitchSection); 6652N(SyntaxKind.SwitchSection); 6678N(SyntaxKind.SwitchSection); 6704N(SyntaxKind.SwitchSection); 7132N(SyntaxKind.SwitchSection); 7249N(SyntaxKind.SwitchSection); 7311N(SyntaxKind.SwitchSection); 7376N(SyntaxKind.SwitchSection); 7433N(SyntaxKind.SwitchSection); 11302N(SyntaxKind.SwitchSection); 11356N(SyntaxKind.SwitchSection); 11790N(SyntaxKind.SwitchSection); 12225N(SyntaxKind.SwitchSection); 12325N(SyntaxKind.SwitchSection); 12426N(SyntaxKind.SwitchSection); 12526N(SyntaxKind.SwitchSection); 12640N(SyntaxKind.SwitchSection); 12691N(SyntaxKind.SwitchSection);
Parsing\StatementAttributeParsingTests.cs (2)
2357N(SyntaxKind.SwitchSection); 2478N(SyntaxKind.SwitchSection);
Parsing\StatementParsingTests.cs (3)
4306N(SyntaxKind.SwitchSection); 4470N(SyntaxKind.SwitchSection); 4661N(SyntaxKind.SwitchSection);
Parsing\SwitchExpressionParsingTests.cs (1)
395N(SyntaxKind.SwitchSection);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
124case SyntaxKind.SwitchSection:
CSharpBlockFacts.cs (1)
26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
142token.Parent.IsParentKind(SyntaxKind.SwitchSection))
NewLineUserSettingFormattingRule.cs (1)
67case SyntaxKind.SwitchSection:
Rename\LocalConflictVisitor.cs (1)
187var statements = node.ChildNodes().Where(x => x.IsKind(SyntaxKind.SwitchSection)).SelectMany(x => x.ChildNodes());