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