19 references to ToIdentifierToken
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (19)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
141
(node, generator) => IdentifierName(parameter.Name.
ToIdentifierToken
()).WithTriviaFrom(node));
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
248
PromoteParameter(generator, Parameter(parameter.Name.
ToIdentifierToken
()), parameter))]);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
66
var member = EnumMemberDeclaration(enumMember.Name.
ToIdentifierToken
())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (2)
123
[VariableDeclarator(@event.Name.
ToIdentifierToken
())]))));
136
identifier: @event.Name.
ToIdentifierToken
(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
105
[AddAnnotationsTo(field, VariableDeclarator(field.Name.
ToIdentifierToken
(), null, initializer))]));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
127
identifier: method.Name.
ToIdentifierToken
(),
146
identifier: method.Name.
ToIdentifierToken
(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (4)
203
RecordKeyword, classOrStructKeyword, namedType.Name.
ToIdentifierToken
(),
212
typeDeclaration = TypeDeclaration(kind, namedType.Name.
ToIdentifierToken
());
237
namedType.Name.
ToIdentifierToken
(),
255
namedType.Name.
ToIdentifierToken
(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
68
return Parameter(parameter.Name.
ToIdentifierToken
())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
127
identifier: property.Name.
ToIdentifierToken
(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
36
symbol.Name.
ToIdentifierToken
());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
208
symbol.Name.
ToIdentifierToken
(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
58
=> SyntaxFactory.IdentifierName(identifier.
ToIdentifierToken
());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
38
=> identifier.
ToIdentifierToken
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
213
SyntaxFactory.SingleVariableDesignation(name.
ToIdentifierToken
()));