32 instantiations of GeneratedLabelSymbol
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Patterns.cs (2)
54
LabelSymbol whenTrueLabel = new
GeneratedLabelSymbol
("isPatternSuccess");
55
LabelSymbol whenFalseLabel = new
GeneratedLabelSymbol
("isPatternFailure");
Binder\LoopBinderContext.cs (2)
21
_breakLabel = new
GeneratedLabelSymbol
("break");
22
_continueLabel = new
GeneratedLabelSymbol
("continue");
Binder\SwitchBinder.cs (1)
32
_breakLabel = new
GeneratedLabelSymbol
("break");
Binder\SwitchExpressionArmBinder.cs (1)
47
var label = new
GeneratedLabelSymbol
("arm");
Binder\SwitchExpressionBinder.cs (1)
62
defaultLabel = new
GeneratedLabelSymbol
("default");
BoundTree\BoundSwitchExpression.cs (1)
26
defaultLabel ??= new
GeneratedLabelSymbol
("default"),
BoundTree\LengthBasedStringSwitchData.cs (2)
198
var charJumpTable = new CharJumpTable(label: new
GeneratedLabelSymbol
("char-dispatch"), bestCharacterPosition, charCaseLabels.ToImmutableAndFree());
256
var stringJumpTable = new StringJumpTable(label: new
GeneratedLabelSymbol
("string-dispatch"), cases.SelectAsArray(c => (c.value, c.label)));
CodeGen\EmitStatement.cs (1)
2013
clone = new
GeneratedLabelSymbol
("cloned_" + label.Name);
Compiler\MethodBodySynthesizer.cs (1)
425
GeneratedLabelSymbol loopLabel = new
GeneratedLabelSymbol
("loop");
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
975
proxy = new
GeneratedLabelSymbol
("proxy" + label.Name);
999
this.returnProxyLabel = returnProxy = new
GeneratedLabelSymbol
("returnProxy");
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.IteratorFinallyFrame.cs (1)
115
proxy = new
GeneratedLabelSymbol
("proxy" + label.Name);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
1304
var breakLabel = new
GeneratedLabelSymbol
("break");
1305
var continueLabel = new
GeneratedLabelSymbol
("continue");
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (1)
22
var startLabel = new
GeneratedLabelSymbol
("start");
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
1163
: new
GeneratedLabelSymbol
("break"); // Should not affect emitted code since unused
1192
continueLabelInner = new
GeneratedLabelSymbol
("continue"); // Should not affect emitted code since unused
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (3)
80
var startLabel = new
GeneratedLabelSymbol
("start");
99
var endLabel = new
GeneratedLabelSymbol
("end");
224
var startLabel = new
GeneratedLabelSymbol
("start");
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (3)
42
var afterif = new
GeneratedLabelSymbol
("afterif");
76
var alt = new
GeneratedLabelSymbol
("alternative");
125
var afterif = new
GeneratedLabelSymbol
("afterif");
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
66
var startLabel = new
GeneratedLabelSymbol
("start");
Lowering\SyntheticBoundNodeFactory.cs (5)
211
return new
GeneratedLabelSymbol
(prefix);
940
var afterif = new
GeneratedLabelSymbol
("afterif");
944
var alt = new
GeneratedLabelSymbol
("alternative");
1074
GeneratedLabelSymbol breakLabel = new
GeneratedLabelSymbol
("break");
1081
LabelSymbol sectionLabel = new
GeneratedLabelSymbol
("case " + section.Values[0]);
113 references to GeneratedLabelSymbol
Microsoft.CodeAnalysis.CSharp (113)
Binder\Binder.cs (4)
348
/// returns the <see cref="
GeneratedLabelSymbol
"/> that a break statement would branch to.
351
internal virtual
GeneratedLabelSymbol
? BreakLabel
362
/// returns the <see cref="
GeneratedLabelSymbol
"/> that a continue statement would branch to.
365
internal virtual
GeneratedLabelSymbol
? ContinueLabel
Binder\Binder_Statements.cs (2)
2898
var
target = this.BreakLabel;
2909
var
target = this.ContinueLabel;
Binder\BuckStopsHereBinder.cs (2)
126
internal override
GeneratedLabelSymbol
? BreakLabel
134
internal override
GeneratedLabelSymbol
? ContinueLabel
Binder\InMethodBinder.cs (2)
105
internal override
GeneratedLabelSymbol
BreakLabel
113
internal override
GeneratedLabelSymbol
ContinueLabel
Binder\LoopBinderContext.cs (4)
15
private readonly
GeneratedLabelSymbol
_breakLabel;
16
private readonly
GeneratedLabelSymbol
_continueLabel;
25
internal override
GeneratedLabelSymbol
BreakLabel
33
internal override
GeneratedLabelSymbol
ContinueLabel
Binder\SwitchBinder.cs (2)
23
private readonly
GeneratedLabelSymbol
_breakLabel;
166
internal override
GeneratedLabelSymbol
BreakLabel
Binder\SwitchExpressionArmBinder.cs (1)
47
var
label = new GeneratedLabelSymbol("arm");
BoundTree\BoundDecisionDagNode.cs (1)
111
builder.Append(node.Label is
GeneratedLabelSymbol
generated
CodeGen\EmitStatement.cs (7)
1933
private Dictionary<LabelSymbol,
GeneratedLabelSymbol
> _labelClones;
1954
var
labelClone = GetLabelClone(node.Label);
1966
var
labelClone = GetLabelClone(node.Label);
1979
var
defaultClone = GetLabelClone(node.DefaultLabel);
2002
private
GeneratedLabelSymbol
GetLabelClone(LabelSymbol label)
2007
_labelClones = labelClones = new Dictionary<LabelSymbol,
GeneratedLabelSymbol
>();
2010
GeneratedLabelSymbol
clone;
Compiler\MethodBodySynthesizer.cs (1)
425
GeneratedLabelSymbol
loopLabel = new GeneratedLabelSymbol("loop");
Generated\BoundNodes.xml.Generated.cs (35)
3696
public BoundBreakStatement(SyntaxNode syntax,
GeneratedLabelSymbol
label, bool hasErrors)
3705
public BoundBreakStatement(SyntaxNode syntax,
GeneratedLabelSymbol
label)
3714
public
GeneratedLabelSymbol
Label { get; }
3719
public BoundBreakStatement Update(
GeneratedLabelSymbol
label)
3733
public BoundContinueStatement(SyntaxNode syntax,
GeneratedLabelSymbol
label, bool hasErrors)
3742
public BoundContinueStatement(SyntaxNode syntax,
GeneratedLabelSymbol
label)
3751
public
GeneratedLabelSymbol
Label { get; }
3756
public BoundContinueStatement Update(
GeneratedLabelSymbol
label)
3770
public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel,
GeneratedLabelSymbol
breakLabel, bool hasErrors = false)
3796
public
GeneratedLabelSymbol
BreakLabel { get; }
3801
public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel,
GeneratedLabelSymbol
breakLabel)
3884
protected BoundLoopStatement(BoundKind kind, SyntaxNode syntax,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel, bool hasErrors)
3895
protected BoundLoopStatement(BoundKind kind, SyntaxNode syntax,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel)
3906
public
GeneratedLabelSymbol
BreakLabel { get; }
3907
public
GeneratedLabelSymbol
ContinueLabel { get; }
3912
protected BoundConditionalLoopStatement(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel, bool hasErrors = false)
3934
public BoundDoStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel, bool hasErrors = false)
3950
public BoundDoStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel)
3964
public BoundWhileStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel, bool hasErrors = false)
3980
public BoundWhileStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel)
3994
public BoundForStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel, bool hasErrors = false)
4022
public BoundForStatement Update(ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel)
4036
public BoundForEachStatement(SyntaxNode syntax, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel, bool hasErrors = false)
4073
public BoundForEachStatement Update(ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body,
GeneratedLabelSymbol
breakLabel,
GeneratedLabelSymbol
continueLabel)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (5)
188
var
finallyLabel = _F.GenerateLabel("finallyLabel");
270
var
returnProxy = frame.returnProxyLabel;
486
var
handledLabel = _F.GenerateLabel("handled");
929
public
GeneratedLabelSymbol
returnProxyLabel;
996
var
returnProxy = this.returnProxyLabel;
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (3)
239
AddState(StateMachineState.InitialAsyncIteratorState, out
GeneratedLabelSymbol
resumeLabel);
266
AddResumableState(_iteratorStateAllocator, node.Syntax, awaitId: default, out var stateNumber, out
GeneratedLabelSymbol
resumeLabel);
344
var
finallyEntry = F.GenerateLabel("finallyEntry");
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
450
AddResumableState(awaitSyntax, debugInfo.AwaitId, out StateMachineState stateNumber, out
GeneratedLabelSymbol
resumeLabel);
487
AddResumableState(awaitSyntax, new AwaitDebugId((byte)(debugInfo.AwaitId.RelativeStateOrdinal + 1 + i)), out _, out
var
dummyResumeLabel);
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (4)
98
AddState(StateMachineState.InitialIteratorState, out
GeneratedLabelSymbol
initialLabel);
256
var
breakLabel = F.GenerateLabel("break");
329
AddResumableState(node.Syntax, awaitId: default, out StateMachineState stateNumber, out
GeneratedLabelSymbol
resumeLabel);
430
var
dropThrough = F.GenerateLabel("dropThrough");
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
838
var
gt = _factory.GenerateLabel("greaterThanMidpoint");
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
1304
var
breakLabel = new GeneratedLabelSymbol("break");
1305
var
continueLabel = new GeneratedLabelSymbol("continue");
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (1)
22
var
startLabel = new GeneratedLabelSymbol("start");
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (10)
144
GeneratedLabelSymbol
breakLabel,
145
GeneratedLabelSymbol
continueLabel,
605
GeneratedLabelSymbol
breakLabel,
606
GeneratedLabelSymbol
continueLabel,
901
GeneratedLabelSymbol
breakLabel,
902
GeneratedLabelSymbol
continueLabel,
1050
GeneratedLabelSymbol
breakLabel,
1051
GeneratedLabelSymbol
continueLabel,
1161
GeneratedLabelSymbol
breakLabelInner = dimension == 0 // outermost for-loop
1181
GeneratedLabelSymbol
continueLabelInner;
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (5)
47
GeneratedLabelSymbol
breakLabel,
48
GeneratedLabelSymbol
continueLabel,
80
var
startLabel = new GeneratedLabelSymbol("start");
99
var
endLabel = new GeneratedLabelSymbol("end");
224
var
startLabel = new GeneratedLabelSymbol("start");
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (4)
18
var stack = ArrayBuilder<(BoundIfStatement,
GeneratedLabelSymbol
, int)>.GetInstance();
42
var
afterif = new GeneratedLabelSymbol("afterif");
76
var
alt = new GeneratedLabelSymbol("alternative");
125
var
afterif = new GeneratedLabelSymbol("afterif");
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (5)
45
GeneratedLabelSymbol
breakLabel,
46
GeneratedLabelSymbol
continueLabel,
66
var
startLabel = new GeneratedLabelSymbol("start");
111
GeneratedLabelSymbol
breakLabel,
112
GeneratedLabelSymbol
continueLabel,
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
209
protected void AddResumableState(SyntaxNode awaitOrYieldReturnSyntax, AwaitDebugId awaitId, out StateMachineState state, out
GeneratedLabelSymbol
resumeLabel)
212
protected void AddResumableState(ResumableStateMachineStateAllocator allocator, SyntaxNode awaitOrYieldReturnSyntax, AwaitDebugId awaitId, out StateMachineState stateNumber, out
GeneratedLabelSymbol
resumeLabel)
227
protected void AddState(StateMachineState stateNumber, out
GeneratedLabelSymbol
resumeLabel)
865
GeneratedLabelSymbol
dispatchLabel = null;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
427
var
thisInitialized = F.GenerateLabel("thisInitialized");
Lowering\SyntheticBoundNodeFactory.cs (4)
209
public
GeneratedLabelSymbol
GenerateLabel(string prefix)
940
var
afterif = new GeneratedLabelSymbol("afterif");
944
var
alt = new GeneratedLabelSymbol("alternative");
1074
GeneratedLabelSymbol
breakLabel = new GeneratedLabelSymbol("break");
Operations\CSharpOperationFactory.cs (1)
2712
Debug.Assert(boundSwitchExpression.DefaultLabel is
GeneratedLabelSymbol
);