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