3 instantiations of BoundDeconstructValuePlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Deconstruct.cs (1)
276var inputPlaceholder = new BoundDeconstructValuePlaceholder(syntax, variableSymbol: null, isDiscardExpression: false, type);
BoundTree\OutDeconstructVarPendingInference.cs (1)
18Placeholder = new BoundDeconstructValuePlaceholder(this.Syntax, variableSymbol: VariableSymbol, isDiscardExpression: IsDiscardExpression, type.Type, hasErrors: this.HasErrors || !success);
Generated\BoundNodes.xml.Generated.cs (1)
560var result = new BoundDeconstructValuePlaceholder(this.Syntax, variableSymbol, isDiscardExpression, type, this.HasErrors);
46 references to BoundDeconstructValuePlaceholder
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder.ValueChecks.cs (2)
2347if (argument is BoundDeconstructValuePlaceholder { VariableSymbol: not null } or BoundLocal { DeclarationKind: not BoundLocalDeclarationKind.None }) 2724BoundDeconstructValuePlaceholder p => p.VariableSymbol,
Binder\Binder_Deconstruct.cs (6)
93BoundDeconstructValuePlaceholder? rightPlaceholder = null) 276var inputPlaceholder = new BoundDeconstructValuePlaceholder(syntax, variableSymbol: null, isDiscardExpression: false, type); 278inputPlaceholder, rightSyntax, diagnostics, outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, out _, variables); 616out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 625outPlaceholders = default(ImmutableArray<BoundDeconstructValuePlaceholder>); 715out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, BoundExpression childNode)
Binder\Binder_Patterns.cs (3)
1002deconstructDiagnostics, outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1052ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders, 1398outPlaceholders: out ImmutableArray<BoundDeconstructValuePlaceholder> outPlaceholders,
Binder\ForEachLoopBinder.cs (2)
200var valuePlaceholder = new BoundDeconstructValuePlaceholder(_syntax.Expression, variableSymbol: null, isDiscardExpression: false, inferredType.Type ?? CreateErrorType("var")); 375var valuePlaceholder = new BoundDeconstructValuePlaceholder(_syntax.Expression, variableSymbol: null, isDiscardExpression: false, iterationVariableType.Type).MakeCompilerGenerated();
Binder\RefSafetyAnalysis.cs (2)
965var arg = (BoundDeconstructValuePlaceholder)invocation.Arguments[i + offset];
Binder\Semantics\Conversions\Conversion.cs (4)
1235internal DeconstructMethodInfo(BoundExpression invocation, BoundDeconstructValuePlaceholder inputPlaceholder, 1236ImmutableArray<BoundDeconstructValuePlaceholder> outputPlaceholders) 1243internal readonly BoundDeconstructValuePlaceholder InputPlaceholder; 1244internal readonly ImmutableArray<BoundDeconstructValuePlaceholder> OutputPlaceholders;
BoundTree\BoundExpressionExtensions.cs (1)
274BoundDeconstructValuePlaceholder { IsDiscardExpression: true } => true,
BoundTree\OutDeconstructVarPendingInference.cs (3)
12public BoundDeconstructValuePlaceholder? Placeholder; 14public BoundDeconstructValuePlaceholder SetInferredTypeWithAnnotations(TypeWithAnnotations type, bool success) 22public BoundDeconstructValuePlaceholder FailInference(Binder binder)
FlowAnalysis\AbstractFlowPass.cs (1)
3564public override BoundNode VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node)
FlowAnalysis\NullableWalker.cs (1)
11869public override BoundNode? VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node)
Generated\BoundNodes.xml.Generated.cs (15)
556public BoundDeconstructValuePlaceholder Update(Symbol? variableSymbol, bool isDiscardExpression, TypeSymbol type) 560var result = new BoundDeconstructValuePlaceholder(this.Syntax, variableSymbol, isDiscardExpression, type, this.HasErrors); 4087public BoundForEachDeconstructStep(SyntaxNode syntax, BoundDeconstructionAssignmentOperator deconstructionAssignment, BoundDeconstructValuePlaceholder targetPlaceholder, bool hasErrors = false) 4099public BoundDeconstructValuePlaceholder TargetPlaceholder { get; } 4104public BoundForEachDeconstructStep Update(BoundDeconstructionAssignmentOperator deconstructionAssignment, BoundDeconstructValuePlaceholder targetPlaceholder) 8843return VisitDeconstructValuePlaceholder((BoundDeconstructValuePlaceholder)node, arg); 9308public virtual R VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node, A arg) => this.DefaultVisit(node, arg); 9544public virtual BoundNode? VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node) => this.DefaultVisit(node); 9800public override BoundNode? VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node) => null; 10828public override BoundNode? VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node) 11400BoundDeconstructValuePlaceholder targetPlaceholder = (BoundDeconstructValuePlaceholder)this.Visit(node.TargetPlaceholder); 12279public override BoundNode? VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node) 12282BoundDeconstructValuePlaceholder updatedNode; 15008public override TreeDumperNode VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node, object? arg) => new TreeDumperNode("deconstructValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
470public override BoundNode VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node) 1191public override BoundNode? VisitDeconstructValuePlaceholder(BoundDeconstructValuePlaceholder node)
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
388foreach (var outputPlaceholder in outputPlaceholders) 403foreach (var outputPlaceholder in outputPlaceholders)
Operations\CSharpOperationFactory.cs (2)
38return CreateBoundDeconstructValuePlaceholderOperation((BoundDeconstructValuePlaceholder)boundNode); 420private IPlaceholderOperation CreateBoundDeconstructValuePlaceholderOperation(BoundDeconstructValuePlaceholder boundDeconstructValuePlaceholder)