4 instantiations of BoundConstantPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Operators.cs (1)
4707var boundConstantPattern = new BoundConstantPattern(
Binder\Binder_Patterns.cs (1)
451return new BoundConstantPattern(
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
1088var nullCheck = new BoundConstantPattern(node.Syntax,
Generated\BoundNodes.xml.Generated.cs (1)
8046var result = new BoundConstantPattern(this.Syntax, value, constantValue, inputType, narrowedType, this.HasErrors);
34 references to BoundConstantPattern
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Operators.cs (1)
4707var boundConstantPattern = new BoundConstantPattern(
Binder\Binder_Patterns.cs (2)
76case BoundConstantPattern _: 114case BoundConstantPattern _:
Binder\DecisionDagBuilder.cs (2)
292case BoundConstantPattern constant: 484BoundConstantPattern constant,
Binder\DecisionDagBuilder_CheckOrReachability.cs (4)
795or BoundConstantPattern 946public override BoundNode? VisitConstantPattern(BoundConstantPattern node) 1005if (pattern is BoundConstantPattern constantPattern) 1088var nullCheck = new BoundConstantPattern(node.Syntax,
Binder\SwitchBinder_Patterns.cs (2)
117if (label.Pattern is BoundConstantPattern cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label) 298if (pattern is BoundConstantPattern { HasErrors: false } && IsUnderscore(expression))
BoundTree\BoundNode_Source.cs (1)
358case BoundConstantPattern constantPattern:
FlowAnalysis\AbstractFlowPass.cs (6)
927BoundDeclarationPattern or BoundConstantPattern or BoundNegatedPattern or BoundBinaryPattern or 988case BoundConstantPattern { ConstantValue: { IsNull: false } }: 992case BoundConstantPattern { ConstantValue: { IsNull: true } }: 1033case BoundConstantPattern { ConstantValue: { IsBoolean: true, BooleanValue: var boolValue } }: 1064case BoundConstantPattern { ConstantValue: { IsBoolean: false } }: 1107public override BoundNode VisitConstantPattern(BoundConstantPattern node)
FlowAnalysis\DefiniteAssignment.cs (2)
1978var pat = (BoundConstantPattern)pattern;
FlowAnalysis\NullableWalker_Patterns.cs (2)
63public override BoundNode VisitConstantPattern(BoundConstantPattern node) 166case BoundConstantPattern cp:
Generated\BoundNodes.xml.Generated.cs (9)
8042public BoundConstantPattern Update(BoundExpression value, ConstantValue constantValue, TypeSymbol inputType, TypeSymbol narrowedType) 8046var result = new BoundConstantPattern(this.Syntax, value, constantValue, inputType, narrowedType, this.HasErrors); 9289return VisitConstantPattern((BoundConstantPattern)node, arg); 9551public virtual R VisitConstantPattern(BoundConstantPattern node, A arg) => this.DefaultVisit(node, arg); 9787public virtual BoundNode? VisitConstantPattern(BoundConstantPattern node) => this.DefaultVisit(node); 10720public override BoundNode? VisitConstantPattern(BoundConstantPattern node) 12229public override BoundNode? VisitConstantPattern(BoundConstantPattern node) 14884public override BoundNode? VisitConstantPattern(BoundConstantPattern node) 17074public override TreeDumperNode VisitConstantPattern(BoundConstantPattern node, object? arg) => new TreeDumperNode("constantPattern", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (3)
225return CreateBoundConstantPatternOperation((BoundConstantPattern)boundNode); 2515private IConstantPatternOperation CreateBoundConstantPatternOperation(BoundConstantPattern boundConstantPattern) 2758boundSwitchLabel.Pattern is BoundConstantPattern cp &&