1 write to Processor
Microsoft.CodeAnalysis.Features (1)
SolutionCrawler\WorkCoordinator.AbstractPriorityProcessor.cs (1)
39
Processor
= processor;
45 references to Processor
Microsoft.CodeAnalysis.Features (45)
SolutionCrawler\WorkCoordinator.AbstractPriorityProcessor.cs (3)
40
Processor
._documentTracker.NonRoslynBufferTextChanged += OnNonRoslynBufferTextChanged;
64
=> SolutionCrawlerLogger.LogGlobalOperation(
Processor
._logAggregator);
125
Processor
._documentTracker.NonRoslynBufferTextChanged -= OnNonRoslynBufferTextChanged;
SolutionCrawler\WorkCoordinator.LowPriorityProcessor.cs (14)
55
var preferableProjectId =
Processor
._documentTracker.SupportsDocumentTracking
56
?
Processor
._documentTracker.TryGetActiveDocument()?.ProjectId
60
preferableProjectId,
Processor
.DependencyGraph,
Processor
.DiagnosticAnalyzerService,
76
return Task.WhenAll(
Processor
._highPriorityProcessor.Running,
Processor
._normalPriorityProcessor.Running);
84
return
Processor
._highPriorityProcessor.HasAnyWork ||
Processor
._normalPriorityProcessor.HasAnyWork;
100
item = item.ToProjectWorkItem(
Processor
._listener.BeginAsyncOperation("WorkItem"));
110
SolutionCrawlerLogger.LogWorkItemEnqueue(
Processor
._logAggregator, item.ProjectId);
133
var processingSolution =
Processor
._registration.GetSolutionToAnalyze();
146
await
Processor
.RunAnalyzersAsync(analyzers, project, workItem, (a, p, c) => a.AnalyzeProjectAsync(p, semanticsChanged, reasons, c), cancellationToken).ConfigureAwait(false);
150
SolutionCrawlerLogger.LogProcessProjectNotExist(
Processor
._logAggregator);
176
SolutionCrawlerLogger.LogProcessProject(
Processor
._logAggregator, projectId.Id, processedEverything);
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (28)
76
Processor
._logAggregator, item.Language, item.DocumentId, item.InvocationReasons, item.IsLowPriority, item.ActiveMember, added);
94
SolutionCrawlerLogger.LogHigherPriority(
Processor
._logAggregator, id.Id);
130
_currentProjectProcessing,
Processor
.DependencyGraph,
Processor
.DiagnosticAnalyzerService,
163
return
Processor
._highPriorityProcessor.Running;
171
return
Processor
._highPriorityProcessor.HasAnyWork;
189
var activeDocumentId =
Processor
._documentTracker.TryGetActiveDocument();
196
foreach (var visibleDocumentId in
Processor
._documentTracker.GetVisibleDocuments())
212
if (!
Processor
._documentTracker.SupportsDocumentTracking)
287
var solution =
Processor
._registration.GetSolutionToAnalyze();
310
await
Processor
.ProcessDocumentAnalyzersAsync(textDocument, analyzers, workItem, cancellationToken).ConfigureAwait(false);
314
SolutionCrawlerLogger.LogProcessDocumentNotExist(
Processor
._logAggregator);
340
SolutionCrawlerLogger.LogProcessDocument(
Processor
._logAggregator, documentId.Id, processedEverything);
354
SolutionCrawlerLogger.LogProcessOpenDocument(
Processor
._logAggregator, textDocument.Id.Id);
356
await
Processor
.RunAnalyzersAsync(analyzers, textDocument, workItem, DocumentOpenAsync, cancellationToken).ConfigureAwait(false);
379
SolutionCrawlerLogger.LogProcessCloseDocument(
Processor
._logAggregator, textDocument.Id.Id);
381
await
Processor
.RunAnalyzersAsync(analyzers, textDocument, workItem, DocumentCloseAsync, cancellationToken).ConfigureAwait(false);
408
await
Processor
.RunAnalyzersAsync(analyzers, document, workItem, DocumentResetAsync, cancellationToken).ConfigureAwait(false);
414
await
Processor
.RunAnalyzersAsync(analyzers, document, workItem, (a, d, c) => AnalyzeSyntaxAsync(a, d, reasons, c), cancellationToken).ConfigureAwait(false);
422
await
Processor
.RunAnalyzersAsync(analyzers, sourceDocument, workItem, (a, d, c) => a.AnalyzeDocumentAsync(d, null, reasons, c), cancellationToken).ConfigureAwait(false);
477
await
Processor
.RunAnalyzersAsync(
479
Processor
._registration.GetSolutionToAnalyze(),
482
foreach (var id in
Processor
.GetOpenDocumentIds())
487
SolutionCrawlerLogger.LogResetStates(
Processor
._logAggregator);
496
var currentSolution =
Processor
._registration.GetSolutionToAnalyze();
525
Processor
._registration.CorrelationId, oldSolution,
Processor
._logAggregator, Analyzers);
527
Processor
.ResetLogAggregator();