Skip to main content

WorkspaceSyntaxExtensions.WithSimplifierAnnotation Method

Containing Type: WorkspaceSyntaxExtensions

Assembly: Roslynator.CSharp.Workspaces.dll

Overloads

MethodSummary
WithSimplifierAnnotation(SyntaxToken)Adds Simplifier.Annotation to the specified token, creating a new token of the same type with the Simplifier.Annotation on it. "Rename" annotation is specified by RenameAnnotation.Kind.
WithSimplifierAnnotation<TNode>(TNode)Creates a new node with the Simplifier.Annotation attached.

WithSimplifierAnnotation(SyntaxToken)

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

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

Parameters

token SyntaxToken

Returns

SyntaxToken

WithSimplifierAnnotation<TNode>(TNode)

Creates a new node with the Simplifier.Annotation attached.

public static TNode WithSimplifierAnnotation<TNode>(this TNode node) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

node TNode

Returns

TNode