3 instantiations of BoundDeconstructValuePlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Deconstruct.cs (1)
276
var inputPlaceholder = new
BoundDeconstructValuePlaceholder
(syntax, variableSymbol: null, isDiscardExpression: false, type);
BoundTree\OutDeconstructVarPendingInference.cs (1)
18
Placeholder = new
BoundDeconstructValuePlaceholder
(this.Syntax, variableSymbol: VariableSymbol, isDiscardExpression: IsDiscardExpression, type.Type, hasErrors: this.HasErrors || !success);
Generated\BoundNodes.xml.Generated.cs (1)
542
var result = new
BoundDeconstructValuePlaceholder
(this.Syntax, variableSymbol, isDiscardExpression, type, this.HasErrors);
46 references to BoundDeconstructValuePlaceholder
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder.ValueChecks.cs (2)
2461
if (argument is
BoundDeconstructValuePlaceholder
{ VariableSymbol: not null } or BoundLocal { DeclarationKind: not BoundLocalDeclarationKind.None })
2838
BoundDeconstructValuePlaceholder
p => p.VariableSymbol,
Binder\Binder_Deconstruct.cs (6)
93
BoundDeconstructValuePlaceholder
? rightPlaceholder = null)
276
var
inputPlaceholder = new BoundDeconstructValuePlaceholder(syntax, variableSymbol: null, isDiscardExpression: false, type);
278
inputPlaceholder, rightSyntax, diagnostics, outPlaceholders: out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders, out _, variables);
616
out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders,
625
outPlaceholders = default(ImmutableArray<
BoundDeconstructValuePlaceholder
>);
716
out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders, BoundExpression childNode)
Binder\Binder_Patterns.cs (3)
1002
deconstructDiagnostics, outPlaceholders: out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders,
1052
ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders,
1398
outPlaceholders: out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders,
Binder\ForEachLoopBinder.cs (2)
200
var
valuePlaceholder = new BoundDeconstructValuePlaceholder(_syntax.Expression, variableSymbol: null, isDiscardExpression: false, inferredType.Type ?? CreateErrorType("var"));
385
var
valuePlaceholder = new BoundDeconstructValuePlaceholder(_syntax.Expression, variableSymbol: null, isDiscardExpression: false, iterationVariableType.Type).MakeCompilerGenerated();
Binder\RefSafetyAnalysis.cs (2)
1021
var
arg = (
BoundDeconstructValuePlaceholder
)invocation.Arguments[i + offset];
Binder\Semantics\Conversions\Conversion.cs (4)
1253
internal DeconstructMethodInfo(BoundExpression invocation,
BoundDeconstructValuePlaceholder
inputPlaceholder,
1254
ImmutableArray<
BoundDeconstructValuePlaceholder
> outputPlaceholders)
1261
internal readonly
BoundDeconstructValuePlaceholder
InputPlaceholder;
1262
internal readonly ImmutableArray<
BoundDeconstructValuePlaceholder
> OutputPlaceholders;
BoundTree\BoundExpressionExtensions.cs (1)
274
BoundDeconstructValuePlaceholder
{ IsDiscardExpression: true } => true,
BoundTree\OutDeconstructVarPendingInference.cs (3)
12
public
BoundDeconstructValuePlaceholder
? Placeholder;
14
public
BoundDeconstructValuePlaceholder
SetInferredTypeWithAnnotations(TypeWithAnnotations type, bool success)
22
public
BoundDeconstructValuePlaceholder
FailInference(Binder binder)
FlowAnalysis\AbstractFlowPass.cs (1)
3669
public override BoundNode VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (1)
12545
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (15)
538
public
BoundDeconstructValuePlaceholder
Update(Symbol? variableSymbol, bool isDiscardExpression, TypeSymbol type)
542
var
result = new BoundDeconstructValuePlaceholder(this.Syntax, variableSymbol, isDiscardExpression, type, this.HasErrors);
4071
public BoundForEachDeconstructStep(SyntaxNode syntax, BoundDeconstructionAssignmentOperator deconstructionAssignment,
BoundDeconstructValuePlaceholder
targetPlaceholder, bool hasErrors = false)
4083
public
BoundDeconstructValuePlaceholder
TargetPlaceholder { get; }
4088
public BoundForEachDeconstructStep Update(BoundDeconstructionAssignmentOperator deconstructionAssignment,
BoundDeconstructValuePlaceholder
targetPlaceholder)
8865
return VisitDeconstructValuePlaceholder((
BoundDeconstructValuePlaceholder
)node, arg);
9330
public virtual R VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9566
public virtual BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node) => this.DefaultVisit(node);
9822
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node) => null;
10856
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
11493
BoundDeconstructValuePlaceholder
targetPlaceholder = (
BoundDeconstructValuePlaceholder
)this.Visit(node.TargetPlaceholder);
12449
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
12452
BoundDeconstructValuePlaceholder
updatedNode;
15177
public override TreeDumperNode VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node, object? arg) => new TreeDumperNode("deconstructValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
470
public override BoundNode VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
1215
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
388
foreach (
var
outputPlaceholder in outputPlaceholders)
403
foreach (
var
outputPlaceholder in outputPlaceholders)
Operations\CSharpOperationFactory.cs (2)
38
return CreateBoundDeconstructValuePlaceholderOperation((
BoundDeconstructValuePlaceholder
)boundNode);
420
private IPlaceholderOperation CreateBoundDeconstructValuePlaceholderOperation(
BoundDeconstructValuePlaceholder
boundDeconstructValuePlaceholder)