2 instantiations of BoundSwitchSection
Microsoft.CodeAnalysis.CSharp (2)
Binder\SwitchBinder_Patterns.cs (1)
221return new BoundSwitchSection(node, sectionBinder.GetDeclaredLocalsForScope(node), boundLabelsBuilder.ToImmutableAndFree(), boundStatementsBuilder.ToImmutableAndFree());
Generated\BoundNodes.xml.Generated.cs (1)
5748var result = new BoundSwitchSection(this.Syntax, locals, switchLabels, statements, this.HasErrors);
49 references to BoundSwitchSection
Microsoft.CodeAnalysis.CSharp (49)
Binder\DecisionDagBuilder.cs (3)
85ImmutableArray<BoundSwitchSection> switchSections, 146ImmutableArray<BoundSwitchSection> switchSections) 151foreach (BoundSwitchSection section in switchSections)
Binder\DecisionDagBuilder_CheckOrReachability.cs (4)
150ImmutableArray<BoundSwitchSection> switchSections, 165ImmutableArray<BoundSwitchSection> switchSections, 174foreach (BoundSwitchSection section in switchSections) 191foreach (BoundSwitchSection section in switchSections)
Binder\RefSafetyAnalysis.cs (1)
471public override BoundNode? VisitSwitchSection(BoundSwitchSection node)
Binder\SwitchBinder_Patterns.cs (8)
42ImmutableArray<BoundSwitchSection> switchSections = BindSwitchSections(originalBinder, diagnostics, out BoundSwitchLabel defaultLabel); 78ref ImmutableArray<BoundSwitchSection> switchSections, 96var sectionBuilder = ArrayBuilder<BoundSwitchSection>.GetInstance(switchSections.Length); 98foreach (var oldSection in switchSections) 170private ImmutableArray<BoundSwitchSection> BindSwitchSections( 176var boundSwitchSectionsBuilder = ArrayBuilder<BoundSwitchSection>.GetInstance(SwitchSyntax.Sections.Count); 180BoundSwitchSection section = BindSwitchSection(sectionSyntax, originalBinder, ref defaultLabel, diagnostics); 190private BoundSwitchSection BindSwitchSection(
BoundTree\BoundNode.cs (1)
681public override BoundNode? VisitSwitchSection(BoundSwitchSection node)
BoundTree\BoundNode_Source.cs (1)
274foreach (BoundSwitchSection section in switchStatement.SwitchSections)
BoundTree\BoundStatementExtensions.cs (1)
43foreach (var boundSwitchLabel in ((BoundSwitchSection)node).SwitchLabels)
FlowAnalysis\AbstractFlowPass.cs (2)
863var sec = (BoundSwitchSection)node;
FlowAnalysis\AbstractFlowPass_Switch.cs (2)
47foreach (var section in node.SwitchSections) 120protected virtual void VisitSwitchSection(BoundSwitchSection node, bool isLastSection)
FlowAnalysis\ControlFlowPass.cs (2)
391protected override void VisitSwitchSection(BoundSwitchSection node, bool isLastSection) 406foreach (var section in node.SwitchSections)
FlowAnalysis\DefiniteAssignment.cs (1)
2182protected override void VisitSwitchSection(BoundSwitchSection node, bool isLastSection)
FlowAnalysis\NullableWalker_Patterns.cs (4)
283foreach (var section in node.SwitchSections) 293foreach (var section in node.SwitchSections) 304foreach (var section in node.SwitchSections) 319protected override void VisitSwitchSection(BoundSwitchSection node, bool isLastSection)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
56protected override void VisitSwitchSection(BoundSwitchSection node, bool isLastSection)
Generated\BoundNodes.xml.Generated.cs (14)
3810public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<MethodSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, LabelSymbol breakLabel, bool hasErrors = false) 3833public ImmutableArray<BoundSwitchSection> SwitchSections { get; } 3841public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<MethodSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, LabelSymbol breakLabel) 5744public BoundSwitchSection Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements) 5748var result = new BoundSwitchSection(this.Syntax, locals, switchLabels, statements, this.HasErrors); 9378return VisitSwitchSection((BoundSwitchSection)node, arg); 9708public virtual R VisitSwitchSection(BoundSwitchSection node, A arg) => this.DefaultVisit(node, arg); 9949public virtual BoundNode? VisitSwitchSection(BoundSwitchSection node) => this.DefaultVisit(node); 10670public override BoundNode? VisitSwitchSection(BoundSwitchSection node) 11720ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 12069public override BoundNode? VisitSwitchSection(BoundSwitchSection node) 13890ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 14216public override BoundNode? VisitSwitchSection(BoundSwitchSection node) 16783public override TreeDumperNode VisitSwitchSection(BoundSwitchSection node, object? arg) => new TreeDumperNode("switchSection", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
136foreach (BoundSwitchSection section in node.SwitchSections)
Operations\CSharpOperationFactory.cs (3)
270return CreateBoundSwitchSectionOperation((BoundSwitchSection)boundNode); 2753ImmutableArray<ISwitchCaseOperation> cases = CreateFromArray<BoundSwitchSection, ISwitchCaseOperation>(boundSwitchStatement.SwitchSections); 2761private ISwitchCaseOperation CreateBoundSwitchSectionOperation(BoundSwitchSection boundSwitchSection)