6 references to WithIdentifier
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
69
return variableDeclarator.
WithIdentifier
(newName.WithTriviaFrom(variableDeclarator.Identifier));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
490
.
WithIdentifier
(declarator.Identifier.WithTrailingTrivia(newLeadingTrivia))
Microsoft.CodeAnalysis.CSharp.Features (4)
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
60
var updatedDeclarator = declarator.
WithIdentifier
(newIdentifier).WithAdditionalAnnotations(tempAnnotation);
ReplaceConditionalWithStatements\CSharpReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
80
variable.WithInitializer(null).
WithIdentifier
(variable.Identifier.WithTrailingTrivia()));
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
69
return variableDeclarator.
WithIdentifier
(newName.WithTriviaFrom(variableDeclarator.Identifier));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
490
.
WithIdentifier
(declarator.Identifier.WithTrailingTrivia(newLeadingTrivia))