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)
8524
var result = new
BoundNegatedPattern
(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
33 references to BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder_Patterns.cs (2)
82
case
BoundNegatedPattern
_:
120
case
BoundNegatedPattern
_:
Binder\DecisionDagBuilder.cs (2)
354
case
BoundNegatedPattern
neg:
682
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:
FlowAnalysis\VariablesDeclaredWalker.cs (1)
110
case
BoundNegatedPattern
negatedPattern:
Generated\BoundNodes.xml.Generated.cs (9)
8520
public
BoundNegatedPattern
Update(BoundPattern negated, TypeSymbol inputType, TypeSymbol narrowedType)
8524
var
result = new BoundNegatedPattern(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
9321
return VisitNegatedPattern((
BoundNegatedPattern
)node, arg);
9571
public virtual R VisitNegatedPattern(
BoundNegatedPattern
node, A arg) => this.DefaultVisit(node, arg);
9807
public virtual BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node) => this.DefaultVisit(node);
10791
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
12337
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
14987
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
17201
public override TreeDumperNode VisitNegatedPattern(
BoundNegatedPattern
node, object? arg) => new TreeDumperNode("negatedPattern", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
237
return CreateBoundNegatedPatternOperation((
BoundNegatedPattern
)boundNode);
2623
private IOperation CreateBoundNegatedPatternOperation(
BoundNegatedPattern
boundNegatedPattern)