4 instantiations of UnitTestingWorkItem
Microsoft.CodeAnalysis.Features (4)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (4)
113
return new
UnitTestingWorkItem
(
137
return new
UnitTestingWorkItem
(
147
return new
UnitTestingWorkItem
(
161
return new
UnitTestingWorkItem
(DocumentId, ProjectId, Language, InvocationReasons,
42 references to UnitTestingWorkItem
Microsoft.CodeAnalysis.Features (42)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
500
var list = new List<
UnitTestingWorkItem
>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (9)
18
private readonly Dictionary<ProjectId, Dictionary<DocumentId,
UnitTestingWorkItem
>> _documentWorkQueue = [];
22
protected override bool TryTake_NoLock(DocumentId key, out
UnitTestingWorkItem
workInfo)
33
SharedPools.BigDefault<Dictionary<DocumentId,
UnitTestingWorkItem
>>().ClearAndFree(documentMap);
44
out
UnitTestingWorkItem
workItem)
91
protected override bool AddOrReplace_NoLock(
UnitTestingWorkItem
item)
102
documentMap.TryGetValue(key, out
var
existingWorkItem))
115
documentMap = SharedPools.BigDefault<Dictionary<DocumentId,
UnitTestingWorkItem
>>().AllocateAndClear();
135
foreach (
var
workItem in map.Values)
140
SharedPools.BigDefault<Dictionary<DocumentId,
UnitTestingWorkItem
>>().ClearAndFree(map);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncProjectWorkItemQueue.cs (6)
19
private readonly Dictionary<ProjectId,
UnitTestingWorkItem
> _projectWorkQueue = [];
33
protected override bool TryTake_NoLock(ProjectId key, out
UnitTestingWorkItem
workInfo)
46
out
UnitTestingWorkItem
workItem)
65
protected override bool AddOrReplace_NoLock(
UnitTestingWorkItem
item)
72
if (_projectWorkQueue.TryGetValue(key, out
var
existingWorkItem))
88
foreach (
var
workItem in _projectWorkQueue.Values)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (6)
35
protected abstract bool AddOrReplace_NoLock(
UnitTestingWorkItem
item);
37
protected abstract bool TryTake_NoLock(TKey key, out
UnitTestingWorkItem
workInfo);
41
out
UnitTestingWorkItem
workItem);
68
public bool AddOrReplace(
UnitTestingWorkItem
item)
189
public bool TryTake(TKey key, out
UnitTestingWorkItem
workInfo, out CancellationToken cancellationToken)
209
out
UnitTestingWorkItem
workItem,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (5)
74
public void Enqueue(
UnitTestingWorkItem
item)
120
TextDocument textDocument, ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers,
UnitTestingWorkItem
workItem, CancellationToken cancellationToken)
150
UnitTestingWorkItem
workItem,
181
private async Task RunBodyAnalyzersAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers,
UnitTestingWorkItem
workItem, Document document, CancellationToken cancellationToken)
269
internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<
UnitTestingWorkItem
> items)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (4)
90
public void Enqueue(
UnitTestingWorkItem
item)
118
private async Task ProcessProjectAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers,
UnitTestingWorkItem
workItem, CancellationToken cancellationToken)
195
internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<
UnitTestingWorkItem
> items)
198
foreach (
var
item in items)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (6)
61
public void Enqueue(
UnitTestingWorkItem
item)
77
private void CheckHigherPriorityDocument(
UnitTestingWorkItem
item)
170
private async Task ProcessDocumentAsync(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers,
UnitTestingWorkItem
workItem, CancellationToken cancellationToken)
249
private async Task ProcessReanalyzeDocumentAsync(
UnitTestingWorkItem
workItem, TextDocument document, CancellationToken cancellationToken)
376
internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<
UnitTestingWorkItem
> items)
378
foreach (
var
item in items)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (5)
111
public
UnitTestingWorkItem
Retry(IAsyncToken asyncToken)
118
public
UnitTestingWorkItem
With(
135
public
UnitTestingWorkItem
WithAsyncToken(IAsyncToken asyncToken)
142
public
UnitTestingWorkItem
ToProjectWorkItem(IAsyncToken asyncToken)
159
public
UnitTestingWorkItem
With(ImmutableHashSet<IUnitTestingIncrementalAnalyzer> specificAnalyzers, IAsyncToken asyncToken)