1 write to Pattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5698this.Pattern = pattern;
17 references to Pattern
Microsoft.CodeAnalysis.CSharp (17)
Binder\DecisionDagBuilder.cs (1)
155builder.Add(MakeTestsForPattern(++i, label.Syntax, rootIdentifier, label.Pattern, label.WhenClause, label.Label));
Binder\SwitchBinder_Patterns.cs (3)
109if (label.Pattern is BoundConstantPattern cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label) 114else if (!label.Pattern.HasErrors && !anyPreviousErrors) 124newLabel = new BoundSwitchLabel(label.Syntax, label.Label, label.Pattern, label.WhenClause, hasErrors: true);
BoundTree\BoundNode_Source.cs (1)
311appendSource(label.Pattern);
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
61VisitPattern(label.Pattern);
FlowAnalysis\NullableWalker_Patterns.cs (2)
246LearnFromAnyNullPatterns(slot, originalInputType, label.Pattern); 285VisitForRewriting(label.Pattern);
FlowAnalysis\VariablesDeclaredWalker.cs (1)
60NoteDeclaredPatternVariables(label.Pattern);
Generated\BoundNodes.xml.Generated.cs (4)
5711if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.Pattern || whenClause != this.WhenClause) 10394this.Visit(node.Pattern); 11659BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 16259new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.Pattern, null) }),
Operations\CSharpOperationFactory.cs (4)
2690Debug.Assert(boundSwitchLabel.Pattern.Kind == BoundKind.DiscardPattern); 2694boundSwitchLabel.Pattern.Kind == BoundKind.ConstantPattern && 2695boundSwitchLabel.Pattern is BoundConstantPattern cp && 2702IPatternOperation pattern = (IPatternOperation)Create(boundSwitchLabel.Pattern);