1 write to Names
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (1)
24
this.
Names
= new ArrayBuilder<(string, Location)?>(32);
60 references to Names
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder_Attributes.cs (1)
241
analyzedArguments.ConstructorArguments.
Names
,
Binder\Binder_Expressions.cs (20)
3314
bool hasNames = result.
Names
.Any();
3325
result.
Names
.Add(null);
3343
result.
Names
.Add(null);
3496
Debug.Assert(analyzedArguments.
Names
.Count == 0 || analyzedArguments.
Names
.Count == arguments.Count);
3651
if (analyzedArguments.
Names
is { Count: > 0 } namesBuilder)
5009
BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.
Names
, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics);
5123
arguments.
Names
.ToImmutableOrNull(),
5304
else if (analyzedArguments.
Names
.Count != 0 || analyzedArguments.RefKinds.Count != 0 || analyzedArguments.Arguments.Count != 1)
6768
BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.
Names
, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
8197
Debug.Assert(extensionMethodArguments.
Names
.Count == 0);
8204
if (originalArguments.
Names
.Count > 0)
8206
extensionMethodArguments.
Names
.Add(null);
8207
extensionMethodArguments.
Names
.AddRange(originalArguments.
Names
);
9108
if (analyzedArguments.
Names
.Count > 0)
9321
if (arguments.
Names
.Count > 0)
9528
if (analyzedArguments.
Names
.Count > 0)
9948
if (arguments.
Names
.Count > 0)
9954
arguments.
Names
[0].GetValueOrDefault().Location);
Binder\Binder_Invocation.cs (5)
136
analyzedArguments.
Names
.AddRange(names);
498
if (arguments.
Names
.Count == 0)
509
for (int i = 0; i < arguments.
Names
.Count; i++)
511
if (arguments.
Names
[i] != null)
1202
BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.
Names
, ref argsToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
Binder\ForEachLoopBinder.cs (1)
1470
analyzedArguments.
Names
,
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (10)
31
this.
Names
.Clear();
44
Names
.Add((name.Identifier.ValueText, name.Location));
49
if (
Names
.Count == 0)
54
var nameAndLocation =
Names
[i];
60
int count = this.
Names
.Count;
67
var builder = ArrayBuilder<string?>.GetInstance(this.
Names
.Count);
68
for (int i = 0; i < this.
Names
.Count; ++i)
140
instance.
Names
.AddRange(original.
Names
);
161
instance.
Names
.AddRange(argumentNamesOpt);
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (10)
71
if (!expanded && arguments.
Names
.Count == 0)
174
if (arguments.
Names
.Any() && arguments.
Names
.Last() != null && isVararg)
262
isNamedArgument = arguments.
Names
.Count > argumentPosition && arguments.
Names
[argumentPosition] != null;
314
Debug.Assert(arguments.
Names
[argumentPosition].HasValue);
315
var name = arguments.
Names
[argumentPosition].GetValueOrDefault().Name;
348
Debug.Assert(arguments.
Names
.Count == 0);
487
if (arguments.
Names
.IsEmpty)
494
for (int i = 0; i < arguments.
Names
.Count; ++i)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (13)
477
Debug.Assert(arguments.
Names
[badArg].HasValue);
478
Location badName = arguments.
Names
[badArg].GetValueOrDefault().Location;
797
Debug.Assert(arguments.
Names
.Count > badArg);
798
Debug.Assert(arguments.
Names
[badArg].HasValue);
799
(string badName, Location location) = arguments.
Names
[badArg].GetValueOrDefault();
817
Debug.Assert(arguments.
Names
.Count > badArg);
818
Debug.Assert(arguments.
Names
[badArg].HasValue);
819
(string badName, Location location) = arguments.
Names
[badArg].GetValueOrDefault();
832
Debug.Assert(arguments.
Names
[result.Result.FirstBadArgument].HasValue);
833
(string name, Location location) = arguments.
Names
[result.Result.FirstBadArgument].GetValueOrDefault();
857
Debug.Assert(arguments.
Names
.Count > badArg);
858
Debug.Assert(arguments.
Names
[badArg].HasValue);
859
(string badName, Location location) = arguments.
Names
[badArg].GetValueOrDefault();