1 write to DefaultLabel
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4928this.DefaultLabel = defaultLabel;
18 references to DefaultLabel
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Conversions.cs (1)
2515source.DefaultLabel, source.ReportedNotExhaustive, destination, hasErrors || source.HasErrors).WithSuppression(source.IsSuppressed);
BoundTree\BoundSwitchExpression.cs (1)
14defaultLabel = this.DefaultLabel;
FlowAnalysis\NullableWalker_Patterns.cs (4)
1081var reachabilityInfo = (!node.ReportedNotExhaustive && node.DefaultLabel != null) ? PooledHashSet<DecisionDagReachabilityInfo>.GetInstance() : null; 1085if (!node.ReportedNotExhaustive && node.DefaultLabel != null && 1086labelStateMap.TryGetValue(node.DefaultLabel, out var defaultLabelState) && 1093var leaf = nodes.Where(n => n is BoundLeafDecisionDagNode leaf && leaf.Label == node.DefaultLabel).First();
Generated\BoundNodes.xml.Generated.cs (10)
4998if (expression != this.Expression || switchArms != this.SwitchArms || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 5032if (!TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.ConsiderEverything) || wasTargetTyped != this.WasTargetTyped || expression != this.Expression || switchArms != this.SwitchArms || reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11929LabelSymbol? defaultLabel = this.VisitLabelSymbol(node.DefaultLabel); 11938LabelSymbol? defaultLabel = this.VisitLabelSymbol(node.DefaultLabel); 14136updatedNode = node.Update(expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, infoAndType.Type); 14141updatedNode = node.Update(expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, node.Type); 14156updatedNode = node.Update(naturalTypeOpt, node.WasTargetTyped, expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, infoAndType.Type!); 14161updatedNode = node.Update(naturalTypeOpt, node.WasTargetTyped, expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, node.Type); 16607new TreeDumperNode("defaultLabel", node.DefaultLabel, null), 16621new TreeDumperNode("defaultLabel", node.DefaultLabel, null),
Operations\CSharpOperationFactory.cs (2)
2776if (boundSwitchExpression.DefaultLabel != null) 2778Debug.Assert(boundSwitchExpression.DefaultLabel is GeneratedLabelSymbol);