1 instantiation of DocumentAnalysisResults
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\DocumentAnalysisResults.cs (1)
192
=>
new
(
23 references to DocumentAnalysisResults
Microsoft.CodeAnalysis.Features (22)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (6)
513
public async Task<
DocumentAnalysisResults
> AnalyzeDocumentAsync(
577
return
DocumentAnalysisResults
.SyntaxErrors(newDocument.Id, filePath, [], syntaxError, analysisStopwatch.Elapsed, hasChanges);
588
return
DocumentAnalysisResults
.Unchanged(newDocument.Id, filePath, analysisStopwatch.Elapsed);
597
return
DocumentAnalysisResults
.SyntaxErrors(newDocument.Id, filePath, [new RudeEditDiagnostic(RudeEditKind.ExperimentalFeaturesEnabled, default)], syntaxError: null, analysisStopwatch.Elapsed, hasChanges);
606
return
DocumentAnalysisResults
.SyntaxErrors(newDocument.Id, filePath, [new RudeEditDiagnostic(RudeEditKind.NotSupportedByRuntime, default)], syntaxError: null, analysisStopwatch.Elapsed, hasChanges);
710
return
DocumentAnalysisResults
.SyntaxErrors(newDocument.Id, filePath, [diagnostic], syntaxError: null, analysisStopwatch.Elapsed, hasChanges);
EditAndContinue\DocumentAnalysisResults.cs (2)
191
public static
DocumentAnalysisResults
SyntaxErrors(DocumentId documentId, string filePath, ImmutableArray<RudeEditDiagnostic> rudeEdits, Diagnostic? syntaxError, TimeSpan elapsedTime, bool hasChanges)
210
public static
DocumentAnalysisResults
Unchanged(DocumentId documentId, string filePath, TimeSpan elapsedTime)
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (5)
27
private readonly Dictionary<DocumentId, (AsyncLazy<
DocumentAnalysisResults
> results, Project baseProject, Document document, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)> _analyses = [];
31
public async ValueTask<ImmutableArray<
DocumentAnalysisResults
>> GetDocumentAnalysesAsync(
61
public async ValueTask<
DocumentAnalysisResults
> GetDocumentAnalysisAsync(
81
AsyncLazy<
DocumentAnalysisResults
> lazyResults;
163
private AsyncLazy<
DocumentAnalysisResults
> GetDocumentAnalysisNoLock(Project baseProject, Document document, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)
EditAndContinue\EditSession.cs (8)
151
public async Task<ImmutableArray<Diagnostic>?> GetModuleDiagnosticsAsync(Guid mvid, Project oldProject, Project newProject, ImmutableArray<
DocumentAnalysisResults
> documentAnalyses, CancellationToken cancellationToken)
179
private static async IAsyncEnumerable<Location> CreateChangedLocationsAsync(Project oldProject, Project newProject, ImmutableArray<
DocumentAnalysisResults
> documentAnalyses, [EnumeratorCancellation] CancellationToken cancellationToken)
182
foreach (
var
documentAnalysis in documentAnalyses)
526
private async Task<(ImmutableArray<
DocumentAnalysisResults
> results, ImmutableArray<Diagnostic> diagnostics)> AnalyzeDocumentsAsync(
566
private static ProjectAnalysisSummary GetProjectAnalysisSummary(ImmutableArray<
DocumentAnalysisResults
> documentAnalyses)
571
foreach (
var
analysis in documentAnalyses)
615
ImmutableArray<
DocumentAnalysisResults
> changedDocumentAnalyses,
627
foreach (
var
analysis in changedDocumentAnalyses)
EditAndContinue\IEditAndContinueAnalyzer.cs (1)
16
Task<
DocumentAnalysisResults
> AnalyzeDocumentAsync(
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
162
var
result = Analyzer.AnalyzeDocumentAsync(oldProject, lazyOldActiveStatementMap, newDocument, newActiveStatementSpans, lazyCapabilities, CancellationToken.None).Result;