Skip to main content

WorkspaceExtensions.WithTextChangesAsync Method

Containing Type: WorkspaceExtensions

Assembly: Roslynator.Workspaces.Core.dll

Overloads

MethodSummary
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

Task<Document>

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

Returns

Task<Document>