Document.GetTextChangesAsync(Document, CancellationToken) Método

Definição

Obtenha as alterações de texto entre este documento e uma versão anterior do mesmo documento. As alterações, quando aplicadas ao texto do documento antigo, produzirão o texto do documento atual.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextChange>> GetTextChangesAsync (Microsoft.CodeAnalysis.Document oldDocument, System.Threading.CancellationToken cancellationToken = default);
member this.GetTextChangesAsync : Microsoft.CodeAnalysis.Document * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.Text.TextChange>>
Public Function GetTextChangesAsync (oldDocument As Document, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of TextChange))

Parâmetros

oldDocument
Document
cancellationToken
CancellationToken

Retornos

Aplica-se a