1 write to Label
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5697this.Label = label;
20 references to Label
Microsoft.CodeAnalysis.CSharp (20)
Binder\DecisionDagBuilder.cs (1)
155builder.Add(MakeTestsForPattern(++i, label.Syntax, rootIdentifier, label.Pattern, label.WhenClause, label.Label));
Binder\SwitchBinder_Patterns.cs (4)
51defaultLabel: defaultLabel?.Label ?? BreakLabel, 80return !reachableLabels.Contains(switchLabel.Label); 109if (label.Pattern is BoundConstantPattern cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label) 124newLabel = new BoundSwitchLabel(label.Syntax, label.Label, label.Pattern, label.WhenClause, hasErrors: true);
BoundTree\BoundStatementExtensions.cs (1)
45if (boundSwitchLabel.Label == label)
BoundTree\BoundSwitchStatement.cs (1)
22this.DefaultLabel?.Label ?? this.BreakLabel,
FlowAnalysis\AbstractFlowPass.cs (1)
866stateChangedAfterUse |= ResolveBranches(label.Label, sec);
FlowAnalysis\AbstractFlowPass_Switch.cs (3)
51if (reachableLabels.Contains(label.Label) || label.HasErrors || 69PendingBranches.Add(new PendingBranch(label, this.State, label.Label)); 125VisitLabel(label.Label, node);
FlowAnalysis\ControlFlowPass.cs (1)
391_labelsDefined[label.Label] = node;
FlowAnalysis\NullableWalker_Patterns.cs (3)
305var labelResult = labelStateMap.TryGetValue(label.Label, out var s1) ? s1 : (state: UnreachableState(), believedReachable: false); 307PendingBranches.Add(new PendingBranch(label, this.State, label.Label)); 331VisitLabel(label.Label, node);
Generated\BoundNodes.xml.Generated.cs (3)
5711if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.Pattern || whenClause != this.WhenClause) 11663return node.Update(node.Label, pattern, whenClause); 16260new TreeDumperNode("label", node.Label, null),
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
137sectionBuilder.Add(_factory.Label(switchLabel.Label));
Operations\CSharpOperationFactory.cs (1)
2749LabelSymbol label = boundSwitchLabel.Label;