4 writes to BestNameForParameter
Microsoft.CodeAnalysis.Workspaces (4)
Utilities\ParameterName.cs (4)
36BestNameForParameter = NameBasedOnArgument; 43BestNameForParameter = trimmed.Length > 0 ? trimmed.ToCamelCase() : nameBasedOnArgument; 54BestNameForParameter = NameBasedOnArgument; 60BestNameForParameter = parameterNamingRule.NamingStyle.MakeCompliant(nameBasedOnArgument).First();
12 references to BestNameForParameter
Microsoft.CodeAnalysis.Features (12)
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (6)
172if (delegatedConstructor.Parameters.Select(p => p.Name).Intersect(remainingParameterNames.Select(n => n.BestNameForParameter)).Any()) 432name: parameterName.BestNameForParameter)); 476parameterToExistingMemberMap[parameterName.BestNameForParameter] = symbol; 506parameterToNewFieldMap[newParameterName.BestNameForParameter] = newFieldName; 507parameterToNewPropertyMap[newParameterName.BestNameForParameter] = newPropertyName; 515var bestNameForParameter = parameterName.BestNameForParameter;
GenerateMember\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
240names.Add(new ParameterName(typeLocalName, isFixed: false).BestNameForParameter);
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
130.Select(p => p.BestNameForParameter) 219name: names[i].BestNameForParameter));
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
616parameterToFieldMap[parameterName.BestNameForParameter] = symbol; 623parameterToNewFieldMap[parameterName.BestNameForParameter] = nameToUse;
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
215name: parameterName.BestNameForParameter));