1 write to Pattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5699this.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)
284LearnFromAnyNullPatterns(slot, originalInputType, label.Pattern); 323VisitForRewriting(label.Pattern);
FlowAnalysis\VariablesDeclaredWalker.cs (1)
60NoteDeclaredPatternVariables(label.Pattern);
Generated\BoundNodes.xml.Generated.cs (4)
5712if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.Pattern || whenClause != this.WhenClause) 10433this.Visit(node.Pattern); 11698BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 16298new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.Pattern, null) }),
Operations\CSharpOperationFactory.cs (4)
2753Debug.Assert(boundSwitchLabel.Pattern.Kind == BoundKind.DiscardPattern); 2757boundSwitchLabel.Pattern.Kind == BoundKind.ConstantPattern && 2758boundSwitchLabel.Pattern is BoundConstantPattern cp && 2765IPatternOperation pattern = (IPatternOperation)Create(boundSwitchLabel.Pattern);