110 references to SwitchSection
Microsoft.CodeAnalysis.CSharp (9)
Binder\ExpressionVariableFinder.cs (1)
39case SyntaxKind.SwitchSection:
CodeGen\EmitStatement.cs (2)
802(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection || local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchExpressionArm)); 1832(local.ScopeDesignatorOpt?.Kind() is SyntaxKind.SwitchSection or SyntaxKind.SwitchExpressionArm)))
Compilation\MemberSemanticModel.cs (1)
293else if (kind == SyntaxKind.SwitchSection)
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
82(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection ||
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
50if (section?.Kind() == SyntaxKind.SwitchSection)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
326if ((local.SynthesizedKind == SynthesizedLocalKind.UserDefined && local.ScopeDesignatorOpt?.Kind() != SyntaxKind.SwitchSection) || 739(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection ||
Syntax\SyntaxNodeExtensions.cs (1)
90case SyntaxKind.SwitchSection:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
67case SyntaxKind.SwitchSection:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
84and not SyntaxKind.SwitchSection
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
142or SyntaxKind.SwitchSection)
Microsoft.CodeAnalysis.CSharp.Features (11)
BraceCompletion\CurlyBraceCompletionService.cs (1)
224case SyntaxKind.SwitchSection:
EditAndContinue\SyntaxComparer.cs (3)
418case SyntaxKind.SwitchSection: 736case SyntaxKind.SwitchSection: 1064case SyntaxKind.SwitchSection:
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (2)
37=> ifNode?.Parent is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection); 46=> node.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection;
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
98&& node.Parent?.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.GlobalStatement;
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
84and not SyntaxKind.SwitchSection
Structure\Providers\BlockSyntaxStructureProvider.cs (2)
133if (parentKind is SyntaxKind.Block or SyntaxKind.SwitchSection) 216SyntaxKind.SwitchSection => BlockTypes.Conditional,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (78)
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)
702N(SyntaxKind.SwitchSection); 764N(SyntaxKind.SwitchSection); 851N(SyntaxKind.SwitchSection); 907N(SyntaxKind.SwitchSection); 966N(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); 2182N(SyntaxKind.SwitchSection); 2255N(SyntaxKind.SwitchSection); 2304N(SyntaxKind.SwitchSection); 2350N(SyntaxKind.SwitchSection); 2401N(SyntaxKind.SwitchSection); 2759N(SyntaxKind.SwitchSection); 2826N(SyntaxKind.SwitchSection); 2896N(SyntaxKind.SwitchSection); 2947N(SyntaxKind.SwitchSection); 3884N(SyntaxKind.SwitchSection); 3955N(SyntaxKind.SwitchSection); 4028N(SyntaxKind.SwitchSection); 4099N(SyntaxKind.SwitchSection); 4172N(SyntaxKind.SwitchSection); 4259N(SyntaxKind.SwitchSection); 5499N(SyntaxKind.SwitchSection); 5535N(SyntaxKind.SwitchSection); 5571N(SyntaxKind.SwitchSection); 6591N(SyntaxKind.SwitchSection); 6613N(SyntaxKind.SwitchSection); 6639N(SyntaxKind.SwitchSection); 6665N(SyntaxKind.SwitchSection); 7093N(SyntaxKind.SwitchSection); 7210N(SyntaxKind.SwitchSection); 7272N(SyntaxKind.SwitchSection); 7337N(SyntaxKind.SwitchSection); 7394N(SyntaxKind.SwitchSection); 11263N(SyntaxKind.SwitchSection); 11317N(SyntaxKind.SwitchSection); 11751N(SyntaxKind.SwitchSection); 12186N(SyntaxKind.SwitchSection); 12286N(SyntaxKind.SwitchSection); 12387N(SyntaxKind.SwitchSection); 12487N(SyntaxKind.SwitchSection); 12601N(SyntaxKind.SwitchSection); 12652N(SyntaxKind.SwitchSection);
Parsing\StatementAttributeParsingTests.cs (2)
2358N(SyntaxKind.SwitchSection); 2479N(SyntaxKind.SwitchSection);
Parsing\StatementParsingTests.cs (16)
4334N(SyntaxKind.SwitchSection); 4498N(SyntaxKind.SwitchSection); 4689N(SyntaxKind.SwitchSection); 4796N(SyntaxKind.SwitchSection); 4923N(SyntaxKind.SwitchSection); 5056N(SyntaxKind.SwitchSection); 5199N(SyntaxKind.SwitchSection); 5266N(SyntaxKind.SwitchSection); 5349N(SyntaxKind.SwitchSection); 5444N(SyntaxKind.SwitchSection); 5464N(SyntaxKind.SwitchSection); 5510N(SyntaxKind.SwitchSection); 5566N(SyntaxKind.SwitchSection); 5622N(SyntaxKind.SwitchSection); 5688N(SyntaxKind.SwitchSection); 5758N(SyntaxKind.SwitchSection);
Parsing\SwitchExpressionParsingTests.cs (1)
396N(SyntaxKind.SwitchSection);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
127case SyntaxKind.SwitchSection:
Rename\LocalConflictVisitor.cs (1)
186var statements = node.ChildNodes().Where(x => x.IsKind(SyntaxKind.SwitchSection)).SelectMany(x => x.ChildNodes());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
67case SyntaxKind.SwitchSection:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
142or SyntaxKind.SwitchSection)
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\AppContextDefaultsAnalyzer.cs (2)
88if (!(containingIfStatement.Parent.IsKind(SyntaxKind.SwitchSection) || 89containingIfStatement.Parent.Parent.IsKind(SyntaxKind.SwitchSection)))