1 write to Names
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (1)
24this.Names = new ArrayBuilder<(string, Location)?>(32);
63 references to Names
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder_Attributes.cs (1)
241analyzedArguments.ConstructorArguments.Names,
Binder\Binder_Expressions.cs (21)
3361bool hasNames = result.Names.Any(); 3372result.Names.Add(null); 3390result.Names.Add(null); 3476Debug.Assert(analyzedArguments.Names.Count == 0 || analyzedArguments.Names.Count == arguments.Count); 3631if (analyzedArguments.Names is { Count: > 0 } namesBuilder) 5060BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics); 5174arguments.Names.ToImmutableOrNull(), 5355else if (analyzedArguments.Names.Count != 0 || analyzedArguments.RefKinds.Count != 0 || analyzedArguments.Arguments.Count != 1) 6819BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 8349Debug.Assert(extensionMethodArguments.Names.Count == 0); 8356if (originalArguments.Names.Count > 0) 8358extensionMethodArguments.Names.Add(null); 8359extensionMethodArguments.Names.AddRange(originalArguments.Names); 8373Debug.Assert(extensionPropertyArguments.Names.Count == 0); 9484if (analyzedArguments.Names.Count > 0) 9697if (arguments.Names.Count > 0) 9904if (analyzedArguments.Names.Count > 0) 10324if (arguments.Names.Count > 0) 10330arguments.Names[0].GetValueOrDefault().Location);
Binder\Binder_Invocation.cs (7)
136analyzedArguments.Names.AddRange(names); 499if (arguments.Names.Count == 0) 510for (int i = 0; i < arguments.Names.Count; i++) 512if (arguments.Names[i] != null) 1212if (analyzedArguments.Names is { Count: > 0 }) 1214analyzedArguments.Names.RemoveAt(0); 1240BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
Binder\ForEachLoopBinder.cs (1)
1495analyzedArguments.Names,
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (10)
31this.Names.Clear(); 44Names.Add((name.Identifier.ValueText, name.Location)); 49if (Names.Count == 0) 54var nameAndLocation = Names[i]; 60int count = this.Names.Count; 67var builder = ArrayBuilder<string?>.GetInstance(this.Names.Count); 68for (int i = 0; i < this.Names.Count; ++i) 140instance.Names.AddRange(original.Names); 161instance.Names.AddRange(argumentNamesOpt);
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (10)
78if (!expanded && arguments.Names.Count == 0) 181if (arguments.Names.Any() && arguments.Names.Last() != null && isVararg) 269isNamedArgument = arguments.Names.Count > argumentPosition && arguments.Names[argumentPosition] != null; 321Debug.Assert(arguments.Names[argumentPosition].HasValue); 322var name = arguments.Names[argumentPosition].GetValueOrDefault().Name; 355Debug.Assert(arguments.Names.Count == 0); 494if (arguments.Names.IsEmpty) 501for (int i = 0; i < arguments.Names.Count; ++i)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (13)
477Debug.Assert(arguments.Names[badArg].HasValue); 478Location badName = arguments.Names[badArg].GetValueOrDefault().Location; 797Debug.Assert(arguments.Names.Count > badArg); 798Debug.Assert(arguments.Names[badArg].HasValue); 799(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault(); 817Debug.Assert(arguments.Names.Count > badArg); 818Debug.Assert(arguments.Names[badArg].HasValue); 819(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault(); 832Debug.Assert(arguments.Names[result.Result.FirstBadArgument].HasValue); 833(string name, Location location) = arguments.Names[result.Result.FirstBadArgument].GetValueOrDefault(); 857Debug.Assert(arguments.Names.Count > badArg); 858Debug.Assert(arguments.Names[badArg].HasValue); 859(string badName, Location location) = arguments.Names[badArg].GetValueOrDefault();