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