SyntaxExtensions.RemoveTrivia<TNode>(TNode, TextSpan?) Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Creates a new node with the trivia removed.
public static TNode RemoveTrivia<TNode>(this TNode node, Microsoft.CodeAnalysis.Text.TextSpan? span = null) where TNode : Microsoft.CodeAnalysis.SyntaxNode
Type Parameters
TNode
Parameters
node TNode
span TextSpan?
Returns
TNode