1 instantiation of BoundDiscardPattern
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8077var result = new BoundDiscardPattern(this.Syntax, inputType, narrowedType, this.HasErrors);
20 references to BoundDiscardPattern
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Patterns.cs (2)
85case BoundDiscardPattern _: 116case BoundDiscardPattern _:
Binder\DecisionDagBuilder.cs (1)
294case BoundDiscardPattern:
Binder\SwitchBinder_Patterns.cs (1)
250var pattern = new BoundDiscardPattern(node, inputType: SwitchGoverningType, narrowedType: SwitchGoverningType);
FlowAnalysis\AbstractFlowPass.cs (3)
929BoundDeclarationPattern or BoundDiscardPattern or BoundListPattern or BoundSlicePattern); 1020case BoundDiscardPattern: 1066case BoundDiscardPattern:
FlowAnalysis\NullableWalker_Patterns.cs (2)
76public override BoundNode VisitDiscardPattern(BoundDiscardPattern node) 176case BoundDiscardPattern _:
Generated\BoundNodes.xml.Generated.cs (9)
8073public BoundDiscardPattern Update(TypeSymbol inputType, TypeSymbol narrowedType) 8077var result = new BoundDiscardPattern(this.Syntax, inputType, narrowedType, this.HasErrors); 9254return VisitDiscardPattern((BoundDiscardPattern)node, arg); 9515public virtual R VisitDiscardPattern(BoundDiscardPattern node, A arg) => this.DefaultVisit(node, arg); 9751public virtual BoundNode? VisitDiscardPattern(BoundDiscardPattern node) => this.DefaultVisit(node); 10687public override BoundNode? VisitDiscardPattern(BoundDiscardPattern node) => null; 12061public override BoundNode? VisitDiscardPattern(BoundDiscardPattern node) 14719public override BoundNode? VisitDiscardPattern(BoundDiscardPattern node) 16917public override TreeDumperNode VisitDiscardPattern(BoundDiscardPattern node, object? arg) => new TreeDumperNode("discardPattern", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
233return CreateBoundDiscardPatternOperation((BoundDiscardPattern)boundNode); 2842private IOperation CreateBoundDiscardPatternOperation(BoundDiscardPattern boundNode)