4 instantiations of BoundSwitchDispatch
Microsoft.CodeAnalysis.CSharp (4)
Generated\BoundNodes.xml.Generated.cs (1)
3833var result = new BoundSwitchDispatch(this.Syntax, expression, cases, defaultLabel, lengthBasedStringSwitchDataOpt, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
780var dispatch = new BoundSwitchDispatch(node.Syntax, input, node.Cases, defaultLabel, lengthBasedDispatchOpt); 806var dispatch = new BoundSwitchDispatch(node.Syntax, input, cases, defaultLabel, lengthBasedStringSwitchDataOpt: null);
Lowering\SyntheticBoundNodeFactory.cs (1)
1111statements[0] = new BoundSwitchDispatch(Syntax, ex, caseBuilder.ToImmutableAndFree(), breakLabel, lengthBasedStringSwitchDataOpt: null) { WasCompilerGenerated = true };
17 references to BoundSwitchDispatch
Microsoft.CodeAnalysis.CSharp (17)
CodeGen\EmitStatement.cs (3)
92EmitSwitchDispatch((BoundSwitchDispatch)statement); 1229private void EmitSwitchDispatch(BoundSwitchDispatch dispatch) 1981public override BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)
CodeGen\Optimizer.cs (1)
1417public override BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
131public override BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)
Generated\BoundNodes.xml.Generated.cs (8)
3829public BoundSwitchDispatch Update(BoundExpression expression, ImmutableArray<(ConstantValue value, LabelSymbol label)> cases, LabelSymbol defaultLabel, LengthBasedStringSwitchData? lengthBasedStringSwitchDataOpt) 3833var result = new BoundSwitchDispatch(this.Syntax, expression, cases, defaultLabel, lengthBasedStringSwitchDataOpt, this.HasErrors); 9059return VisitSwitchDispatch((BoundSwitchDispatch)node, arg); 9431public virtual R VisitSwitchDispatch(BoundSwitchDispatch node, A arg) => this.DefaultVisit(node, arg); 9667public virtual BoundNode? VisitSwitchDispatch(BoundSwitchDispatch node) => this.DefaultVisit(node); 10172public override BoundNode? VisitSwitchDispatch(BoundSwitchDispatch node) 11440public override BoundNode? VisitSwitchDispatch(BoundSwitchDispatch node) 15973public override TreeDumperNode VisitSwitchDispatch(BoundSwitchDispatch node, object? arg) => new TreeDumperNode("switchDispatch", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
780var dispatch = new BoundSwitchDispatch(node.Syntax, input, node.Cases, defaultLabel, lengthBasedDispatchOpt); 806var dispatch = new BoundSwitchDispatch(node.Syntax, input, cases, defaultLabel, lengthBasedStringSwitchDataOpt: null);
Lowering\SpillSequenceSpiller.cs (1)
663public override BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)
Lowering\UnmatchedGotoFinder.cs (1)
78public override BoundNode VisitSwitchDispatch(BoundSwitchDispatch node)