2 instantiations of DocumentAnalysisExecutor
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
69
=>
new
(analysisScope, _compilationWithAnalyzers, _diagnosticAnalyzerRunner, _isExplicit, _logPerformanceInfo, _onAnalysisException);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
383
var executor = new
DocumentAnalysisExecutor
(analysisScope, _compilationWithAnalyzers, _owner._diagnosticAnalyzerRunner, _isExplicit, _logPerformanceInfo);
22 references to DocumentAnalysisExecutor
Microsoft.CodeAnalysis.LanguageServer.Protocol (22)
ExternalAccess\VSMac\AnalyzerHelper.cs (1)
12
=>
DocumentAnalysisExecutor
.CreateAnalyzerLoadFailureDiagnostic(e, fullPath, projectId, language);
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
68
public
DocumentAnalysisExecutor
With(DocumentAnalysisScope analysisScope)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.CompilationManager.cs (1)
14
=>
DocumentAnalysisExecutor
.CreateCompilationWithAnalyzersAsync(project, stateSets.SelectAsArray(s => !s.IsHostAnalyzer, s => s.Analyzer), stateSets.SelectAsArray(s => s.IsHostAnalyzer, s => s.Analyzer), includeSuppressedDiagnostics, crashOnAnalyzerException, cancellationToken);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (6)
143
await
DocumentAnalysisExecutor
.CreateCompilationWithAnalyzersAsync(
264
builder.AddSyntaxDiagnostics(tree, await
DocumentAnalysisExecutor
.ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync(documentAnalyzer, document, AnalysisKind.Syntax, compilation, cancellationToken).ConfigureAwait(false));
265
builder.AddSemanticDiagnostics(tree, await
DocumentAnalysisExecutor
.ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync(documentAnalyzer, document, AnalysisKind.Semantic, compilation, cancellationToken).ConfigureAwait(false));
269
builder.AddExternalSyntaxDiagnostics(document.Id, await
DocumentAnalysisExecutor
.ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync(documentAnalyzer, document, AnalysisKind.Syntax, compilation, cancellationToken).ConfigureAwait(false));
270
builder.AddExternalSemanticDiagnostics(document.Id, await
DocumentAnalysisExecutor
.ComputeDocumentDiagnosticAnalyzerDiagnosticsAsync(documentAnalyzer, document, AnalysisKind.Semantic, compilation, cancellationToken).ConfigureAwait(false));
278
builder.AddCompilationDiagnostics(await
DocumentAnalysisExecutor
.ComputeProjectDiagnosticAnalyzerDiagnosticsAsync(projectAnalyzer, project, compilation, cancellationToken).ConfigureAwait(false));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (7)
47
DocumentAnalysisExecutor
executor,
50
Func<DiagnosticAnalyzer,
DocumentAnalysisExecutor
, CancellationToken, Task<ImmutableArray<DiagnosticData>>> computeAnalyzerDiagnosticsAsync,
51
Func<
DocumentAnalysisExecutor
, CancellationToken, Task<ImmutableDictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>>>> computeDiagnosticsNonIncrementallyAsync,
169
DocumentAnalysisExecutor
executor,
240
DocumentAnalysisExecutor
executor,
244
Func<DiagnosticAnalyzer,
DocumentAnalysisExecutor
, CancellationToken, Task<ImmutableArray<DiagnosticData>>> computeAnalyzerDiagnosticsAsync,
274
var
documentExecutor = executor.With(executor.AnalysisScope.WithSpan(null));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (5)
73
private delegate Task<IEnumerable<DiagnosticData>> DiagnosticsGetterAsync(DiagnosticAnalyzer analyzer,
DocumentAnalysisExecutor
executor, CancellationToken cancellationToken);
92
.Where(s =>
DocumentAnalysisExecutor
.IsAnalyzerEnabledForProject(s.Analyzer, document.Project, owner.GlobalOptions))
383
var
executor = new DocumentAnalysisExecutor(analysisScope, _compilationWithAnalyzers, _owner._diagnosticAnalyzerRunner, _isExplicit, _logPerformanceInfo);
506
DocumentAnalysisExecutor
executor,
521
DocumentAnalysisExecutor
executor,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
34
compilationWithAnalyzers = await
DocumentAnalysisExecutor
.CreateCompilationWithAnalyzersAsync(