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