12 instantiations of BoundGotoStatement
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (1)
523return new BoundGotoStatement(node, symbol, null, boundLabel);
Binder\SwitchBinder.cs (1)
564return new BoundGotoStatement(node, matchedLabelSymbol, gotoCaseExpressionOpt, null, hasErrors);
Generated\BoundNodes.xml.Generated.cs (1)
4770var 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)
104BoundStatement gotoEnd = new BoundGotoStatement(syntax, endLabel); 141branchBack = new BoundGotoStatement(syntax, startLabel); 263blockBuilder.Add(new BoundGotoStatement(syntax, startLabel));
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (1)
82builder.Add(new BoundGotoStatement(syntax, afterif));
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (2)
68BoundStatement gotoContinue = new BoundGotoStatement(syntax, continueLabel); 153new BoundGotoStatement(syntax, continueLabel))),
Lowering\SyntheticBoundNodeFactory.cs (1)
1156return new BoundGotoStatement(Syntax, label) { WasCompilerGenerated = true };
35 references to BoundGotoStatement
Microsoft.CodeAnalysis.CSharp (35)
BoundTree\BoundNode_Source.cs (1)
161case BoundGotoStatement gotoStatement:
BoundTree\BoundTreeVisitors.cs (1)
108return VisitGotoStatement(node as BoundGotoStatement, arg);
CodeGen\EmitStatement.cs (3)
72EmitGotoStatement((BoundGotoStatement)statement); 638private void EmitGotoStatement(BoundGotoStatement boundGotoStatement) 1986public override BoundNode VisitGotoStatement(BoundGotoStatement node)
CodeGen\Optimizer.cs (1)
1410public override BoundNode VisitGotoStatement(BoundGotoStatement node)
FlowAnalysis\AbstractFlowPass.cs (1)
3367public override BoundNode VisitGotoStatement(BoundGotoStatement node)
FlowAnalysis\ControlFlowPass.cs (2)
219Diagnostics.Add(ErrorCode.ERR_LabelNotFound, loc, ((BoundGotoStatement)pending.Branch).Label.Name); 341public override BoundNode VisitGotoStatement(BoundGotoStatement node)
FlowAnalysis\ExitPointsWalker.cs (1)
128if (_labelsInside.Contains(((BoundGotoStatement)pending.Branch).Label)) continue;
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
256public override BoundNode? VisitGotoStatement(BoundGotoStatement node)
Generated\BoundNodes.xml.Generated.cs (8)
4766public BoundGotoStatement Update(LabelSymbol label, BoundExpression? caseExpressionOpt, BoundLabel? labelExpressionOpt) 4770var result = new BoundGotoStatement(this.Syntax, label, caseExpressionOpt, labelExpressionOpt, this.HasErrors); 9327return VisitGotoStatement((BoundGotoStatement)node, arg); 9685public virtual R VisitGotoStatement(BoundGotoStatement node, A arg) => this.DefaultVisit(node, arg); 9926public virtual BoundNode? VisitGotoStatement(BoundGotoStatement node) => this.DefaultVisit(node); 10524public override BoundNode? VisitGotoStatement(BoundGotoStatement node) 11895public override BoundNode? VisitGotoStatement(BoundGotoStatement node) 16565public override TreeDumperNode VisitGotoStatement(BoundGotoStatement node, object? arg) => new TreeDumperNode("gotoStatement", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
398public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
278/// for each Scope. This is done by looking for <see cref="BoundGotoStatement"/>s 529public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
344public override BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
64public override BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
158public override BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\Instrumentation\Instrumenter.cs (1)
91public virtual BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
115public override BoundStatement InstrumentGotoStatement(BoundGotoStatement original, BoundStatement rewritten)
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (3)
311var gotoExit = F.Goto(_exitLabel); 316gotoExit = (BoundGotoStatement)VisitGotoStatement(gotoExit); 356public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\LocalRewriter\LocalRewriter_GotoStatement.cs (1)
13public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Lowering\SyntheticBoundNodeFactory.cs (1)
1154public BoundGotoStatement Goto(LabelSymbol label)
Lowering\UnmatchedGotoFinder.cs (1)
66public override BoundNode VisitGotoStatement(BoundGotoStatement node)
Operations\CSharpOperationFactory.cs (2)
170return CreateBoundGotoStatementOperation((BoundGotoStatement)boundNode); 1852private IBranchOperation CreateBoundGotoStatementOperation(BoundGotoStatement boundGotoStatement)