6 instantiations of BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Patterns.cs (1)
2168
return new
BoundNegatedPattern
(node, subPattern, inputType: inputType, narrowedType: inputType, hasErrors);
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
440
var negated = new
BoundNegatedPattern
(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType);
1010
var result = new
BoundNegatedPattern
(node.Syntax, node, node.InputType, narrowedType: node.InputType);
1170
initialCheck = new
BoundNegatedPattern
(node.Syntax, nullCheck, node.InputType, narrowedType: node.InputType);
Binder\UnionMatchingRewriter.cs (1)
502
new
BoundNegatedPattern
(toNegate.Syntax, toNegate, toNegate.InputType, toNegate.InputType).MakeCompilerGenerated(),
Generated\BoundNodes.xml.Generated.cs (1)
8699
var result = new
BoundNegatedPattern
(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
34 references to BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Patterns.cs (2)
124
case
BoundNegatedPattern
_:
162
case
BoundNegatedPattern
_:
Binder\DecisionDagBuilder_CheckOrReachability.cs (7)
440
var
negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType);
879
or
BoundNegatedPattern
, $"This visitor doesn't support pattern {node} yet.");
972
if (pattern is
BoundNegatedPattern
{ Negated: BoundDiscardPattern })
989
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
1005
if (node is
BoundNegatedPattern
{ Negated: var negated })
1010
var
result = new BoundNegatedPattern(node.Syntax, node, node.InputType, narrowedType: node.InputType);
1077
if (pattern is
BoundNegatedPattern
negatedPattern)
Binder\DecisionDagBuilder.cs (2)
410
case
BoundNegatedPattern
neg:
1105
private Tests MakeTestsAndBindingsForNegatedPattern(TestInputOutputInfo input,
BoundNegatedPattern
neg, ArrayBuilder<BoundPatternBinding> bindings)
Binder\UnionMatchingRewriter.cs (1)
197
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
BoundTree\BoundNode_Source.cs (1)
363
case
BoundNegatedPattern
negatedPattern:
BoundTree\BoundPattern.cs (2)
14
/// <see cref="
BoundNegatedPattern
"/>s, and returns true if the original pattern is a
22
while (innerPattern is
BoundNegatedPattern
negatedPattern)
FlowAnalysis\AbstractFlowPass.cs (3)
928
BoundDeclarationPattern or BoundConstantPattern or
BoundNegatedPattern
or BoundBinaryPattern or
995
case
BoundNegatedPattern
negated:
1036
case
BoundNegatedPattern
negated:
FlowAnalysis\DefiniteAssignment.cs (2)
2045
var
pat = (
BoundNegatedPattern
)pattern;
FlowAnalysis\NullableWalker_Patterns.cs (2)
108
public override BoundNode VisitNegatedPattern(
BoundNegatedPattern
node)
224
case
BoundNegatedPattern
p:
FlowAnalysis\VariablesDeclaredWalker.cs (1)
110
case
BoundNegatedPattern
negatedPattern:
Generated\BoundNodes.xml.Generated.cs (9)
8695
public
BoundNegatedPattern
Update(BoundPattern negated, TypeSymbol inputType, TypeSymbol narrowedType)
8699
var
result = new BoundNegatedPattern(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
9531
return VisitNegatedPattern((
BoundNegatedPattern
)node, arg);
9787
public virtual R VisitNegatedPattern(
BoundNegatedPattern
node, A arg) => this.DefaultVisit(node, arg);
10028
public virtual BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node) => this.DefaultVisit(node);
11047
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
12629
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
15320
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
17598
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)