4 instantiations of BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
370
var negated = new
BoundNegatedPattern
(pattern.Syntax, negated: pattern, isUnionMatching: false, pattern.InputType, narrowedType: pattern.InputType);
940
var result = new
BoundNegatedPattern
(node.Syntax, node, isUnionMatching: false, node.InputType, narrowedType: node.InputType);
1100
initialCheck = new
BoundNegatedPattern
(node.Syntax, nullCheck, isUnionMatching: false, node.InputType, narrowedType: node.InputType);
Generated\BoundNodes.xml.Generated.cs (1)
8716
var result = new
BoundNegatedPattern
(this.Syntax, negated, isUnionMatching, inputType, narrowedType, this.HasErrors);
36 references to BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Patterns.cs (2)
268
case
BoundNegatedPattern
_:
306
case
BoundNegatedPattern
_:
Binder\DecisionDagBuilder.cs (2)
402
case
BoundNegatedPattern
neg:
1071
private Tests MakeTestsAndBindingsForNegatedPattern(TestInputOutputInfo input,
BoundNegatedPattern
neg, ArrayBuilder<BoundPatternBinding> bindings)
Binder\DecisionDagBuilder_CheckOrReachability.cs (7)
370
var
negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, isUnionMatching: false, pattern.InputType, narrowedType: pattern.InputType);
809
or
BoundNegatedPattern
, $"This visitor doesn't support pattern {node} yet.");
902
if (pattern is
BoundNegatedPattern
{ Negated: BoundDiscardPattern })
919
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
935
if (node is
BoundNegatedPattern
{ Negated: var negated })
940
var
result = new BoundNegatedPattern(node.Syntax, node, isUnionMatching: false, node.InputType, narrowedType: node.InputType);
1007
if (pattern is
BoundNegatedPattern
negatedPattern)
Binder\UnionMatchingRewriter.cs (1)
198
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
BoundTree\BoundNode_Source.cs (1)
363
case
BoundNegatedPattern
negatedPattern:
BoundTree\BoundPattern.cs (3)
14
/// <see cref="
BoundNegatedPattern
"/>s, and returns true if the original pattern is a
22
if (innerPattern is
BoundNegatedPattern
{ IsUnionMatching: true })
33
while (innerPattern is
BoundNegatedPattern
negatedPattern)
FlowAnalysis\AbstractFlowPass.cs (4)
928
BoundDeclarationPattern or BoundConstantPattern or
BoundNegatedPattern
or BoundBinaryPattern or
944
pattern is
BoundNegatedPattern
{ IsUnionMatching: true } &&
1043
case
BoundNegatedPattern
negated:
1084
case
BoundNegatedPattern
negated:
FlowAnalysis\DefiniteAssignment.cs (2)
2045
var
pat = (
BoundNegatedPattern
)pattern;
FlowAnalysis\NullableWalker_Patterns.cs (2)
106
public override BoundNode VisitNegatedPattern(
BoundNegatedPattern
node)
220
case
BoundNegatedPattern
p:
FlowAnalysis\VariablesDeclaredWalker.cs (1)
110
case
BoundNegatedPattern
negatedPattern:
Generated\BoundNodes.xml.Generated.cs (9)
8712
public
BoundNegatedPattern
Update(BoundPattern negated, bool isUnionMatching, TypeSymbol inputType, TypeSymbol narrowedType)
8716
var
result = new BoundNegatedPattern(this.Syntax, negated, isUnionMatching, inputType, narrowedType, this.HasErrors);
9548
return VisitNegatedPattern((
BoundNegatedPattern
)node, arg);
9804
public virtual R VisitNegatedPattern(
BoundNegatedPattern
node, A arg) => this.DefaultVisit(node, arg);
10045
public virtual BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node) => this.DefaultVisit(node);
11050
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
12627
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
15311
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
17586
public override TreeDumperNode VisitNegatedPattern(
BoundNegatedPattern
node, object? arg) => new TreeDumperNode("negatedPattern", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
236
return CreateBoundNegatedPatternOperation((
BoundNegatedPattern
)boundNode);
2698
private IOperation CreateBoundNegatedPatternOperation(
BoundNegatedPattern
boundNegatedPattern)