1 write to Pattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5786this.Pattern = pattern;
20 references to Pattern
Microsoft.CodeAnalysis.CSharp (20)
Binder\DecisionDagBuilder.cs (1)
157builder.Add(MakeTestsForPattern(++i, label.Syntax, rootIdentifier, label.Pattern, label.HasUnionMatching, label.WhenClause, label.Label));
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
180if (label.Pattern.HasErrors) 185existingCases.Add(builder.MakeTestsForPattern(++index, label.Syntax, rootIdentifier, label.Pattern, label.HasUnionMatching, label.WhenClause, label.Label)); 197CheckOrAndAndReachability(existingCases, patternIndex, label.Pattern, label.HasUnionMatching, builder, rootIdentifier, syntax, diagnostics, redundantNodes);
Binder\SwitchBinder_Patterns.cs (3)
117if (label.Pattern is BoundConstantPattern cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label) 123else if (!label.Pattern.HasErrors && !anyPreviousErrors) 134newLabel = new BoundSwitchLabel(label.Syntax, label.Label, label.Pattern, label.HasUnionMatching, label.WhenClause, hasErrors: true);
BoundTree\BoundNode_Source.cs (1)
299appendSource(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)
5801if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.Pattern || hasUnionMatching != this.HasUnionMatching || whenClause != this.WhenClause) 10688this.Visit(node.Pattern); 12086BoundPattern pattern = (BoundPattern)this.Visit(node.Pattern); 16793new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.Pattern, null) }),
Operations\CSharpOperationFactory.cs (4)
2819Debug.Assert(boundSwitchLabel.Pattern.Kind == BoundKind.DiscardPattern); 2823boundSwitchLabel.Pattern.Kind == BoundKind.ConstantPattern && 2824boundSwitchLabel.Pattern is BoundConstantPattern cp && 2831IPatternOperation pattern = (IPatternOperation)Create(boundSwitchLabel.Pattern);