1 instantiation of BoundSwitchSection
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5680
var result = new
BoundSwitchSection
(this.Syntax, locals, switchLabels, statements, this.HasErrors);
45 references to BoundSwitchSection
Microsoft.CodeAnalysis.CSharp (45)
Binder\DecisionDagBuilder.cs (3)
85
ImmutableArray<
BoundSwitchSection
> switchSections,
144
ImmutableArray<
BoundSwitchSection
> switchSections)
149
foreach (
BoundSwitchSection
section in switchSections)
Binder\RefSafetyAnalysis.cs (1)
417
public override BoundNode? VisitSwitchSection(
BoundSwitchSection
node)
Binder\SwitchBinder_Patterns.cs (8)
42
ImmutableArray<
BoundSwitchSection
> switchSections = BindSwitchSections(originalBinder, diagnostics, out BoundSwitchLabel defaultLabel);
73
ref ImmutableArray<
BoundSwitchSection
> switchSections,
89
var sectionBuilder = ArrayBuilder<
BoundSwitchSection
>.GetInstance(switchSections.Length);
91
foreach (
var
oldSection in switchSections)
160
private ImmutableArray<
BoundSwitchSection
> BindSwitchSections(
166
var boundSwitchSectionsBuilder = ArrayBuilder<
BoundSwitchSection
>.GetInstance(SwitchSyntax.Sections.Count);
170
BoundSwitchSection
section = BindSwitchSection(sectionSyntax, originalBinder, ref defaultLabel, diagnostics);
180
private
BoundSwitchSection
BindSwitchSection(
BoundTree\BoundNode.cs (1)
604
public override BoundNode? VisitSwitchSection(
BoundSwitchSection
node)
BoundTree\BoundNode_Source.cs (1)
286
foreach (
BoundSwitchSection
section in switchStatement.SwitchSections)
BoundTree\BoundStatementExtensions.cs (1)
43
foreach (var boundSwitchLabel in ((
BoundSwitchSection
)node).SwitchLabels)
FlowAnalysis\AbstractFlowPass.cs (2)
864
var
sec = (
BoundSwitchSection
)node;
FlowAnalysis\AbstractFlowPass_Switch.cs (2)
47
foreach (
var
section in node.SwitchSections)
120
protected virtual void VisitSwitchSection(
BoundSwitchSection
node, bool isLastSection)
FlowAnalysis\ControlFlowPass.cs (2)
372
protected override void VisitSwitchSection(
BoundSwitchSection
node, bool isLastSection)
387
foreach (
var
section in node.SwitchSections)
FlowAnalysis\DefiniteAssignment.cs (1)
2172
protected override void VisitSwitchSection(
BoundSwitchSection
node, bool isLastSection)
FlowAnalysis\NullableWalker_Patterns.cs (4)
242
foreach (
var
section in node.SwitchSections)
252
foreach (
var
section in node.SwitchSections)
263
foreach (
var
section in node.SwitchSections)
278
protected override void VisitSwitchSection(
BoundSwitchSection
node, bool isLastSection)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
56
protected override void VisitSwitchSection(
BoundSwitchSection
node, bool isLastSection)
Generated\BoundNodes.xml.Generated.cs (14)
3770
public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<
BoundSwitchSection
> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel, bool hasErrors = false)
3793
public ImmutableArray<
BoundSwitchSection
> SwitchSections { get; }
3801
public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<
BoundSwitchSection
> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel)
5676
public
BoundSwitchSection
Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements)
5680
var
result = new BoundSwitchSection(this.Syntax, locals, switchLabels, statements, this.HasErrors);
9129
return VisitSwitchSection((
BoundSwitchSection
)node, arg);
9451
public virtual R VisitSwitchSection(
BoundSwitchSection
node, A arg) => this.DefaultVisit(node, arg);
9687
public virtual BoundNode? VisitSwitchSection(
BoundSwitchSection
node) => this.DefaultVisit(node);
10386
public override BoundNode? VisitSwitchSection(
BoundSwitchSection
node)
11348
ImmutableArray<
BoundSwitchSection
> switchSections = this.VisitList(node.SwitchSections);
11651
public override BoundNode? VisitSwitchSection(
BoundSwitchSection
node)
13394
ImmutableArray<
BoundSwitchSection
> switchSections = this.VisitList(node.SwitchSections);
13721
public override BoundNode? VisitSwitchSection(
BoundSwitchSection
node)
16248
public override TreeDumperNode VisitSwitchSection(
BoundSwitchSection
node, object? arg) => new TreeDumperNode("switchSection", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
130
foreach (
BoundSwitchSection
section in node.SwitchSections)
Operations\CSharpOperationFactory.cs (3)
271
return CreateBoundSwitchSectionOperation((
BoundSwitchSection
)boundNode);
2624
ImmutableArray<ISwitchCaseOperation> cases = CreateFromArray<
BoundSwitchSection
, ISwitchCaseOperation>(boundSwitchStatement.SwitchSections);
2632
private ISwitchCaseOperation CreateBoundSwitchSectionOperation(
BoundSwitchSection
boundSwitchSection)