1 write to DocumentId
Microsoft.CodeAnalysis.Features (1)
SolutionCrawler\WorkCoordinator.WorkItem.cs (1)
79DocumentId = documentId;
26 references to DocumentId
Microsoft.CodeAnalysis.Features (26)
SolutionCrawler\WorkCoordinator.AsyncDocumentWorkItemQueue.cs (3)
97Contract.ThrowIfNull(item.DocumentId); 99Cancel_NoLock(item.DocumentId); 102var key = item.DocumentId;
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (7)
82Contract.ThrowIfFalse(item.DocumentId != null, "can only enqueue a document work item"); 105if (_processor._documentTracker.TryGetActiveDocument() != item.DocumentId) 116Contract.ThrowIfNull(item.DocumentId); 121Logger.Log(FunctionId.WorkCoordinator_ActiveFileEnqueue, s_enqueueLogger, Environment.TickCount, item.DocumentId, !added); 184Contract.ThrowIfNull(workItem.DocumentId); 192var documentId = workItem.DocumentId; 228_workItemQueue.MarkWorkItemDoneFor(workItem.DocumentId);
SolutionCrawler\WorkCoordinator.IncrementalAnalyzerProcessor.cs (1)
106Contract.ThrowIfNull(item.DocumentId);
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (8)
65Contract.ThrowIfFalse(item.DocumentId != null, "can only enqueue a document work item"); 71Logger.Log(FunctionId.WorkCoordinator_DocumentWorker_Enqueue, s_enqueueLogger, Environment.TickCount, item.DocumentId, !added); 76Processor._logAggregator, item.Language, item.DocumentId, item.InvocationReasons, item.IsLowPriority, item.ActiveMember, added); 81Contract.ThrowIfFalse(item.DocumentId != null); 88AddHigherPriorityDocument(item.DocumentId); 259Contract.ThrowIfNull(workItem.DocumentId); 267var documentId = workItem.DocumentId; 343_workItemQueue.MarkWorkItemDoneFor(workItem.DocumentId);
SolutionCrawler\WorkCoordinator.WorkItem.cs (7)
105public object Key => DocumentId ?? (object)ProjectId; 110DocumentId, ProjectId, Language, InvocationReasons, IsLowPriority, ActiveMember, SpecificAnalyzers, 123DocumentId, ProjectId, Language, 146DocumentId, ProjectId, Language, InvocationReasons, IsLowPriority, ActiveMember, SpecificAnalyzers, 152RoslynDebug.Assert(DocumentId != null); 157DocumentId.ProjectId, 168=> $"{DocumentId?.ToString() ?? ProjectId.ToString()}, ({InvocationReasons}), LowPriority:{IsLowPriority}, ActiveMember:{ActiveMember != null}, Retry:{IsRetry}, ({string.Join("|", SpecificAnalyzers.Select(a => a.GetType().Name))})";