1 write to Arguments
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (1)
23this.Arguments = new ArrayBuilder<BoundExpression>(32);
101 references to Arguments
Microsoft.CodeAnalysis.CSharp (101)
Binder\Binder_Attributes.cs (3)
191boundConstructorArguments = analyzedArguments.ConstructorArguments.Arguments.SelectAsArray( 239analyzedArguments.ConstructorArguments.Arguments, 248boundConstructorArguments = analyzedArguments.ConstructorArguments.Arguments.ToImmutable();
Binder\Binder_Deconstruct.cs (1)
646analyzedArguments.Arguments.Add(variable);
Binder\Binder_Expressions.cs (41)
3068if (!hadError && isDelegateCreation && origRefKind != RefKind.None && result.Arguments.Count == 1) 3301int argCount = result.Arguments.Count; 3322int argCount = result.Arguments.Count; 3346result.Arguments.Add(boundArgumentExpression); 3389var arguments = analyzedArguments.Arguments; 3627var arguments = analyzedArguments.Arguments; 4977for (int i = 0; i < analyzedArguments.Arguments.Count; i++) 5009BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics); 5011var arguments = analyzedArguments.Arguments.ToImmutable(); 5122arguments.Arguments.ToImmutable(), 5299else if (analyzedArguments.Arguments.Count == 0) 5304else if (analyzedArguments.Names.Count != 0 || analyzedArguments.RefKinds.Count != 0 || analyzedArguments.Arguments.Count != 1) 5307var argSyntax = analyzedArguments.Arguments[0].Syntax; 5309var end = analyzedArguments.Arguments[analyzedArguments.Arguments.Count - 1].Syntax.Span.End; 5324BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ? BindToNaturalType(analyzedArguments.Arguments[0], diagnostics) : null; 5505analyzedArguments.Arguments.AddRange(arguments); 6768BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 6770var arguments = analyzedArguments.Arguments.ToImmutable(); 7009if (analyzedArguments.Arguments.Count > 0) 7011diagnostics.Add(ErrorCode.ERR_BadCtorArgCount, typeNode.Location, interfaceType, analyzedArguments.Arguments.Count); 7053if (analyzedArguments.Arguments.Count > 0) 8196Debug.Assert(extensionMethodArguments.Arguments.Count == 0); 8201extensionMethodArguments.Arguments.Add(receiver); 8202extensionMethodArguments.Arguments.AddRange(originalArguments.Arguments); 9027if (analyzedArguments.Arguments.Count == 1 && 9028tryImplicitConversionToInlineArrayIndex(node, analyzedArguments.Arguments[0], diagnostics, out WellKnownType indexOrRangeWellknownType) is { } convertedIndex) 9336if (arguments.Arguments.Count != rank) 9343BoundExpression[] convertedArguments = new BoundExpression[arguments.Arguments.Count]; 9345for (int i = 0; i < arguments.Arguments.Count; ++i) 9347BoundExpression argument = arguments.Arguments[i]; 9542ArrayBuilder<BoundExpression> arguments = analyzedArguments.Arguments; 9567int numArguments = analyzedArguments.Arguments.Count; 9860var arguments = analyzedArguments.Arguments.ToImmutable(); 9899if (arguments.Arguments.Count != 1) 9904var argument = arguments.Arguments[0]; 10045analyzedArguments.Arguments.Add(intPlaceholder); 10117analyzedArguments.Arguments.Add(startArgumentPlaceholder); 10118analyzedArguments.Arguments.Add(lengthArgumentPlaceholder);
Binder\Binder_Invocation.cs (22)
132analyzedArguments.Arguments.AddRange(args); 270for (int i = 0; i < analyzedArguments.Arguments.Count; ++i) 272BoundExpression argument = analyzedArguments.Arguments[i]; 276analyzedArguments.Arguments[i] = ((OutVariablePendingInference)argument).FailInference(this, diagnostics); 287analyzedArguments.Arguments[i] = GenerateConversionForAssignment(objType, argument, diagnostics); 296analyzedArguments.Arguments[i] = BindToNaturalType(analyzedArguments.Arguments[i], diagnostics); 312ImmutableArray<BoundExpression> arguments = analyzedArguments.Arguments.ToImmutable(); 517Error(diagnostics, ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgumentInDynamicInvocation, arguments.Arguments[i].Syntax); 525var builder = ArrayBuilder<BoundExpression>.GetInstance(arguments.Arguments.Count); 526builder.AddRange(arguments.Arguments); 916if (IsAmbiguousDynamicParamsArgument(resolution.AnalyzedArguments.Arguments, methodResolutionResult, out SyntaxNode argumentSyntax)) 1145foreach (var argument in analyzedArguments.Arguments) 1177return CreateBadCall(node, methodGroup.Name, invokedAsExtensionMethod && analyzedArguments.Arguments.Count > 0 && (object)methodGroup.Receiver == (object)analyzedArguments.Arguments[0] ? null : methodGroup.Receiver, 1202BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 1234analyzedArguments.RefKinds.Count = analyzedArguments.Arguments.Count; 1249analyzedArguments.Arguments[0] = receiverArgument; 1263var args = analyzedArguments.Arguments.ToImmutable(); 2008int argumentCount = analyzedArguments.Arguments.Count; 2010newArguments.AddRange(analyzedArguments.Arguments); 2393var args = analyzedArguments.Arguments.ToImmutable();
Binder\Binder_Patterns.cs (2)
236analyzedArguments.Arguments.Add(argumentPlaceholder); 385analyzedArguments.Arguments.Add(argumentPlaceholder);
Binder\Binder_Query.cs (1)
1043analyzedArguments.Arguments.AddRange(args);
Binder\ForEachLoopBinder.cs (3)
1462Debug.Assert(analyzedArguments.Arguments.Count == 0); 1468analyzedArguments.Arguments, 1478info = new MethodArgumentInfo(result, analyzedArguments.Arguments.ToImmutable(), defaultArguments, expanded);
Binder\Semantics\Conversions\Conversions.cs (1)
422analyzedArguments.Arguments.Add(new BoundParameter(syntax, parameter) { WasCompilerGenerated = true });
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (8)
30this.Arguments.Clear(); 39return Arguments[i]; 96for (int i = 0; i < Arguments.Count; i++) 98var argument = Arguments[i]; 117foreach (var argument in this.Arguments) 139instance.Arguments.AddRange(original.Arguments); 153instance.Arguments.AddRange(arguments);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (11)
974arguments.Arguments.Count, 1018arguments.Arguments.Count, 1796var better = BetterFunctionMember(results[currentBestIndex], results[index], arguments.Arguments, ref useSiteInfo); 1823var better = BetterFunctionMember(results[currentBestIndex], results[index], arguments.Arguments, ref useSiteInfo); 1994var better = BetterFunctionMember(c1Result, c2Result, arguments.Arguments, ref useSiteInfo); 2034results[i] = BetterResult.Left == BetterFunctionMember(results[notBestIdx], results[i], arguments.Arguments, ref useSiteInfo) 4066arguments.Arguments.Count, 4135arguments.Arguments.Count, 4313var args = arguments.Arguments.ToImmutable(); 4403if (arguments.Arguments.Count < paramCount) 4408paramCount = arguments.Arguments.Count;
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (3)
78int argumentCount = arguments.Arguments.Count; 206int length = arguments.Arguments.Count; 352int argumentCount = arguments.Arguments.Count;
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (5)
209Debug.Assert(arguments.Arguments.All(a => a.Display != null)); 769Debug.Assert(arguments.Arguments.Count > 0); 770var instanceArgument = arguments.Arguments[0]; 948int argCount = arguments.Arguments.Count; 1068foreach (var argument in arguments.Arguments)