9 instantiations of DeconstructionVariable
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Deconstruct.cs (6)
362
variables[i] = new
DeconstructionVariable
(SetInferredType(pending, foundTypes[i], diagnostics), variable.Syntax);
408
variables[i] = new
DeconstructionVariable
(errorLocal, errorLocal.Syntax);
415
variables[i] = new
DeconstructionVariable
(pending.FailInference(this, diagnostics), pending.Syntax);
813
return new
DeconstructionVariable
(BindDeconstructionVariable(declTypeWithAnnotations, single, syntax, diagnostics), syntax);
835
return new
DeconstructionVariable
(BindDiscardExpression(syntax, declTypeWithAnnotations), syntax);
845
return new
DeconstructionVariable
(builder, syntax);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (3)
452
assignmentTargets.Add(new Binder.
DeconstructionVariable
(variable, variable.Syntax));
458
assignmentTargets.Add(new Binder.
DeconstructionVariable
(GetAssignmentTargetsAndSideEffects(tuple, temps, effects), tuple.Syntax));
465
assignmentTargets.Add(new Binder.
DeconstructionVariable
(temp, variable.Syntax));
30 references to DeconstructionVariable
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Deconstruct.cs (22)
95
DeconstructionVariable
locals = BindDeconstructionVariables(left, diagnostics, ref declaration, ref expression);
106
DeconstructionVariable
.FreeDeconstructionVariables(locals.NestedVariables);
116
ArrayBuilder<
DeconstructionVariable
> checkedVariables,
208
private BoundExpression FixTupleLiteral(ArrayBuilder<
DeconstructionVariable
> checkedVariables, BoundExpression boundRHS, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics)
247
ArrayBuilder<
DeconstructionVariable
> variables,
298
var
variable = variables[i];
349
private void SetInferredTypes(ArrayBuilder<
DeconstructionVariable
> variables, ImmutableArray<TypeSymbol> foundTypes, BindingDiagnosticBag diagnostics)
354
var
variable = variables[i];
391
private void FailRemainingInferences(ArrayBuilder<
DeconstructionVariable
> variables, BindingDiagnosticBag diagnostics)
396
var
variable = variables[i];
433
internal readonly ArrayBuilder<
DeconstructionVariable
>? NestedVariables;
443
internal DeconstructionVariable(ArrayBuilder<
DeconstructionVariable
> variables, SyntaxNode syntax)
450
internal static void FreeDeconstructionVariables(ArrayBuilder<
DeconstructionVariable
> variables)
471
private TypeSymbol? MakeMergedTupleType(ArrayBuilder<
DeconstructionVariable
> lhsVariables, BoundTupleLiteral rhsLiteral, CSharpSyntaxNode syntax, BindingDiagnosticBag? diagnostics)
485
var
variable = lhsVariables[i];
545
private BoundTupleExpression DeconstructionVariablesAsTuple(CSharpSyntaxNode syntax, ArrayBuilder<
DeconstructionVariable
> variables,
554
foreach (
var
variable in variables)
618
ArrayBuilder<
DeconstructionVariable
>? variablesOpt = null)
733
private
DeconstructionVariable
BindDeconstructionVariables(
777
var builder = ArrayBuilder<
DeconstructionVariable
>.GetInstance(component.Arguments.Count);
802
private
DeconstructionVariable
BindDeconstructionVariables(
840
var builder = ArrayBuilder<
DeconstructionVariable
>.GetInstance();
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (8)
41
ArrayBuilder<Binder.
DeconstructionVariable
> lhsTargets = GetAssignmentTargetsAndSideEffects(left, lhsTemps, lhsEffects);
44
Binder.
DeconstructionVariable
.FreeDeconstructionVariables(lhsTargets);
56
ArrayBuilder<Binder.
DeconstructionVariable
> lhsTargets,
152
static bool canReorderTargetAssignments(ArrayBuilder<Binder.
DeconstructionVariable
> targets, ref PooledHashSet<Symbol>? visitedSymbols)
160
foreach (
var
target in targets)
211
ArrayBuilder<Binder.
DeconstructionVariable
> leftTargets,
443
private ArrayBuilder<Binder.
DeconstructionVariable
> GetAssignmentTargetsAndSideEffects(BoundTupleExpression variables, ArrayBuilder<LocalSymbol> temps, ArrayBuilder<BoundExpression> effects)
445
var assignmentTargets = ArrayBuilder<Binder.
DeconstructionVariable
>.GetInstance(variables.Arguments.Length);