5 instantiations of BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Patterns.cs (1)
1739
return new
BoundNegatedPattern
(node, subPattern, inputType: inputType, narrowedType: inputType, hasErrors);
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
362
var negated = new
BoundNegatedPattern
(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType);
931
var result = new
BoundNegatedPattern
(node.Syntax, node, node.InputType, narrowedType: node.InputType);
1091
initialCheck = new
BoundNegatedPattern
(node.Syntax, nullCheck, node.InputType, narrowedType: node.InputType);
Generated\BoundNodes.xml.Generated.cs (1)
8516
var result = new
BoundNegatedPattern
(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
32 references to BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Patterns.cs (2)
82
case
BoundNegatedPattern
_:
120
case
BoundNegatedPattern
_:
Binder\DecisionDagBuilder.cs (2)
308
case
BoundNegatedPattern
neg:
636
private Tests MakeTestsAndBindingsForNegatedPattern(BoundDagTemp input,
BoundNegatedPattern
neg, ArrayBuilder<BoundPatternBinding> bindings)
Binder\DecisionDagBuilder_CheckOrReachability.cs (7)
362
var
negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType);
800
or
BoundNegatedPattern
, $"This visitor doesn't support pattern {node} yet.");
893
if (pattern is
BoundNegatedPattern
{ Negated: BoundDiscardPattern })
910
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
926
if (node is
BoundNegatedPattern
{ Negated: var negated })
931
var
result = new BoundNegatedPattern(node.Syntax, node, node.InputType, narrowedType: node.InputType);
998
if (pattern is
BoundNegatedPattern
negatedPattern)
BoundTree\BoundNode_Source.cs (1)
363
case
BoundNegatedPattern
negatedPattern:
BoundTree\BoundPattern.cs (2)
11
/// <see cref="
BoundNegatedPattern
"/>s, and returns true if the original pattern is a
18
while (innerPattern is
BoundNegatedPattern
negatedPattern)
FlowAnalysis\AbstractFlowPass.cs (3)
927
BoundDeclarationPattern or BoundConstantPattern or
BoundNegatedPattern
or BoundBinaryPattern or
994
case
BoundNegatedPattern
negated:
1035
case
BoundNegatedPattern
negated:
FlowAnalysis\DefiniteAssignment.cs (2)
2044
var
pat = (
BoundNegatedPattern
)pattern;
FlowAnalysis\NullableWalker_Patterns.cs (2)
106
public override BoundNode VisitNegatedPattern(
BoundNegatedPattern
node)
220
case
BoundNegatedPattern
p:
Generated\BoundNodes.xml.Generated.cs (9)
8512
public
BoundNegatedPattern
Update(BoundPattern negated, TypeSymbol inputType, TypeSymbol narrowedType)
8516
var
result = new BoundNegatedPattern(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
9313
return VisitNegatedPattern((
BoundNegatedPattern
)node, arg);
9563
public virtual R VisitNegatedPattern(
BoundNegatedPattern
node, A arg) => this.DefaultVisit(node, arg);
9799
public virtual BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node) => this.DefaultVisit(node);
10783
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
12329
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
14979
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
17193
public override TreeDumperNode VisitNegatedPattern(
BoundNegatedPattern
node, object? arg) => new TreeDumperNode("negatedPattern", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
237
return CreateBoundNegatedPatternOperation((
BoundNegatedPattern
)boundNode);
2632
private IOperation CreateBoundNegatedPatternOperation(
BoundNegatedPattern
boundNegatedPattern)