5 instantiations of BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Patterns.cs (1)
2433return new BoundNegatedPattern(node, subPattern, inputType: inputType, narrowedType: inputType, hasErrors);
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
370var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType); 940var result = new BoundNegatedPattern(node.Syntax, node, node.InputType, narrowedType: node.InputType); 1100initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, node.InputType, narrowedType: node.InputType);
Generated\BoundNodes.xml.Generated.cs (1)
8714var result = new BoundNegatedPattern(this.Syntax, negated, inputType, narrowedType, this.HasErrors);
34 references to BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Patterns.cs (2)
508case BoundNegatedPattern _: 546case BoundNegatedPattern _:
Binder\DecisionDagBuilder.cs (2)
402case BoundNegatedPattern neg: 1097private Tests MakeTestsAndBindingsForNegatedPattern(TestInputOutputInfo input, BoundNegatedPattern neg, ArrayBuilder<BoundPatternBinding> bindings)
Binder\DecisionDagBuilder_CheckOrReachability.cs (7)
370var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, pattern.InputType, narrowedType: pattern.InputType); 809or BoundNegatedPattern, $"This visitor doesn't support pattern {node} yet."); 902if (pattern is BoundNegatedPattern { Negated: BoundDiscardPattern }) 919public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node) 935if (node is BoundNegatedPattern { Negated: var negated }) 940var result = new BoundNegatedPattern(node.Syntax, node, node.InputType, narrowedType: node.InputType); 1007if (pattern is BoundNegatedPattern negatedPattern)
Binder\UnionMatchingRewriter.cs (1)
196public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node)
BoundTree\BoundNode_Source.cs (1)
363case BoundNegatedPattern negatedPattern:
BoundTree\BoundPattern.cs (2)
14/// <see cref="BoundNegatedPattern"/>s, and returns true if the original pattern is a 22while (innerPattern is BoundNegatedPattern negatedPattern)
FlowAnalysis\AbstractFlowPass.cs (3)
928BoundDeclarationPattern or BoundConstantPattern or BoundNegatedPattern or BoundBinaryPattern or 995case BoundNegatedPattern negated: 1036case BoundNegatedPattern negated:
FlowAnalysis\DefiniteAssignment.cs (2)
2045var pat = (BoundNegatedPattern)pattern;
FlowAnalysis\NullableWalker_Patterns.cs (2)
107public override BoundNode VisitNegatedPattern(BoundNegatedPattern node) 223case BoundNegatedPattern p:
FlowAnalysis\VariablesDeclaredWalker.cs (1)
110case BoundNegatedPattern negatedPattern:
Generated\BoundNodes.xml.Generated.cs (9)
8710public BoundNegatedPattern Update(BoundPattern negated, TypeSymbol inputType, TypeSymbol narrowedType) 8714var result = new BoundNegatedPattern(this.Syntax, negated, inputType, narrowedType, this.HasErrors); 9546return VisitNegatedPattern((BoundNegatedPattern)node, arg); 9802public virtual R VisitNegatedPattern(BoundNegatedPattern node, A arg) => this.DefaultVisit(node, arg); 10043public virtual BoundNode? VisitNegatedPattern(BoundNegatedPattern node) => this.DefaultVisit(node); 11048public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node) 12625public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node) 15309public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node) 17584public override TreeDumperNode VisitNegatedPattern(BoundNegatedPattern node, object? arg) => new TreeDumperNode("negatedPattern", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
236return CreateBoundNegatedPatternOperation((BoundNegatedPattern)boundNode); 2698private IOperation CreateBoundNegatedPatternOperation(BoundNegatedPattern boundNegatedPattern)