5 instantiations of BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Patterns.cs (1)
2433
return new
BoundNegatedPattern
(node, subPattern, inputType: inputType, narrowedType: inputType, hasErrors);
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
370
var negated = new
BoundNegatedPattern
(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType);
940
var result = new
BoundNegatedPattern
(node.Syntax, node, node.InputType, narrowedType: node.InputType);
1100
initialCheck = new
BoundNegatedPattern
(node.Syntax, nullCheck, node.InputType, narrowedType: node.InputType);
Generated\BoundNodes.xml.Generated.cs (1)
8714
var result = new
BoundNegatedPattern
(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
34 references to BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Patterns.cs (2)
508
case
BoundNegatedPattern
_:
546
case
BoundNegatedPattern
_:
Binder\DecisionDagBuilder.cs (2)
402
case
BoundNegatedPattern
neg:
1097
private Tests MakeTestsAndBindingsForNegatedPattern(TestInputOutputInfo input,
BoundNegatedPattern
neg, ArrayBuilder<BoundPatternBinding> bindings)
Binder\DecisionDagBuilder_CheckOrReachability.cs (7)
370
var
negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, 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, node.InputType, narrowedType: node.InputType);
1007
if (pattern is
BoundNegatedPattern
negatedPattern)
Binder\UnionMatchingRewriter.cs (1)
196
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)
107
public override BoundNode VisitNegatedPattern(
BoundNegatedPattern
node)
223
case
BoundNegatedPattern
p:
FlowAnalysis\VariablesDeclaredWalker.cs (1)
110
case
BoundNegatedPattern
negatedPattern:
Generated\BoundNodes.xml.Generated.cs (9)
8710
public
BoundNegatedPattern
Update(BoundPattern negated, TypeSymbol inputType, TypeSymbol narrowedType)
8714
var
result = new BoundNegatedPattern(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
9546
return VisitNegatedPattern((
BoundNegatedPattern
)node, arg);
9802
public virtual R VisitNegatedPattern(
BoundNegatedPattern
node, A arg) => this.DefaultVisit(node, arg);
10043
public virtual BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node) => this.DefaultVisit(node);
11048
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
12625
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
15309
public override BoundNode? VisitNegatedPattern(
BoundNegatedPattern
node)
17584
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)