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)
3065if (!hadError && isDelegateCreation && origRefKind != RefKind.None && result.Arguments.Count == 1) 3298int argCount = result.Arguments.Count; 3319int argCount = result.Arguments.Count; 3343result.Arguments.Add(boundArgumentExpression); 3386var arguments = analyzedArguments.Arguments; 3624var arguments = analyzedArguments.Arguments; 4974for (int i = 0; i < analyzedArguments.Arguments.Count; i++) 5006BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics); 5008var arguments = analyzedArguments.Arguments.ToImmutable(); 5119arguments.Arguments.ToImmutable(), 5296else if (analyzedArguments.Arguments.Count == 0) 5301else if (analyzedArguments.Names.Count != 0 || analyzedArguments.RefKinds.Count != 0 || analyzedArguments.Arguments.Count != 1) 5304var argSyntax = analyzedArguments.Arguments[0].Syntax; 5306var end = analyzedArguments.Arguments[analyzedArguments.Arguments.Count - 1].Syntax.Span.End; 5321BoundExpression argument = analyzedArguments.Arguments.Count >= 1 ? BindToNaturalType(analyzedArguments.Arguments[0], diagnostics) : null; 5502analyzedArguments.Arguments.AddRange(arguments); 6765BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 6767var arguments = analyzedArguments.Arguments.ToImmutable(); 7006if (analyzedArguments.Arguments.Count > 0) 7008diagnostics.Add(ErrorCode.ERR_BadCtorArgCount, typeNode.Location, interfaceType, analyzedArguments.Arguments.Count); 7050if (analyzedArguments.Arguments.Count > 0) 8193Debug.Assert(extensionMethodArguments.Arguments.Count == 0); 8198extensionMethodArguments.Arguments.Add(receiver); 8199extensionMethodArguments.Arguments.AddRange(originalArguments.Arguments); 9024if (analyzedArguments.Arguments.Count == 1 && 9025tryImplicitConversionToInlineArrayIndex(node, analyzedArguments.Arguments[0], diagnostics, out WellKnownType indexOrRangeWellknownType) is { } convertedIndex) 9333if (arguments.Arguments.Count != rank) 9340BoundExpression[] convertedArguments = new BoundExpression[arguments.Arguments.Count]; 9342for (int i = 0; i < arguments.Arguments.Count; ++i) 9344BoundExpression argument = arguments.Arguments[i]; 9539ArrayBuilder<BoundExpression> arguments = analyzedArguments.Arguments; 9564int numArguments = analyzedArguments.Arguments.Count; 9857var arguments = analyzedArguments.Arguments.ToImmutable(); 9896if (arguments.Arguments.Count != 1) 9901var argument = arguments.Arguments[0]; 10042analyzedArguments.Arguments.Add(intPlaceholder); 10114analyzedArguments.Arguments.Add(startArgumentPlaceholder); 10115analyzedArguments.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); 1986var better = BetterFunctionMember(c1Result, c2Result, arguments.Arguments, ref useSiteInfo); 2026results[i] = BetterResult.Left == BetterFunctionMember(results[notBestIdx], results[i], arguments.Arguments, ref useSiteInfo) 4045arguments.Arguments.Count, 4114arguments.Arguments.Count, 4292var args = arguments.Arguments.ToImmutable(); 4382if (arguments.Arguments.Count < paramCount) 4387paramCount = 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)