12 instantiations of BoundGotoStatement
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (1)
520return new BoundGotoStatement(node, symbol, null, boundLabel);
Binder\SwitchBinder.cs (1)
537return new BoundGotoStatement(node, matchedLabelSymbol, gotoCaseExpressionOpt, null, hasErrors);
Generated\BoundNodes.xml.Generated.cs (1)
4620var result = new BoundGotoStatement(this.Syntax, label, caseExpressionOpt, labelExpressionOpt, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_BreakStatement.cs (1)
15BoundStatement result = new BoundGotoStatement(node.Syntax, node.Label, node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_ContinueStatement.cs (1)
15BoundStatement result = new BoundGotoStatement(node.Syntax, node.Label, node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (3)
105BoundStatement gotoEnd = new BoundGotoStatement(syntax, endLabel); 142branchBack = new BoundGotoStatement(syntax, startLabel); 260blockBuilder.Add(new BoundGotoStatement(syntax, startLabel));
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (1)
92builder.Add(new BoundGotoStatement(syntax, afterif));
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (2)
68BoundStatement gotoContinue = new BoundGotoStatement(syntax, continueLabel); 148new BoundGotoStatement(syntax, continueLabel))),
Lowering\SyntheticBoundNodeFactory.cs (1)
1054return new BoundGotoStatement(Syntax, label) { WasCompilerGenerated = true };
34 references to BoundGotoStatement
Microsoft.CodeAnalysis.CSharp (34)
BoundTree\BoundNode_Source.cs (1)
145case BoundGotoStatement gotoStatement:
BoundTree\BoundTreeVisitors.cs (1)
108return VisitGotoStatement(node as BoundGotoStatement, arg);
CodeGen\EmitStatement.cs (3)
72EmitGotoStatement((BoundGotoStatement)statement); 638private void EmitGotoStatement(BoundGotoStatement boundGotoStatement) 1929public override BoundNode VisitGotoStatement(BoundGotoStatement node)
CodeGen\Optimizer.cs (1)
1332public override BoundNode VisitGotoStatement(BoundGotoStatement node)
FlowAnalysis\AbstractFlowPass.cs (1)
3137public override BoundNode VisitGotoStatement(BoundGotoStatement node)
FlowAnalysis\ControlFlowPass.cs (2)
220Diagnostics.Add(ErrorCode.ERR_LabelNotFound, loc, ((BoundGotoStatement)pending.Branch).Label.Name); 336public override BoundNode VisitGotoStatement(BoundGotoStatement node)
FlowAnalysis\ExitPointsWalker.cs (1)
128if (_labelsInside.Contains(((BoundGotoStatement)pending.Branch).Label)) continue;
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
155public override BoundNode? VisitGotoStatement(BoundGotoStatement node)
Generated\BoundNodes.xml.Generated.cs (8)
4616public BoundGotoStatement Update(LabelSymbol label, BoundExpression? caseExpressionOpt, BoundLabel? labelExpressionOpt) 4620var result = new BoundGotoStatement(this.Syntax, label, caseExpressionOpt, labelExpressionOpt, this.HasErrors); 8753return VisitGotoStatement((BoundGotoStatement)node, arg); 9089public virtual R VisitGotoStatement(BoundGotoStatement node, A arg) => this.DefaultVisit(node, arg); 9317public virtual BoundNode? VisitGotoStatement(BoundGotoStatement node) => this.DefaultVisit(node); 9885public override BoundNode? VisitGotoStatement(BoundGotoStatement node) 11098public override BoundNode? VisitGotoStatement(BoundGotoStatement node) 15469public override TreeDumperNode VisitGotoStatement(BoundGotoStatement node, object? arg) => new TreeDumperNode("gotoStatement", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
347public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
260/// for each Scope. This is done by looking for <see cref="BoundGotoStatement"/>s 510public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
344public override BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
62public override BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
117public override BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\Instrumentation\Instrumenter.cs (1)
90public virtual BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (3)
305var gotoExit = F.Goto(_exitLabel); 310gotoExit = (BoundGotoStatement)VisitGotoStatement(gotoExit); 350public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\LocalRewriter\LocalRewriter_GotoStatement.cs (1)
13public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\SyntheticBoundNodeFactory.cs (1)
1052public BoundGotoStatement Goto(LabelSymbol label)
Lowering\UnmatchedGotoFinder.cs (1)
66public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Operations\CSharpOperationFactory.cs (2)
167return CreateBoundGotoStatementOperation((BoundGotoStatement)boundNode); 1708private IBranchOperation CreateBoundGotoStatementOperation(BoundGotoStatement boundGotoStatement)