13 references to NameGenerator
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
127
var uniqueName =
NameGenerator
.EnsureUniqueness(name, existingNames, syntaxFacts.IsCaseSensitive);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
166
var uniqueName =
NameGenerator
.EnsureUniqueness(argumentNameSuggestion, method.Parameters.Select(p => p.Name));
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (1)
184
return
NameGenerator
.EnsureUniqueness(parameterNames, isFixed, canUse: s => !reservedNames.Any(n => comparer.Equals(s, n)))
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
493
var newFieldName =
NameGenerator
.EnsureUniqueness(baseFieldWithNamingStyle, unavailableMemberNames.Concat(parameterToNewFieldMap.Values));
494
var newPropertyName =
NameGenerator
.EnsureUniqueness(basePropertyWithNamingStyle, unavailableMemberNames.Concat(parameterToNewPropertyMap.Values));
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
243
NameGenerator
.EnsureUniquenessInPlace(names, isFixed);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
137
var newTypeParameterNames =
NameGenerator
.EnsureUniqueness(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
166
return
NameGenerator
.GenerateUniqueName(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
265
var uniqueName =
NameGenerator
.GenerateUniqueName(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (1)
60
var parameterNames =
NameGenerator
.EnsureUniqueness(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
25
var parameterNames =
NameGenerator
.EnsureUniqueness(
37
var newTypeParameterNames =
NameGenerator
.EnsureUniqueness(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
97
NameGenerator
.EnsureUniqueness(