21 references to ToIdentifierToken
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (21)
ConstructorGenerator.cs (1)
58
identifier: CodeGenerationConstructorInfo.GetTypeName(constructor).
ToIdentifierToken
(),
CSharpSemanticFactsService.cs (1)
38
=> identifier.
ToIdentifierToken
();
CSharpSyntaxGeneratorInternal.cs (1)
168
SyntaxFactory.SingleVariableDesignation(name.
ToIdentifierToken
()));
CSharpUseLocalFunctionCodeFixProvider.cs (1)
256
PromoteParameter(generator, SyntaxFactory.Parameter(parameter.Name.
ToIdentifierToken
()), parameter))));
DestructorGenerator.cs (1)
53
identifier: CodeGenerationDestructorInfo.GetTypeName(destructor).
ToIdentifierToken
(),
EnumMemberGenerator.cs (1)
64
var member = SyntaxFactory.EnumMemberDeclaration(enumMember.Name.
ToIdentifierToken
())
EventGenerator.cs (2)
121
SyntaxFactory.SingletonSeparatedList(SyntaxFactory.VariableDeclarator(@event.Name.
ToIdentifierToken
()))))));
134
identifier: @event.Name.
ToIdentifierToken
(),
FieldGenerator.cs (1)
103
AddAnnotationsTo(field, SyntaxFactory.VariableDeclarator(field.Name.
ToIdentifierToken
(), null, initializer)))));
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
203
symbol.Name.
ToIdentifierToken
(),
MakeLocalFunctionStaticCodeFixHelper.cs (1)
143
(node, generator) => IdentifierName(parameter.Name.
ToIdentifierToken
()).WithTriviaFrom(node));
MethodGenerator.cs (2)
125
identifier: method.Name.
ToIdentifierToken
(),
144
identifier: method.Name.
ToIdentifierToken
(),
NamedTypeGenerator.cs (4)
200
SyntaxFactory.Token(SyntaxKind.RecordKeyword), classOrStructKeyword, namedType.Name.
ToIdentifierToken
(),
209
typeDeclaration = SyntaxFactory.TypeDeclaration(kind, namedType.Name.
ToIdentifierToken
());
234
namedType.Name.
ToIdentifierToken
(),
252
namedType.Name.
ToIdentifierToken
(),
ParameterGenerator.cs (1)
67
return SyntaxFactory.Parameter(parameter.Name.
ToIdentifierToken
())
PropertyGenerator.cs (1)
124
identifier: property.Name.
ToIdentifierToken
(),
StringExtensions.cs (1)
58
=> SyntaxFactory.IdentifierName(identifier.
ToIdentifierToken
());
TypeParameterGenerator.cs (1)
34
symbol.Name.
ToIdentifierToken
());