Skip to main content

WorkspaceSyntaxExtensions.WithRenameAnnotation(SyntaxToken) Method

Containing Type: WorkspaceSyntaxExtensions

Assembly: Roslynator.CSharp.Workspaces.dll

Adds "rename" annotation to the specified token, creating a new token of the same type with the "rename" annotation on it. "Rename" annotation is specified by RenameAnnotation.Kind.

public static Microsoft.CodeAnalysis.SyntaxToken WithRenameAnnotation(this Microsoft.CodeAnalysis.SyntaxToken token)

Parameters

token SyntaxToken

Returns

SyntaxToken