29 instantiations of GeneratedLabelSymbol
Microsoft.CodeAnalysis.CSharp (29)
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)
31_breakLabel = new GeneratedLabelSymbol("break");
Binder\SwitchExpressionArmBinder.cs (1)
47var label = new GeneratedLabelSymbol("arm");
Binder\SwitchExpressionBinder.cs (1)
61defaultLabel = 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)
1990clone = new GeneratedLabelSymbol("cloned_" + label.Name);
Compiler\MethodBodySynthesizer.cs (1)
421GeneratedLabelSymbol loopLabel = new GeneratedLabelSymbol("loop");
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
942proxy = new GeneratedLabelSymbol("proxy" + label.Name); 966this.returnProxyLabel = returnProxy = new GeneratedLabelSymbol("returnProxy");
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.IteratorFinallyFrame.cs (1)
115proxy = new GeneratedLabelSymbol("proxy" + label.Name);
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (1)
22var startLabel = new GeneratedLabelSymbol("start");
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
938: new GeneratedLabelSymbol("break"); // Should not affect emitted code since unused 967continueLabel = new GeneratedLabelSymbol("continue"); // Should not affect emitted code since unused
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (3)
81var startLabel = new GeneratedLabelSymbol("start"); 100var endLabel = new GeneratedLabelSymbol("end"); 221var startLabel = new GeneratedLabelSymbol("start");
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (2)
50var afterif = new GeneratedLabelSymbol("afterif"); 87var alt = new GeneratedLabelSymbol("alternative");
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
66var startLabel = new GeneratedLabelSymbol("start");
Lowering\SyntheticBoundNodeFactory.cs (5)
258return new GeneratedLabelSymbol(prefix); 877var afterif = new GeneratedLabelSymbol("afterif"); 881var alt = new GeneratedLabelSymbol("alternative"); 1011GeneratedLabelSymbol breakLabel = new GeneratedLabelSymbol("break"); 1018LabelSymbol sectionLabel = new GeneratedLabelSymbol("case " + section.Values[0]);
100 references to GeneratedLabelSymbol
Microsoft.CodeAnalysis.CSharp (100)
Binder\Binder.cs (4)
347/// returns the <see cref="GeneratedLabelSymbol"/> that a break statement would branch to. 350internal virtual GeneratedLabelSymbol? BreakLabel 361/// returns the <see cref="GeneratedLabelSymbol"/> that a continue statement would branch to. 364internal virtual GeneratedLabelSymbol? ContinueLabel
Binder\Binder_Statements.cs (2)
2800var target = this.BreakLabel; 2811var 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; 162internal 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)
1910private Dictionary<LabelSymbol, GeneratedLabelSymbol> _labelClones; 1931var labelClone = GetLabelClone(node.Label); 1943var labelClone = GetLabelClone(node.Label); 1956var defaultClone = GetLabelClone(node.DefaultLabel); 1979private GeneratedLabelSymbol GetLabelClone(LabelSymbol label) 1984_labelClones = labelClones = new Dictionary<LabelSymbol, GeneratedLabelSymbol>(); 1987GeneratedLabelSymbol clone;
Compiler\MethodBodySynthesizer.cs (1)
421GeneratedLabelSymbol loopLabel = new GeneratedLabelSymbol("loop");
Generated\BoundNodes.xml.Generated.cs (35)
3585public BoundBreakStatement(SyntaxNode syntax, GeneratedLabelSymbol label, bool hasErrors) 3594public BoundBreakStatement(SyntaxNode syntax, GeneratedLabelSymbol label) 3603public GeneratedLabelSymbol Label { get; } 3608public BoundBreakStatement Update(GeneratedLabelSymbol label) 3622public BoundContinueStatement(SyntaxNode syntax, GeneratedLabelSymbol label, bool hasErrors) 3631public BoundContinueStatement(SyntaxNode syntax, GeneratedLabelSymbol label) 3640public GeneratedLabelSymbol Label { get; } 3645public BoundContinueStatement Update(GeneratedLabelSymbol label) 3659public BoundSwitchStatement(SyntaxNode syntax, BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel, bool hasErrors = false) 3685public GeneratedLabelSymbol BreakLabel { get; } 3690public BoundSwitchStatement Update(BoundExpression expression, ImmutableArray<LocalSymbol> innerLocals, ImmutableArray<LocalFunctionSymbol> innerLocalFunctions, ImmutableArray<BoundSwitchSection> switchSections, BoundDecisionDag reachabilityDecisionDag, BoundSwitchLabel? defaultLabel, GeneratedLabelSymbol breakLabel) 3773protected BoundLoopStatement(BoundKind kind, SyntaxNode syntax, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors) 3784protected BoundLoopStatement(BoundKind kind, SyntaxNode syntax, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 3795public GeneratedLabelSymbol BreakLabel { get; } 3796public GeneratedLabelSymbol ContinueLabel { get; } 3801protected BoundConditionalLoopStatement(BoundKind kind, SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 3823public BoundDoStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 3839public BoundDoStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 3853public BoundWhileStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 3869public BoundWhileStatement Update(ImmutableArray<LocalSymbol> locals, BoundExpression condition, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 3883public BoundForStatement(SyntaxNode syntax, ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false) 3911public BoundForStatement Update(ImmutableArray<LocalSymbol> outerLocals, BoundStatement? initializer, ImmutableArray<LocalSymbol> innerLocals, BoundExpression? condition, BoundStatement? increment, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel) 3925public 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) 3962public 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)
176var finallyLabel = _F.GenerateLabel("finallyLabel"); 257var returnProxy = frame.returnProxyLabel; 467var handledLabel = _F.GenerateLabel("handled"); 896public GeneratedLabelSymbol returnProxyLabel; 963var returnProxy = this.returnProxyLabel;
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (3)
238AddState(StateMachineState.InitialAsyncIteratorState, out GeneratedLabelSymbol resumeLabel); 265AddResumableState(_iteratorStateAllocator, node.Syntax, out var stateNumber, out GeneratedLabelSymbol resumeLabel); 343var finallyEntry = F.GenerateLabel("finallyEntry");
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
455AddResumableState(awaiterTemp.GetDeclaratorSyntax(), out StateMachineState stateNumber, out GeneratedLabelSymbol resumeLabel);
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (4)
97AddState(StateMachineState.InitialIteratorState, out GeneratedLabelSymbol initialLabel); 263var breakLabel = F.GenerateLabel("break"); 336AddResumableState(node.Syntax, out StateMachineState stateNumber, out GeneratedLabelSymbol resumeLabel); 437var dropThrough = F.GenerateLabel("dropThrough");
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
838var gt = _factory.GenerateLabel("greaterThanMidpoint");
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (1)
22var startLabel = new GeneratedLabelSymbol("start");
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
936GeneratedLabelSymbol breakLabel = dimension == 0 // outermost for-loop 956GeneratedLabelSymbol continueLabel;
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (5)
48GeneratedLabelSymbol breakLabel, 49GeneratedLabelSymbol continueLabel, 81var startLabel = new GeneratedLabelSymbol("start"); 100var endLabel = new GeneratedLabelSymbol("end"); 221var startLabel = new GeneratedLabelSymbol("start");
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (2)
50var afterif = new GeneratedLabelSymbol("afterif"); 87var alt = new GeneratedLabelSymbol("alternative");
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (5)
45GeneratedLabelSymbol breakLabel, 46GeneratedLabelSymbol continueLabel, 66var startLabel = new GeneratedLabelSymbol("start"); 106GeneratedLabelSymbol breakLabel, 107GeneratedLabelSymbol continueLabel,
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
209protected void AddResumableState(SyntaxNode awaitOrYieldReturnSyntax, out StateMachineState state, out GeneratedLabelSymbol resumeLabel) 212protected void AddResumableState(ResumableStateMachineStateAllocator allocator, SyntaxNode awaitOrYieldReturnSyntax, out StateMachineState stateNumber, out GeneratedLabelSymbol resumeLabel) 227protected void AddState(StateMachineState stateNumber, out GeneratedLabelSymbol resumeLabel) 846GeneratedLabelSymbol dispatchLabel = null;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
417var thisInitialized = F.GenerateLabel("thisInitialized");
Lowering\SyntheticBoundNodeFactory.cs (4)
256public GeneratedLabelSymbol GenerateLabel(string prefix) 877var afterif = new GeneratedLabelSymbol("afterif"); 881var alt = new GeneratedLabelSymbol("alternative"); 1011GeneratedLabelSymbol breakLabel = new GeneratedLabelSymbol("break");
Operations\CSharpOperationFactory.cs (1)
2567Debug.Assert(boundSwitchExpression.DefaultLabel is GeneratedLabelSymbol);