7 instantiations of DeconstructionVariable
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Deconstruct.cs (4)
408
variables[i] = new
DeconstructionVariable
(errorLocal, errorLocal.Syntax);
415
variables[i] = new
DeconstructionVariable
(pending.FailInference(this, diagnostics), pending.Syntax);
812
return new
DeconstructionVariable
(BindDeconstructionVariable(declTypeWithAnnotations, single, syntax, diagnostics), syntax);
834
return new
DeconstructionVariable
(BindDiscardExpression(syntax, declTypeWithAnnotations), 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));
24 references to DeconstructionVariable
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Deconstruct.cs (17)
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,
349
private void SetInferredTypes(ArrayBuilder<
DeconstructionVariable
> variables, ImmutableArray<TypeSymbol> foundTypes, BindingDiagnosticBag diagnostics)
391
private void FailRemainingInferences(ArrayBuilder<
DeconstructionVariable
> variables, BindingDiagnosticBag diagnostics)
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)
545
private BoundTupleExpression DeconstructionVariablesAsTuple(CSharpSyntaxNode syntax, ArrayBuilder<
DeconstructionVariable
> variables,
618
ArrayBuilder<
DeconstructionVariable
>? variablesOpt = null)
732
private
DeconstructionVariable
BindDeconstructionVariables(
776
var builder = ArrayBuilder<
DeconstructionVariable
>.GetInstance(component.Arguments.Count);
801
private
DeconstructionVariable
BindDeconstructionVariables(
839
var builder = ArrayBuilder<
DeconstructionVariable
>.GetInstance();
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (7)
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)
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);