Exemplo n.º 1
0
        private static async Task RunAllAnalysisAsync(IIncrementalAnalyzer analyzer, Document document)
        {
            await analyzer.AnalyzeSyntaxAsync(document, InvocationReasons.Empty, CancellationToken.None).ConfigureAwait(false);

            await analyzer.AnalyzeDocumentAsync(document, bodyOpt : null, reasons : InvocationReasons.Empty, cancellationToken : CancellationToken.None).ConfigureAwait(false);

            await analyzer.AnalyzeProjectAsync(document.Project, semanticsChanged : true, reasons : InvocationReasons.Empty, cancellationToken : CancellationToken.None).ConfigureAwait(false);
        }
 private static async Task RunAllAnalysisAsync(IIncrementalAnalyzer analyzer, Document document)
 {
     await analyzer.AnalyzeSyntaxAsync(document, InvocationReasons.Empty, CancellationToken.None).ConfigureAwait(false);
     await analyzer.AnalyzeDocumentAsync(document, bodyOpt: null, reasons: InvocationReasons.Empty, cancellationToken: CancellationToken.None).ConfigureAwait(false);
     await analyzer.AnalyzeProjectAsync(document.Project, semanticsChanged: true, reasons: InvocationReasons.Empty, cancellationToken: CancellationToken.None).ConfigureAwait(false);
 }