1 write to Label
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4716this.Label = label;
20 references to Label
Microsoft.CodeAnalysis.CSharp (20)
BoundTree\BoundNode_Source.cs (1)
163append(gotoStatement.Label.ToString());
CodeGen\EmitStatement.cs (2)
640_builder.EmitBranch(ILOpCode.Br, boundGotoStatement.Label); 1954var labelClone = GetLabelClone(node.Label);
CodeGen\Optimizer.cs (1)
1404RecordBranch(node.Label);
FlowAnalysis\AbstractFlowPass.cs (1)
3332PendingBranches.Add(new PendingBranch(node, this.State, node.Label));
FlowAnalysis\ControlFlowPass.cs (4)
220Diagnostics.Add(ErrorCode.ERR_LabelNotFound, loc, ((BoundGotoStatement)pending.Branch).Label.Name); 338_labelsUsed.Add(node.Label); 343var targetStart = node.Label.GetFirstLocation().SourceSpan.Start; 361if (_labelsDefined.TryGetValue(node.Label, out BoundNode target) && target == usingDecl.block)
FlowAnalysis\ExitPointsWalker.cs (1)
128if (_labelsInside.Contains(((BoundGotoStatement)pending.Branch).Label)) continue;
Generated\BoundNodes.xml.Generated.cs (3)
4730if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || caseExpressionOpt != this.CaseExpressionOpt || labelExpressionOpt != this.LabelExpressionOpt) 11498return node.Update(node.Label, caseExpressionOpt, labelExpressionOpt); 16032new TreeDumperNode("label", node.Label, null),
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
364var proxyLabel = _currentAwaitFinallyFrame.ProxyLabelIfNeeded(node.Label);
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
531CheckCanMergeWithParent(node.Label);
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (2)
347var proxyLabel = _currentFinallyFrame.ProxyLabelIfNeeded(node.Label); 348Debug.Assert(node.Label == proxyLabel || !(F.CurrentFunction is IteratorFinallyMethodSymbol), "should not be proxying branches in finally");
Lowering\LocalRewriter\LocalRewriter_GotoStatement.cs (1)
24BoundStatement result = node.Update(node.Label, caseExpressionOpt, labelExpressionOpt);
Lowering\UnmatchedGotoFinder.cs (1)
68AddGoto(node.Label);
Operations\CSharpOperationFactory.cs (1)
1788ILabelSymbol target = boundGotoStatement.Label.GetPublicSymbol();