23 instantiations of BoundLabelStatement
Microsoft.CodeAnalysis.CSharp (23)
Compiler\MethodBodySynthesizer.cs (1)
448BoundStatement loopStart = new BoundLabelStatement(syntax,
Generated\BoundNodes.xml.Generated.cs (1)
4700var result = new BoundLabelStatement(this.Syntax, label, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (6)
58new BoundLabelStatement(syntax, startLabel), 60new BoundLabelStatement(syntax, node.ContinueLabel), 62new BoundLabelStatement(syntax, node.BreakLabel)); 66new BoundLabelStatement(syntax, startLabel), 70new BoundLabelStatement(syntax, node.ContinueLabel), 72new BoundLabelStatement(syntax, node.BreakLabel));
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (7)
119statementBuilder.Add(new BoundLabelStatement(syntax, startLabel)); 125statementBuilder.Add(new BoundLabelStatement(syntax, continueLabel)); 133statementBuilder.Add(new BoundLabelStatement(syntax, endLabel)); 166statementBuilder.Add(new BoundLabelStatement(syntax, breakLabel)); 227BoundStatement startLabelStatement = new BoundLabelStatement(syntax, startLabel); 256blockBuilder.Add(new BoundLabelStatement(syntax, node.ContinueLabel)); 268statementBuilder.Add(new BoundLabelStatement(syntax, node.BreakLabel));
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (1)
140builder.Add(new BoundLabelStatement(syntax, afterif));
Lowering\LocalRewriter\LocalRewriter_LabeledStatement.cs (1)
24BoundStatement labelStatement = new BoundLabelStatement(node.Syntax, node.Label);
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (5)
99new BoundLabelStatement(syntax, startLabel), 101new BoundLabelStatement(syntax, continueLabel), 103new BoundLabelStatement(syntax, breakLabel)); 137BoundStatement continueLabelStatement = new BoundLabelStatement(syntax, continueLabel); 154new BoundLabelStatement(syntax, breakLabel));
Lowering\SyntheticBoundNodeFactory.cs (1)
1122return new BoundLabelStatement(Syntax, label) { WasCompilerGenerated = true };
27 references to BoundLabelStatement
Microsoft.CodeAnalysis.CSharp (27)
BoundTree\BoundNode_Source.cs (1)
179case BoundLabelStatement label:
BoundTree\BoundStatementExtensions.cs (1)
35Debug.Assert(((BoundLabelStatement)node).Label == label);
BoundTree\BoundTreeVisitors.cs (1)
106return VisitLabelStatement(node as BoundLabelStatement, arg);
CodeGen\EmitStatement.cs (3)
76EmitLabelStatement((BoundLabelStatement)statement); 633private void EmitLabelStatement(BoundLabelStatement boundLabelStatement) 1947public override BoundNode VisitLabelStatement(BoundLabelStatement node)
CodeGen\Optimizer.cs (1)
1381public override BoundNode VisitLabelStatement(BoundLabelStatement node)
FlowAnalysis\AbstractFlowPass.cs (3)
857var label = (BoundLabelStatement)node; 3352public override BoundNode VisitLabelStatement(BoundLabelStatement node)
FlowAnalysis\ExitPointsWalker.cs (1)
70public override BoundNode VisitLabelStatement(BoundLabelStatement node)
Generated\BoundNodes.xml.Generated.cs (8)
4696public BoundLabelStatement Update(LabelSymbol label) 4700var result = new BoundLabelStatement(this.Syntax, label, this.HasErrors); 9076return VisitLabelStatement((BoundLabelStatement)node, arg); 9426public virtual R VisitLabelStatement(BoundLabelStatement node, A arg) => this.DefaultVisit(node, arg); 9662public virtual BoundNode? VisitLabelStatement(BoundLabelStatement node) => this.DefaultVisit(node); 10242public override BoundNode? VisitLabelStatement(BoundLabelStatement node) => null; 11493public override BoundNode? VisitLabelStatement(BoundLabelStatement node) => node; 16024public override TreeDumperNode VisitLabelStatement(BoundLabelStatement node, object? arg) => new TreeDumperNode("labelStatement", null, new TreeDumperNode[]
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (3)
280/// after the beginning of a <see cref="Scope"/>, to a <see cref="BoundLabelStatement"/> 285/// have been converted to <see cref="BoundLabelStatement"/>s, so we do not have to 522public override BoundNode VisitLabelStatement(BoundLabelStatement node)
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
124public override BoundNode VisitLabelStatement(BoundLabelStatement node)
Lowering\SyntheticBoundNodeFactory.cs (1)
1120public BoundLabelStatement Label(LabelSymbol label)
Lowering\UnmatchedGotoFinder.cs (1)
89public override BoundNode VisitLabelStatement(BoundLabelStatement node)
Operations\CSharpOperationFactory.cs (2)
208return CreateBoundLabelStatementOperation((BoundLabelStatement)boundNode); 2189private ILabeledOperation CreateBoundLabelStatementOperation(BoundLabelStatement boundLabelStatement)