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