1 write to Pattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5704
this.
Pattern
= pattern;
20 references to Pattern
Microsoft.CodeAnalysis.CSharp (20)
Binder\DecisionDagBuilder.cs (1)
155
builder.Add(MakeTestsForPattern(++i, label.Syntax, rootIdentifier, label.
Pattern
, label.WhenClause, label.Label));
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
178
if (label.
Pattern
.HasErrors)
183
existingCases.Add(builder.MakeTestsForPattern(++index, label.Syntax, rootIdentifier, label.
Pattern
, label.WhenClause, label.Label));
195
CheckOrAndAndReachability(existingCases, patternIndex, label.
Pattern
, builder, rootIdentifier, syntax, diagnostics, redundantNodes);
Binder\SwitchBinder_Patterns.cs (3)
117
if (label.
Pattern
is BoundConstantPattern cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label)
123
else if (!label.
Pattern
.HasErrors && !anyPreviousErrors)
134
newLabel = new BoundSwitchLabel(label.Syntax, label.Label, label.
Pattern
, label.WhenClause, hasErrors: true);
BoundTree\BoundNode_Source.cs (1)
299
appendSource(label.
Pattern
);
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
61
VisitPattern(label.
Pattern
);
FlowAnalysis\NullableWalker_Patterns.cs (2)
284
LearnFromAnyNullPatterns(slot, originalInputType, label.
Pattern
);
323
VisitForRewriting(label.
Pattern
);
FlowAnalysis\VariablesDeclaredWalker.cs (1)
61
NoteDeclaredPatternVariables(label.
Pattern
);
Generated\BoundNodes.xml.Generated.cs (4)
5717
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.
Pattern
|| whenClause != this.WhenClause)
10443
this.Visit(node.
Pattern
);
11811
BoundPattern pattern = (BoundPattern)this.Visit(node.
Pattern
);
16436
new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.
Pattern
, null) }),
Operations\CSharpOperationFactory.cs (4)
2744
Debug.Assert(boundSwitchLabel.
Pattern
.Kind == BoundKind.DiscardPattern);
2748
boundSwitchLabel.
Pattern
.Kind == BoundKind.ConstantPattern &&
2749
boundSwitchLabel.
Pattern
is BoundConstantPattern cp &&
2756
IPatternOperation pattern = (IPatternOperation)Create(boundSwitchLabel.
Pattern
);