WorkspaceExtensions.RemoveTriviaAsync(Document, TextSpan, CancellationToken) Method
Containing Type: WorkspaceExtensions
Assembly: Roslynator.CSharp.Workspaces.dll
Creates a new document with trivia inside the specified span removed.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> RemoveTriviaAsync(this Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
span TextSpan
cancellationToken CancellationToken