2 instantiations of BoundSwitchStatement
Microsoft.CodeAnalysis.CSharp (2)
Binder\SwitchBinder_Patterns.cs (1)
61return new BoundSwitchStatement(
Generated\BoundNodes.xml.Generated.cs (1)
3694var result = new BoundSwitchStatement(this.Syntax, expression, innerLocals, innerLocalFunctions, switchSections, reachabilityDecisionDag, defaultLabel, breakLabel, this.HasErrors);
38 references to BoundSwitchStatement
Microsoft.CodeAnalysis.CSharp (31)
Binder\DecisionDagBuilder.cs (1)
53/// set of nodes becomes part of the bound nodes (e.g. in <see cref="BoundSwitchStatement"/> and
Binder\RefSafetyAnalysis.cs (1)
344public override BoundNode? VisitSwitchStatement(BoundSwitchStatement node)
BoundTree\BoundNode.cs (1)
547public override BoundNode? VisitSwitchStatement(BoundSwitchStatement node)
BoundTree\BoundNode_Source.cs (1)
264case BoundSwitchStatement switchStatement:
FlowAnalysis\AbstractFlowPass_Switch.cs (3)
18public override BoundNode VisitSwitchStatement(BoundSwitchStatement node) 39protected virtual TLocalState VisitSwitchStatementDispatch(BoundSwitchStatement node) 86private bool IsTraditionalSwitch(BoundSwitchStatement node)
FlowAnalysis\ControlFlowPass.cs (2)
139if (node is BoundSwitchStatement) continue; 386public override BoundNode VisitSwitchStatement(BoundSwitchStatement node)
FlowAnalysis\DefiniteAssignment.cs (1)
2052public override BoundNode VisitSwitchStatement(BoundSwitchStatement node)
FlowAnalysis\NullableWalker_Patterns.cs (1)
235protected override LocalState VisitSwitchStatementDispatch(BoundSwitchStatement node)
Generated\BoundNodes.xml.Generated.cs (9)
3690public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel) 3694var result = new BoundSwitchStatement(this.Syntax, expression, innerLocals, innerLocalFunctions, switchSections, reachabilityDecisionDag, defaultLabel, breakLabel, this.HasErrors); 8705return VisitSwitchStatement((BoundSwitchStatement)node, arg); 9065public virtual R VisitSwitchStatement(BoundSwitchStatement node, A arg) => this.DefaultVisit(node, arg); 9293public virtual BoundNode? VisitSwitchStatement(BoundSwitchStatement node) => this.DefaultVisit(node); 9780public override BoundNode? VisitSwitchStatement(BoundSwitchStatement node) 10952public override BoundNode? VisitSwitchStatement(BoundSwitchStatement node) 12924public override BoundNode? VisitSwitchStatement(BoundSwitchStatement node) 15248public override TreeDumperNode VisitSwitchStatement(BoundSwitchStatement node, object? arg) => new TreeDumperNode("switchStatement", null, new TreeDumperNode[]
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
432public override BoundStatement InstrumentSwitchStatement(BoundSwitchStatement original, BoundStatement rewritten) 554syntaxForSpan = ((BoundSwitchStatement)statement).Expression.Syntax;
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
182public override BoundStatement InstrumentSwitchStatement(BoundSwitchStatement original, BoundStatement rewritten)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
370public override BoundStatement InstrumentSwitchStatement(BoundSwitchStatement original, BoundStatement rewritten)
Lowering\Instrumentation\Instrumenter.cs (1)
253public virtual BoundStatement InstrumentSwitchStatement(BoundSwitchStatement original, BoundStatement rewritten)
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (4)
16public override BoundNode VisitSwitchStatement(BoundSwitchStatement node) 28public static BoundStatement Rewrite(LocalRewriter localRewriter, BoundSwitchStatement node) 64private SwitchStatementLocalRewriter(BoundSwitchStatement node, LocalRewriter localRewriter) 71private BoundStatement LowerSwitchStatement(BoundSwitchStatement node)
Operations\CSharpOperationFactory.cs (2)
243return CreateBoundSwitchStatementOperation((BoundSwitchStatement)boundNode); 2539private ISwitchOperation CreateBoundSwitchStatementOperation(BoundSwitchStatement boundSwitchStatement)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Semantics\PatternMatchingTestBase.cs (1)
455SwitchStatementSyntax n => ((BoundSwitchStatement)binder.BindStatement(n, BindingDiagnosticBag.Discarded)).ReachabilityDecisionDag,
Semantics\PatternMatchingTests4.cs (6)
3969var boundSwitch = (BoundSwitchStatement)binder.BindStatement(@switch, BindingDiagnosticBag.Discarded); 4038var boundSwitch = (BoundSwitchStatement)binder.BindStatement(@switch, BindingDiagnosticBag.Discarded); 4111var boundSwitch = (BoundSwitchStatement)binder.BindStatement(@switch, BindingDiagnosticBag.Discarded);