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