WorkspaceExtensions.WithTextChangesAsync Method
Containing Type: WorkspaceExtensions
Assembly: Roslynator.Workspaces.Core.dll
Overloads
Method | Summary |
---|---|
WithTextChangesAsync(Document, IEnumerable<TextChange>, CancellationToken) | Creates a new document updated with the specified text changes. |
WithTextChangesAsync(Document, TextChange[], CancellationToken) | Creates a new document updated with the specified text changes. |
WithTextChangesAsync(Document, IEnumerable<TextChange>, CancellationToken)
Creates a new document updated with the specified text changes.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> WithTextChangesAsync(this Microsoft.CodeAnalysis.Document document, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextChange> textChanges, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
textChanges IEnumerable<TextChange>
cancellationToken CancellationToken
Returns
WithTextChangesAsync(Document, TextChange[], CancellationToken)
Creates a new document updated with the specified text changes.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> WithTextChangesAsync(this Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextChange[] textChanges, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
textChanges TextChange[]
cancellationToken CancellationToken