1 instantiation of BoundConstantPattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8040
var result = new
BoundConstantPattern
(this.Syntax, value, constantValue, inputType, narrowedType, this.HasErrors);
29 references to BoundConstantPattern
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Operators.cs (1)
3248
var
boundConstantPattern = new BoundConstantPattern(
Binder\Binder_Patterns.cs (2)
73
case
BoundConstantPattern
_:
109
case
BoundConstantPattern
_:
Binder\DecisionDagBuilder.cs (2)
292
case
BoundConstantPattern
constant:
484
BoundConstantPattern
constant,
Binder\SwitchBinder_Patterns.cs (2)
109
if (label.Pattern is
BoundConstantPattern
cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label)
288
if (pattern is
BoundConstantPattern
{ HasErrors: false } && IsUnderscore(expression))
FlowAnalysis\AbstractFlowPass.cs (6)
928
BoundDeclarationPattern or
BoundConstantPattern
or BoundNegatedPattern or BoundBinaryPattern or
989
case
BoundConstantPattern
{ ConstantValue: { IsNull: false } }:
993
case
BoundConstantPattern
{ ConstantValue: { IsNull: true } }:
1034
case
BoundConstantPattern
{ ConstantValue: { IsBoolean: true, BooleanValue: var boolValue } }:
1065
case
BoundConstantPattern
{ ConstantValue: { IsBoolean: false } }:
1108
public override BoundNode VisitConstantPattern(
BoundConstantPattern
node)
FlowAnalysis\DefiniteAssignment.cs (2)
2014
var
pat = (
BoundConstantPattern
)pattern;
FlowAnalysis\NullableWalker_Patterns.cs (2)
63
public override BoundNode VisitConstantPattern(
BoundConstantPattern
node)
166
case
BoundConstantPattern
cp:
Generated\BoundNodes.xml.Generated.cs (9)
8036
public
BoundConstantPattern
Update(BoundExpression value, ConstantValue constantValue, TypeSymbol inputType, TypeSymbol narrowedType)
8040
var
result = new BoundConstantPattern(this.Syntax, value, constantValue, inputType, narrowedType, this.HasErrors);
9251
return VisitConstantPattern((
BoundConstantPattern
)node, arg);
9513
public virtual R VisitConstantPattern(
BoundConstantPattern
node, A arg) => this.DefaultVisit(node, arg);
9749
public virtual BoundNode? VisitConstantPattern(
BoundConstantPattern
node) => this.DefaultVisit(node);
10681
public override BoundNode? VisitConstantPattern(
BoundConstantPattern
node)
12053
public override BoundNode? VisitConstantPattern(
BoundConstantPattern
node)
14710
public override BoundNode? VisitConstantPattern(
BoundConstantPattern
node)
16907
public override TreeDumperNode VisitConstantPattern(
BoundConstantPattern
node, object? arg) => new TreeDumperNode("constantPattern", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (3)
225
return CreateBoundConstantPatternOperation((
BoundConstantPattern
)boundNode);
2515
private IConstantPatternOperation CreateBoundConstantPatternOperation(
BoundConstantPattern
boundConstantPattern)
2758
boundSwitchLabel.Pattern is
BoundConstantPattern
cp &&