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)
248PromoteParameter(generator, Parameter(parameter.Name.ToIdentifierToken()), parameter))]);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
66var member = EnumMemberDeclaration(enumMember.Name.ToIdentifierToken())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (2)
123[VariableDeclarator(@event.Name.ToIdentifierToken())])))); 136identifier: @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)
127identifier: method.Name.ToIdentifierToken(), 146identifier: method.Name.ToIdentifierToken(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (4)
203RecordKeyword, classOrStructKeyword, namedType.Name.ToIdentifierToken(), 212typeDeclaration = TypeDeclaration(kind, namedType.Name.ToIdentifierToken()); 237namedType.Name.ToIdentifierToken(), 255namedType.Name.ToIdentifierToken(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
68return Parameter(parameter.Name.ToIdentifierToken())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
127identifier: property.Name.ToIdentifierToken(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
36symbol.Name.ToIdentifierToken());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
208symbol.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)
213SyntaxFactory.SingleVariableDesignation(name.ToIdentifierToken()));