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