WorkspaceExtensions.WithTextChangeAsync(Document, TextChange, CancellationToken) Method
Containing Type: WorkspaceExtensions
Assembly: Roslynator.Workspaces.Core.dll
Creates a new document updated with the specified text change.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> WithTextChangeAsync(this Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextChange textChange, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
textChange TextChange
cancellationToken CancellationToken