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