1 write to Pattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5769
this.
Pattern
= pattern;
21 references to Pattern
Microsoft.CodeAnalysis.CSharp (21)
Binder\DecisionDagBuilder_CheckOrReachability.cs (5)
220
if (ShouldAnalyze(compilation, switchLabel.
Pattern
.Syntax))
249
if (label.
Pattern
.HasErrors)
254
existingCases.Add(builder.MakeTestsForPattern(++index, label.Syntax, rootIdentifier, label.
Pattern
, label.HasUnionMatching, label.WhenClause, label.Label));
266
if (ShouldAnalyze(compilation, label.
Pattern
.Syntax))
268
CheckOrAndAndReachability(existingCases, patternIndex, label.
Pattern
, label.HasUnionMatching, builder, rootIdentifier, syntax, diagnostics, redundantNodes);
Binder\DecisionDagBuilder.cs (1)
158
builder.Add(MakeTestsForPattern(++i, label.Syntax, rootIdentifier, label.
Pattern
, label.HasUnionMatching, label.WhenClause, label.Label));
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.HasUnionMatching, label.WhenClause, hasErrors: true);
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
61
VisitPattern(label.
Pattern
);
FlowAnalysis\NullableWalker_Patterns.cs (2)
287
LearnFromAnyNullPatterns(slot, originalInputType, label.HasUnionMatching, label.
Pattern
);
326
VisitForRewriting(label.
Pattern
);
FlowAnalysis\VariablesDeclaredWalker.cs (1)
60
NoteDeclaredPatternVariables(label.
Pattern
);
Generated\BoundNodes.xml.Generated.cs (4)
5784
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.
Pattern
|| hasUnionMatching != this.HasUnionMatching || whenClause != this.WhenClause)
10681
this.Visit(node.
Pattern
);
12082
BoundPattern pattern = (BoundPattern)this.Visit(node.
Pattern
);
16798
new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.
Pattern
, null) }),
Operations\CSharpOperationFactory.cs (4)
2838
Debug.Assert(boundSwitchLabel.
Pattern
.Kind == BoundKind.DiscardPattern);
2842
boundSwitchLabel.
Pattern
.Kind == BoundKind.ConstantPattern &&
2843
boundSwitchLabel.
Pattern
is BoundConstantPattern cp &&
2850
IPatternOperation pattern = (IPatternOperation)Create(boundSwitchLabel.
Pattern
);