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