Base:
property
Arguments
Microsoft.CodeAnalysis.CSharp.BoundObjectCreationExpressionBase.Arguments
1 write to Arguments
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6352this.Arguments = arguments;
55 references to Arguments
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder.ValueChecks.cs (2)
4290objectCreation.Arguments, 5032objectCreation.Arguments,
Binder\Binder_Expressions.cs (2)
6965return creation.Update(creation.Constructor, creation.ConstructorsGroup, creation.Arguments, creation.ArgumentNamesOpt, 9246else if (convertedIndex is BoundObjectCreationExpression { Constructor: MethodSymbol constructor, Arguments: { Length: 2 } arguments, ArgsToParamsOpt: { IsDefaultOrEmpty: true }, InitializerExpressionOpt: null } &&
BoundTree\Expression.cs (1)
29ImmutableArray<BoundNode> IBoundInvalidNode.InvalidNodeChildren => CSharpOperationFactory.CreateInvalidChildrenFromArgumentsExpression(receiverOpt: null, Arguments, InitializerExpressionOpt);
CodeGen\EmitExpression.cs (16)
2278int fixedArgCount = objCreation.Arguments.Length - 1; 2279int varArgCount = ((BoundArgListOperator)objCreation.Arguments[fixedArgCount]).Arguments.Length; 2286stack -= objCreation.Arguments.Length; 2434foreach (var arg in expression.Arguments) 2449EmitArguments(expression.Arguments, constructor.Parameters, expression.ArgumentRefKindsOpt); 2456constructor.IsVararg ? (BoundArgListOperator)expression.Arguments[expression.Arguments.Length - 1] : null); 2464int argumentsLength = expression.Arguments.Length; 2470TryEmitOptimizedReadonlySpanCreation((NamedTypeSymbol)expression.Type, expression.Arguments[0], used, inPlaceTarget, out avoidInPlace, 2471start: argumentsLength == 3 ? expression.Arguments[1] : null, 2472length: argumentsLength == 3 ? expression.Arguments[2] : null); 2620if (objCreation.Arguments.Length > 0 && objCreation.Arguments[0].Kind == BoundKind.ConvertedStackAllocExpression) 2707EmitArguments(objCreation.Arguments, constructor.Parameters, objCreation.ArgumentRefKindsOpt); 2713constructor.IsVararg ? (BoundArgListOperator)objCreation.Arguments[objCreation.Arguments.Length - 1] : null);
CodeGen\Optimizer.cs (2)
1319var rewrittenArguments = VisitArguments(node.Arguments, constructor.Parameters, node.ArgumentRefKindsOpt); 2143ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments);
FlowAnalysis\AbstractFlowPass.cs (1)
2063VisitArguments(node.Arguments, node.ArgumentRefKindsOpt, node.Constructor);
Generated\BoundNodes.xml.Generated.cs (5)
6380if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(constructor, this.Constructor) || constructorsGroup != this.ConstructorsGroup || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || constantValueOpt != this.ConstantValueOpt || initializerExpressionOpt != this.InitializerExpressionOpt || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10483this.VisitList(node.Arguments); 11766ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 14007ImmutableArray<BoundExpression> arguments = this.VisitList(node.Arguments); 16446new TreeDumperNode("arguments", null, from x in node.Arguments select Visit(x, null)),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (4)
1056(node.Arguments.Length == 0 && !node.Type.IsStructType()) || 1063var args = _bound.Convert(_IEnumerableType.Construct(ExpressionType), Expressions(node.Arguments)); 1064if (node.Type.IsAnonymousType && node.Arguments.Length != 0) 1068for (int i = 0; i < node.Arguments.Length; i++)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
522VisitCall(node.Constructor, null, node.Arguments, node.ArgumentRefKindsOpt, node.ArgumentNamesOpt, node.DefaultArguments, node);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
547=> InstrumentCall(base.InstrumentObjectCreationExpression(original, rewritten), original.Arguments, original.ArgumentRefKindsOpt);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
616int count = loweredInput.Arguments.Length; 620var newArguments = ArrayBuilder<BoundExpression>.GetInstance(loweredInput.Arguments.Length); 625var expr = loweredInput.Arguments[i];
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
909return objCreation.Arguments.Length == 1 && ReadIsSideeffecting(objCreation.Arguments[0]);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
1002case BoundObjectCreationExpression { Arguments: { Length: 1 } args }:
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
729else if (unloweredExpr is BoundObjectCreationExpression { Constructor: MethodSymbol constructor, Arguments: { Length: 2 } arguments, ArgsToParamsOpt: { IsDefaultOrEmpty: true }, InitializerExpressionOpt: null } &&
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
48node.Arguments,
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
244Value: BoundObjectCreationExpression { Constructor: var objectCreationConstructor, Arguments: [BoundLocal constructorLocal] }
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
243Debug.Assert(((BoundObjectCreationExpression)data.Construction).Arguments.All(
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (3)
205case BoundObjectCreationExpression { Arguments: { Length: 0 }, Type: { } eType } _ when eType.IsNullableType(): 207case BoundObjectCreationExpression { Arguments: { Length: 1 }, Type: { } eType } creation when eType.IsNullableType(): 210creation.Arguments[0], effects, temps, enclosingConversionWasExplicit: true);
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (1)
101currentCreation.Arguments,
Lowering\MethodToClassRewriter.cs (1)
570rewritten.Arguments,
Lowering\SpillSequenceSpiller.cs (3)
486Debug.Assert(objectCreationExpression.Arguments.Length == 1); 489[Spill(builder, objectCreationExpression.Arguments[0], argRefKinds.IsDefault ? RefKind.None : argRefKinds[0])], 1416var arguments = this.VisitExpressionList(ref builder, node.Arguments, node.ArgumentRefKindsOpt);
Operations\CSharpOperationFactory.cs (1)
722boundObjectCreationExpression.Arguments,
Operations\CSharpOperationFactory_Methods.cs (1)
221objectCreation.Arguments,