1 write to InvocationReasons
Microsoft.CodeAnalysis.Features (1)
SolutionCrawler\WorkCoordinator.WorkItem.cs (1)
82
InvocationReasons
= invocationReasons;
24 references to InvocationReasons
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
SolutionCrawler\WorkCoordinatorTests.cs (3)
1326
item = item.With(item.
InvocationReasons
, item.ActiveMember, specificAnalyzers: ImmutableHashSet.Create<IIncrementalAnalyzer>(analyzer2), item.IsRetry, item.AsyncToken);
1347
item = item.With(item.
InvocationReasons
, item.ActiveMember, specificAnalyzers: ImmutableHashSet<IIncrementalAnalyzer>.Empty, item.IsRetry, item.AsyncToken);
1368
item = item.With(item.
InvocationReasons
, item.ActiveMember, specificAnalyzers: ImmutableHashSet.Create<IIncrementalAnalyzer>(analyzer2), item.IsRetry, item.AsyncToken);
Microsoft.CodeAnalysis.Features (21)
SolutionCrawler\WorkCoordinator.AsyncDocumentWorkItemQueue.cs (1)
112
documentMap[key] = existingWorkItem.With(item.
InvocationReasons
, item.ActiveMember, item.SpecificAnalyzers, item.IsRetry, item.AsyncToken);
SolutionCrawler\WorkCoordinator.AsyncProjectWorkItemQueue.cs (1)
80
_projectWorkQueue[key] = existingWorkItem.With(item.
InvocationReasons
, item.ActiveMember, item.SpecificAnalyzers, item.IsRetry, item.AsyncToken);
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (1)
93
if (!item.
InvocationReasons
.Contains(PredefinedInvocationReasons.SyntaxChanged))
SolutionCrawler\WorkCoordinator.IncrementalAnalyzerProcessor.cs (3)
171
var reasons = workItem.
InvocationReasons
;
213
if (!workItem.
InvocationReasons
.Contains(PredefinedInvocationReasons.ActiveDocumentSwitched))
269
var reasons = workItem.
InvocationReasons
;
SolutionCrawler\WorkCoordinator.LowPriorityProcessor.cs (1)
142
var reasons = workItem.
InvocationReasons
;
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (7)
76
Processor._logAggregator, item.Language, item.DocumentId, item.
InvocationReasons
, item.IsLowPriority, item.ActiveMember, added);
83
if (!item.
InvocationReasons
.Contains(PredefinedInvocationReasons.HighPriority))
349
if (!isOpen || !workItem.
InvocationReasons
.Contains(PredefinedInvocationReasons.DocumentOpened))
374
if (isOpen || !workItem.
InvocationReasons
.Contains(PredefinedInvocationReasons.DocumentClosed))
402
if (workItem.MustRefresh || !workItem.
InvocationReasons
.Contains(PredefinedInvocationReasons.Reanalyze))
411
var reasons = workItem.
InvocationReasons
;
420
!workItem.
InvocationReasons
.Contains(PredefinedInvocationReasons.SemanticChanged))
SolutionCrawler\WorkCoordinator.WorkItem.cs (7)
61
return
InvocationReasons
.Contains(PredefinedInvocationReasons.DocumentOpened) ||
62
InvocationReasons
.Contains(PredefinedInvocationReasons.DocumentClosed);
110
DocumentId, ProjectId, Language,
InvocationReasons
, IsLowPriority, ActiveMember, SpecificAnalyzers,
124
InvocationReasons
.With(invocationReasons),
146
DocumentId, ProjectId, Language,
InvocationReasons
, IsLowPriority, ActiveMember, SpecificAnalyzers,
159
InvocationReasons
,
168
=> $"{DocumentId?.ToString() ?? ProjectId.ToString()}, ({
InvocationReasons
}), LowPriority:{IsLowPriority}, ActiveMember:{ActiveMember != null}, Retry:{IsRetry}, ({string.Join("|", SpecificAnalyzers.Select(a => a.GetType().Name))})";