4 instantiations of BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (4)
Binder\DecisionDagBuilder_CheckOrReachability.cs (3)
370var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, isUnionMatching: false, pattern.InputType, narrowedType: pattern.InputType); 940var result = new BoundNegatedPattern(node.Syntax, node, isUnionMatching: false, node.InputType, narrowedType: node.InputType); 1100initialCheck = new BoundNegatedPattern(node.Syntax, nullCheck, isUnionMatching: false, node.InputType, narrowedType: node.InputType);
Generated\BoundNodes.xml.Generated.cs (1)
8716var result = new BoundNegatedPattern(this.Syntax, negated, isUnionMatching, inputType, narrowedType, this.HasErrors);
36 references to BoundNegatedPattern
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Patterns.cs (2)
268case BoundNegatedPattern _: 306case BoundNegatedPattern _:
Binder\DecisionDagBuilder.cs (2)
402case BoundNegatedPattern neg: 1071private Tests MakeTestsAndBindingsForNegatedPattern(TestInputOutputInfo input, BoundNegatedPattern neg, ArrayBuilder<BoundPatternBinding> bindings)
Binder\DecisionDagBuilder_CheckOrReachability.cs (7)
370var negated = new BoundNegatedPattern(pattern.Syntax, negated: pattern, isUnionMatching: false, 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, isUnionMatching: false, node.InputType, narrowedType: node.InputType); 1007if (pattern is BoundNegatedPattern negatedPattern)
Binder\UnionMatchingRewriter.cs (1)
198public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node)
BoundTree\BoundNode_Source.cs (1)
363case BoundNegatedPattern negatedPattern:
BoundTree\BoundPattern.cs (3)
14/// <see cref="BoundNegatedPattern"/>s, and returns true if the original pattern is a 22if (innerPattern is BoundNegatedPattern { IsUnionMatching: true }) 33while (innerPattern is BoundNegatedPattern negatedPattern)
FlowAnalysis\AbstractFlowPass.cs (4)
928BoundDeclarationPattern or BoundConstantPattern or BoundNegatedPattern or BoundBinaryPattern or 944pattern is BoundNegatedPattern { IsUnionMatching: true } && 1043case BoundNegatedPattern negated: 1084case BoundNegatedPattern negated:
FlowAnalysis\DefiniteAssignment.cs (2)
2045var pat = (BoundNegatedPattern)pattern;
FlowAnalysis\NullableWalker_Patterns.cs (2)
106public override BoundNode VisitNegatedPattern(BoundNegatedPattern node) 220case BoundNegatedPattern p:
FlowAnalysis\VariablesDeclaredWalker.cs (1)
110case BoundNegatedPattern negatedPattern:
Generated\BoundNodes.xml.Generated.cs (9)
8712public BoundNegatedPattern Update(BoundPattern negated, bool isUnionMatching, TypeSymbol inputType, TypeSymbol narrowedType) 8716var result = new BoundNegatedPattern(this.Syntax, negated, isUnionMatching, inputType, narrowedType, this.HasErrors); 9548return VisitNegatedPattern((BoundNegatedPattern)node, arg); 9804public virtual R VisitNegatedPattern(BoundNegatedPattern node, A arg) => this.DefaultVisit(node, arg); 10045public virtual BoundNode? VisitNegatedPattern(BoundNegatedPattern node) => this.DefaultVisit(node); 11050public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node) 12627public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node) 15311public override BoundNode? VisitNegatedPattern(BoundNegatedPattern node) 17586public 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)