2 instantiations of BoundSwitchStatement
Microsoft.CodeAnalysis.CSharp (2)
Binder\SwitchBinder_Patterns.cs (1)
66
return new
BoundSwitchStatement
(
Generated\BoundNodes.xml.Generated.cs (1)
3849
var result = new
BoundSwitchStatement
(this.Syntax, expression, innerLocals, innerLocalFunctions, switchSections, reachabilityDecisionDag, defaultLabel, breakLabel, this.HasErrors);
29 references to BoundSwitchStatement
Microsoft.CodeAnalysis.CSharp (29)
Binder\DecisionDagBuilder.cs (1)
49
/// cref="
BoundSwitchStatement
"/> and <see cref="BoundUnconvertedSwitchExpression"/>) and is used for semantic
Binder\RefSafetyAnalysis.cs (1)
507
public override BoundNode? VisitSwitchStatement(
BoundSwitchStatement
node)
FlowAnalysis\AbstractFlowPass_Switch.cs (3)
18
public override BoundNode VisitSwitchStatement(
BoundSwitchStatement
node)
39
protected virtual TLocalState VisitSwitchStatementDispatch(
BoundSwitchStatement
node)
86
private bool IsTraditionalSwitch(
BoundSwitchStatement
node)
FlowAnalysis\ControlFlowPass.cs (2)
138
if (node is
BoundSwitchStatement
) continue;
404
public override BoundNode VisitSwitchStatement(
BoundSwitchStatement
node)
FlowAnalysis\DefiniteAssignment.cs (1)
2182
public override BoundNode VisitSwitchStatement(
BoundSwitchStatement
node)
FlowAnalysis\NullableWalker_Patterns.cs (1)
276
protected override LocalState VisitSwitchStatementDispatch(
BoundSwitchStatement
node)
Generated\BoundNodes.xml.Generated.cs (9)
3845
public
BoundSwitchStatement
Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<MethodSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, LabelSymbol breakLabel)
3849
var
result = new BoundSwitchStatement(this.Syntax, expression, innerLocals, innerLocalFunctions, switchSections, reachabilityDecisionDag, defaultLabel, breakLabel, this.HasErrors);
9278
return VisitSwitchStatement((
BoundSwitchStatement
)node, arg);
9660
public virtual R VisitSwitchStatement(
BoundSwitchStatement
node, A arg) => this.DefaultVisit(node, arg);
9901
public virtual BoundNode? VisitSwitchStatement(
BoundSwitchStatement
node) => this.DefaultVisit(node);
10419
public override BoundNode? VisitSwitchStatement(
BoundSwitchStatement
node)
11718
public override BoundNode? VisitSwitchStatement(
BoundSwitchStatement
node)
13889
public override BoundNode? VisitSwitchStatement(
BoundSwitchStatement
node)
16339
public override TreeDumperNode VisitSwitchStatement(
BoundSwitchStatement
node, object? arg) => new TreeDumperNode("switchStatement", null, new TreeDumperNode[]
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
432
public override BoundStatement InstrumentSwitchStatement(
BoundSwitchStatement
original, BoundStatement rewritten)
554
syntaxForSpan = ((
BoundSwitchStatement
)statement).Expression.Syntax;
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
193
public override BoundStatement InstrumentSwitchStatement(
BoundSwitchStatement
original, BoundStatement rewritten)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
423
public override BoundStatement InstrumentSwitchStatement(
BoundSwitchStatement
original, BoundStatement rewritten)
Lowering\Instrumentation\Instrumenter.cs (1)
268
public virtual BoundStatement InstrumentSwitchStatement(
BoundSwitchStatement
original, BoundStatement rewritten)
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (4)
16
public override BoundNode VisitSwitchStatement(
BoundSwitchStatement
node)
28
public static BoundStatement Rewrite(LocalRewriter localRewriter,
BoundSwitchStatement
node)
70
private SwitchStatementLocalRewriter(
BoundSwitchStatement
node, LocalRewriter localRewriter)
77
private BoundStatement LowerSwitchStatement(
BoundSwitchStatement
node)
Operations\CSharpOperationFactory.cs (2)
246
return CreateBoundSwitchStatementOperation((
BoundSwitchStatement
)boundNode);
2769
private ISwitchOperation CreateBoundSwitchStatementOperation(
BoundSwitchStatement
boundSwitchStatement)