Exemplo n.º 1
0
 static async Task DocumentResetAsync(IIncrementalAnalyzer analyzer, TextDocument textDocument, CancellationToken cancellationToken)
 {
     if (textDocument is Document document)
     {
         await analyzer.DocumentResetAsync(document, cancellationToken).ConfigureAwait(false);
     }
     else
     {
         await analyzer.NonSourceDocumentResetAsync(textDocument, cancellationToken).ConfigureAwait(false);
     }
 }