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