1 write to Names
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (1)
24this.Names = new ArrayBuilder<(string, Location)?>(32);
60 references to Names
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder_Attributes.cs (1)
241analyzedArguments.ConstructorArguments.Names,
Binder\Binder_Expressions.cs (20)
3314bool hasNames = result.Names.Any(); 3325result.Names.Add(null); 3343result.Names.Add(null); 3496Debug.Assert(analyzedArguments.Names.Count == 0 || analyzedArguments.Names.Count == arguments.Count); 3651if (analyzedArguments.Names is { Count: > 0 } namesBuilder) 5009BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics); 5123arguments.Names.ToImmutableOrNull(), 5304else if (analyzedArguments.Names.Count != 0 || analyzedArguments.RefKinds.Count != 0 || analyzedArguments.Arguments.Count != 1) 6768BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 8197Debug.Assert(extensionMethodArguments.Names.Count == 0); 8204if (originalArguments.Names.Count > 0) 8206extensionMethodArguments.Names.Add(null); 8207extensionMethodArguments.Names.AddRange(originalArguments.Names); 9108if (analyzedArguments.Names.Count > 0) 9321if (arguments.Names.Count > 0) 9528if (analyzedArguments.Names.Count > 0) 9948if (arguments.Names.Count > 0) 9954arguments.Names[0].GetValueOrDefault().Location);
Binder\Binder_Invocation.cs (5)
136analyzedArguments.Names.AddRange(names); 498if (arguments.Names.Count == 0) 509for (int i = 0; i < arguments.Names.Count; i++) 511if (arguments.Names[i] != null) 1202BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
Binder\ForEachLoopBinder.cs (1)
1470analyzedArguments.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)
71if (!expanded && arguments.Names.Count == 0) 174if (arguments.Names.Any() && arguments.Names.Last() != null && isVararg) 262isNamedArgument = arguments.Names.Count > argumentPosition && arguments.Names[argumentPosition] != null; 314Debug.Assert(arguments.Names[argumentPosition].HasValue); 315var name = arguments.Names[argumentPosition].GetValueOrDefault().Name; 348Debug.Assert(arguments.Names.Count == 0); 487if (arguments.Names.IsEmpty) 494for (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();