1 write to DefaultLabel
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4893this.DefaultLabel = defaultLabel;
17 references to DefaultLabel
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Conversions.cs (1)
2002source.DefaultLabel, source.ReportedNotExhaustive, destination, hasErrors || source.HasErrors).WithSuppression(source.IsSuppressed);
BoundTree\BoundSwitchExpression.cs (1)
14defaultLabel = this.DefaultLabel;
FlowAnalysis\NullableWalker_Patterns.cs (3)
895if (!node.ReportedNotExhaustive && node.DefaultLabel != null && 896labelStateMap.TryGetValue(node.DefaultLabel, out var defaultLabelState) && 901var leaf = nodes.Where(n => n is BoundLeafDecisionDagNode leaf && leaf.Label == node.DefaultLabel).First();
Generated\BoundNodes.xml.Generated.cs (10)
4961if (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)) 4995if (!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)) 11656LabelSymbol? defaultLabel = this.VisitLabelSymbol(node.DefaultLabel); 11665LabelSymbol? defaultLabel = this.VisitLabelSymbol(node.DefaultLabel); 13829updatedNode = node.Update(expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, infoAndType.Type); 13834updatedNode = node.Update(expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, node.Type); 13849updatedNode = node.Update(naturalTypeOpt, node.WasTargetTyped, expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, infoAndType.Type!); 13854updatedNode = node.Update(naturalTypeOpt, node.WasTargetTyped, expression, switchArms, reachabilityDecisionDag, node.DefaultLabel, node.ReportedNotExhaustive, node.Type); 16268new TreeDumperNode("defaultLabel", node.DefaultLabel, null), 16282new TreeDumperNode("defaultLabel", node.DefaultLabel, null),
Operations\CSharpOperationFactory.cs (2)
2710if (boundSwitchExpression.DefaultLabel != null) 2712Debug.Assert(boundSwitchExpression.DefaultLabel is GeneratedLabelSymbol);