7 instantiations of DeconstructionVariable
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Deconstruct.cs (4)
408variables[i] = new DeconstructionVariable(errorLocal, errorLocal.Syntax); 415variables[i] = new DeconstructionVariable(pending.FailInference(this, diagnostics), pending.Syntax); 812return new DeconstructionVariable(BindDeconstructionVariable(declTypeWithAnnotations, single, syntax, diagnostics), syntax); 834return new DeconstructionVariable(BindDiscardExpression(syntax, declTypeWithAnnotations), syntax);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (3)
452assignmentTargets.Add(new Binder.DeconstructionVariable(variable, variable.Syntax)); 458assignmentTargets.Add(new Binder.DeconstructionVariable(GetAssignmentTargetsAndSideEffects(tuple, temps, effects), tuple.Syntax)); 465assignmentTargets.Add(new Binder.DeconstructionVariable(temp, variable.Syntax));
24 references to DeconstructionVariable
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Deconstruct.cs (17)
95DeconstructionVariable locals = BindDeconstructionVariables(left, diagnostics, ref declaration, ref expression); 106DeconstructionVariable.FreeDeconstructionVariables(locals.NestedVariables); 116ArrayBuilder<DeconstructionVariable> checkedVariables, 208private BoundExpression FixTupleLiteral(ArrayBuilder<DeconstructionVariable> checkedVariables, BoundExpression boundRHS, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) 247ArrayBuilder<DeconstructionVariable> variables, 349private void SetInferredTypes(ArrayBuilder<DeconstructionVariable> variables, ImmutableArray<TypeSymbol> foundTypes, BindingDiagnosticBag diagnostics) 391private void FailRemainingInferences(ArrayBuilder<DeconstructionVariable> variables, BindingDiagnosticBag diagnostics) 433internal readonly ArrayBuilder<DeconstructionVariable>? NestedVariables; 443internal DeconstructionVariable(ArrayBuilder<DeconstructionVariable> variables, SyntaxNode syntax) 450internal static void FreeDeconstructionVariables(ArrayBuilder<DeconstructionVariable> variables) 471private TypeSymbol? MakeMergedTupleType(ArrayBuilder<DeconstructionVariable> lhsVariables, BoundTupleLiteral rhsLiteral, CSharpSyntaxNode syntax, BindingDiagnosticBag? diagnostics) 545private BoundTupleExpression DeconstructionVariablesAsTuple(CSharpSyntaxNode syntax, ArrayBuilder<DeconstructionVariable> variables, 618ArrayBuilder<DeconstructionVariable>? variablesOpt = null) 732private DeconstructionVariable BindDeconstructionVariables( 776var builder = ArrayBuilder<DeconstructionVariable>.GetInstance(component.Arguments.Count); 801private DeconstructionVariable BindDeconstructionVariables( 839var builder = ArrayBuilder<DeconstructionVariable>.GetInstance();
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (7)
41ArrayBuilder<Binder.DeconstructionVariable> lhsTargets = GetAssignmentTargetsAndSideEffects(left, lhsTemps, lhsEffects); 44Binder.DeconstructionVariable.FreeDeconstructionVariables(lhsTargets); 56ArrayBuilder<Binder.DeconstructionVariable> lhsTargets, 152static bool canReorderTargetAssignments(ArrayBuilder<Binder.DeconstructionVariable> targets, ref PooledHashSet<Symbol>? visitedSymbols) 211ArrayBuilder<Binder.DeconstructionVariable> leftTargets, 443private ArrayBuilder<Binder.DeconstructionVariable> GetAssignmentTargetsAndSideEffects(BoundTupleExpression variables, ArrayBuilder<LocalSymbol> temps, ArrayBuilder<BoundExpression> effects) 445var assignmentTargets = ArrayBuilder<Binder.DeconstructionVariable>.GetInstance(variables.Arguments.Length);