1 instantiation of BoundSwitchSection
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5679var result = new BoundSwitchSection(this.Syntax, locals, switchLabels, statements, this.HasErrors);
45 references to BoundSwitchSection
Microsoft.CodeAnalysis.CSharp (45)
Binder\DecisionDagBuilder.cs (3)
85ImmutableArray<BoundSwitchSection> switchSections, 144ImmutableArray<BoundSwitchSection> switchSections) 149foreach (BoundSwitchSection section in switchSections)
Binder\RefSafetyAnalysis.cs (1)
409public override BoundNode? VisitSwitchSection(BoundSwitchSection node)
Binder\SwitchBinder_Patterns.cs (8)
42ImmutableArray<BoundSwitchSection> switchSections = BindSwitchSections(originalBinder, diagnostics, out BoundSwitchLabel defaultLabel); 73ref ImmutableArray<BoundSwitchSection> switchSections, 89var sectionBuilder = ArrayBuilder<BoundSwitchSection>.GetInstance(switchSections.Length); 91foreach (var oldSection in switchSections) 160private ImmutableArray<BoundSwitchSection> BindSwitchSections( 166var boundSwitchSectionsBuilder = ArrayBuilder<BoundSwitchSection>.GetInstance(SwitchSyntax.Sections.Count); 170BoundSwitchSection section = BindSwitchSection(sectionSyntax, originalBinder, ref defaultLabel, diagnostics); 180private BoundSwitchSection BindSwitchSection(
BoundTree\BoundNode.cs (1)
625public override BoundNode? VisitSwitchSection(BoundSwitchSection node)
BoundTree\BoundNode_Source.cs (1)
286foreach (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)
372protected override void VisitSwitchSection(BoundSwitchSection node, bool isLastSection) 387foreach (var section in node.SwitchSections)
FlowAnalysis\DefiniteAssignment.cs (1)
2217protected override void VisitSwitchSection(BoundSwitchSection node, bool isLastSection)
FlowAnalysis\NullableWalker_Patterns.cs (4)
280foreach (var section in node.SwitchSections) 290foreach (var section in node.SwitchSections) 301foreach (var section in node.SwitchSections) 316protected 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)
3769public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel, bool hasErrors = false) 3792public ImmutableArray<BoundSwitchSection> SwitchSections { get; } 3800public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel) 5675public BoundSwitchSection Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundSwitchLabel> switchLabels, ImmutableArray<BoundStatement> statements) 5679var result = new BoundSwitchSection(this.Syntax, locals, switchLabels, statements, this.HasErrors); 9166return VisitSwitchSection((BoundSwitchSection)node, arg); 9488public virtual R VisitSwitchSection(BoundSwitchSection node, A arg) => this.DefaultVisit(node, arg); 9724public virtual BoundNode? VisitSwitchSection(BoundSwitchSection node) => this.DefaultVisit(node); 10423public override BoundNode? VisitSwitchSection(BoundSwitchSection node) 11385ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 11688public override BoundNode? VisitSwitchSection(BoundSwitchSection node) 13430ImmutableArray<BoundSwitchSection> switchSections = this.VisitList(node.SwitchSections); 13757public override BoundNode? VisitSwitchSection(BoundSwitchSection node) 16283public override TreeDumperNode VisitSwitchSection(BoundSwitchSection node, object? arg) => new TreeDumperNode("switchSection", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
130foreach (BoundSwitchSection section in node.SwitchSections)
Operations\CSharpOperationFactory.cs (3)
271return CreateBoundSwitchSectionOperation((BoundSwitchSection)boundNode); 2687ImmutableArray<ISwitchCaseOperation> cases = CreateFromArray<BoundSwitchSection, ISwitchCaseOperation>(boundSwitchStatement.SwitchSections); 2695private ISwitchCaseOperation CreateBoundSwitchSectionOperation(BoundSwitchSection boundSwitchSection)