WorkspaceSyntaxExtensions.WithFormatterAnnotation Method
Containing Type: WorkspaceSyntaxExtensions
Assembly: Roslynator.CSharp.Workspaces.dll
Overloads
Method | Summary |
---|---|
WithFormatterAnnotation(SyntaxToken) | Adds Formatter.Annotation to the specified token, creating a new token of the same type with the Formatter.Annotation on it. |
WithFormatterAnnotation<TNode>(TNode) | Creates a new node with the Formatter.Annotation attached. |
WithFormatterAnnotation(SyntaxToken)
Adds Formatter.Annotation to the specified token, creating a new token of the same type with the Formatter.Annotation on it.
public static Microsoft.CodeAnalysis.SyntaxToken WithFormatterAnnotation(this Microsoft.CodeAnalysis.SyntaxToken token)
Parameters
token SyntaxToken
Returns
WithFormatterAnnotation<TNode>(TNode)
Creates a new node with the Formatter.Annotation attached.
public static TNode WithFormatterAnnotation<TNode>(this TNode node) where TNode : Microsoft.CodeAnalysis.SyntaxNode
Type Parameters
TNode
Parameters
node TNode
Returns
TNode