예제 #1
0
        public static Task <Document> AppendEndOfLineAsync(
            Document document,
            SyntaxToken token,
            CancellationToken cancellationToken = default)
        {
            SyntaxToken newToken = token.AppendEndOfLineToTrailingTrivia();

            return(document.ReplaceTokenAsync(token, newToken, cancellationToken));
        }