41 references to SwitchSection
Microsoft.CodeAnalysis.CSharp (14)
_generated\1\Syntax.xml.Internal.Generated.cs (4)
31590var cached = CSharpSyntaxNodeCache.TryGetNode((int)SyntaxKind.SwitchSection, labels.Node, statements.Node, this.context, out hash); 31593var result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node, this.context); 37017var cached = SyntaxNodeCache.TryGetNode((int)SyntaxKind.SwitchSection, labels.Node, statements.Node, out hash); 37020var result = new SwitchSectionSyntax(SyntaxKind.SwitchSection, labels.Node, statements.Node);
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
8609/// <item><description><see cref="SyntaxKind.SwitchSection"/></description></item>
Binder\ExpressionVariableFinder.cs (1)
39case SyntaxKind.SwitchSection:
CodeGen\EmitStatement.cs (2)
812(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection || local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchExpressionArm)); 1866(local.ScopeDesignatorOpt?.Kind() is SyntaxKind.SwitchSection or SyntaxKind.SwitchExpressionArm)))
Compilation\MemberSemanticModel.cs (1)
294else if (kind == SyntaxKind.SwitchSection)
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
101(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection ||
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
56if (section?.Kind() == SyntaxKind.SwitchSection)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
335if ((local.SynthesizedKind == SynthesizedLocalKind.UserDefined && local.ScopeDesignatorOpt?.Kind() != SyntaxKind.SwitchSection) || 548(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection ||
Syntax\SyntaxNodeExtensions.cs (1)
90case SyntaxKind.SwitchSection:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
43Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
67case SyntaxKind.SwitchSection:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
25=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
82and not SyntaxKind.SwitchSection
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
142or SyntaxKind.SwitchSection)
Microsoft.CodeAnalysis.CSharp.Features (12)
BraceCompletion\CurlyBraceCompletionService.cs (1)
224case SyntaxKind.SwitchSection:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1804case SyntaxKind.SwitchSection:
EditAndContinue\SyntaxComparer.cs (3)
420case SyntaxKind.SwitchSection: 741case SyntaxKind.SwitchSection: 1073case SyntaxKind.SwitchSection:
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (2)
42=> ifNode?.Parent is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection); 54=> node.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection;
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
90&& node.Parent?.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.GlobalStatement;
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
43Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
82and not SyntaxKind.SwitchSection
Structure\Providers\BlockSyntaxStructureProvider.cs (2)
134if (parentKind is SyntaxKind.Block or SyntaxKind.SwitchSection) 220SyntaxKind.SwitchSection => BlockTypes.Conditional,
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
129case SyntaxKind.SwitchSection:
Rename\LocalConflictVisitor.cs (1)
207var statements = node.ChildNodes().Where(x => x.IsKind(SyntaxKind.SwitchSection)).SelectMany(x => x.ChildNodes());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
67case SyntaxKind.SwitchSection:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
25=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\roslyn\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)))
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
67case SyntaxKind.SwitchSection:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
25=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
142or SyntaxKind.SwitchSection)