5 instantiations of BoundDeconstructValuePlaceholder
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Deconstruct.cs (1)
277
var inputPlaceholder = new
BoundDeconstructValuePlaceholder
(syntax, variableSymbol: null, isDiscardExpression: false, type);
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();
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)
545
var result = new
BoundDeconstructValuePlaceholder
(this.Syntax, variableSymbol, isDiscardExpression, type, this.HasErrors);
45 references to BoundDeconstructValuePlaceholder
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder.ValueChecks.cs (2)
2747
if (argument is
BoundDeconstructValuePlaceholder
{ VariableSymbol: not null } or BoundLocal { DeclarationKind: not BoundLocalDeclarationKind.None })
3129
BoundDeconstructValuePlaceholder
p => p.VariableSymbol,
Binder\Binder_Deconstruct.cs (6)
93
BoundDeconstructValuePlaceholder
? rightPlaceholder = null)
277
var
inputPlaceholder = new BoundDeconstructValuePlaceholder(syntax, variableSymbol: null, isDiscardExpression: false, type);
279
inputPlaceholder, rightSyntax, diagnostics, outPlaceholders: out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders, out _, variables);
618
out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders,
627
outPlaceholders = default(ImmutableArray<
BoundDeconstructValuePlaceholder
>);
718
out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders, BoundExpression childNode)
Binder\Binder_Patterns.cs (3)
1721
deconstructDiagnostics, outPlaceholders: out ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders,
1786
ImmutableArray<
BoundDeconstructValuePlaceholder
> outPlaceholders,
2151
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)
1196
var
arg = (
BoundDeconstructValuePlaceholder
)methodInvocationInfo.ArgsOpt[i + offset];
Binder\Semantics\Conversions\Conversion.cs (4)
1319
internal DeconstructMethodInfo(BoundExpression invocation,
BoundDeconstructValuePlaceholder
inputPlaceholder,
1320
ImmutableArray<
BoundDeconstructValuePlaceholder
> outputPlaceholders)
1327
internal readonly
BoundDeconstructValuePlaceholder
InputPlaceholder;
1328
internal readonly ImmutableArray<
BoundDeconstructValuePlaceholder
> OutputPlaceholders;
BoundTree\BoundExpressionExtensions.cs (1)
284
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)
3692
public override BoundNode VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (1)
13740
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (15)
541
public
BoundDeconstructValuePlaceholder
Update(Symbol? variableSymbol, bool isDiscardExpression, TypeSymbol type)
545
var
result = new BoundDeconstructValuePlaceholder(this.Syntax, variableSymbol, isDiscardExpression, type, this.HasErrors);
4125
public BoundForEachDeconstructStep(SyntaxNode syntax, BoundDeconstructionAssignmentOperator deconstructionAssignment,
BoundDeconstructValuePlaceholder
targetPlaceholder, bool hasErrors = false)
4137
public
BoundDeconstructValuePlaceholder
TargetPlaceholder { get; }
4142
public BoundForEachDeconstructStep Update(BoundDeconstructionAssignmentOperator deconstructionAssignment,
BoundDeconstructValuePlaceholder
targetPlaceholder)
9088
return VisitDeconstructValuePlaceholder((
BoundDeconstructValuePlaceholder
)node, arg);
9563
public virtual R VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9804
public virtual BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node) => this.DefaultVisit(node);
10065
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node) => null;
11137
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
11785
BoundDeconstructValuePlaceholder
targetPlaceholder = (
BoundDeconstructValuePlaceholder
)this.Visit(node.TargetPlaceholder);
12767
public override BoundNode? VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
12770
BoundDeconstructValuePlaceholder
updatedNode;
15521
public override TreeDumperNode VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node, object? arg) => new TreeDumperNode("deconstructValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (1)
480
public override BoundNode VisitDeconstructValuePlaceholder(
BoundDeconstructValuePlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
389
foreach (
var
outputPlaceholder in outputPlaceholders)
404
foreach (
var
outputPlaceholder in outputPlaceholders)
Operations\CSharpOperationFactory.cs (2)
37
return CreateBoundDeconstructValuePlaceholderOperation((
BoundDeconstructValuePlaceholder
)boundNode);
427
private IPlaceholderOperation CreateBoundDeconstructValuePlaceholderOperation(
BoundDeconstructValuePlaceholder
boundDeconstructValuePlaceholder)