1 write to Pattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5698
this.
Pattern
= pattern;
17 references to Pattern
Microsoft.CodeAnalysis.CSharp (17)
Binder\DecisionDagBuilder.cs (1)
155
builder.Add(MakeTestsForPattern(++i, label.Syntax, rootIdentifier, label.
Pattern
, label.WhenClause, label.Label));
Binder\SwitchBinder_Patterns.cs (3)
109
if (label.
Pattern
is BoundConstantPattern cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label)
114
else if (!label.
Pattern
.HasErrors && !anyPreviousErrors)
124
newLabel = new BoundSwitchLabel(label.Syntax, label.Label, label.
Pattern
, label.WhenClause, hasErrors: true);
BoundTree\BoundNode_Source.cs (1)
311
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)
60
NoteDeclaredPatternVariables(label.
Pattern
);
Generated\BoundNodes.xml.Generated.cs (4)
5711
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(label, this.Label) || pattern != this.
Pattern
|| whenClause != this.WhenClause)
10396
this.Visit(node.
Pattern
);
11661
BoundPattern pattern = (BoundPattern)this.Visit(node.
Pattern
);
16261
new TreeDumperNode("pattern", null, new TreeDumperNode[] { Visit(node.
Pattern
, null) }),
Operations\CSharpOperationFactory.cs (4)
2753
Debug.Assert(boundSwitchLabel.
Pattern
.Kind == BoundKind.DiscardPattern);
2757
boundSwitchLabel.
Pattern
.Kind == BoundKind.ConstantPattern &&
2758
boundSwitchLabel.
Pattern
is BoundConstantPattern cp &&
2765
IPatternOperation pattern = (IPatternOperation)Create(boundSwitchLabel.
Pattern
);