public static Task <Document> AppendEndOfLineAsync( Document document, SyntaxNode node, CancellationToken cancellationToken = default) { SyntaxNode newNode = node.AppendEndOfLineToTrailingTrivia(); return(document.ReplaceNodeAsync(node, newNode, cancellationToken)); }