57 references to UnitTestingInvocationReasons
Microsoft.CodeAnalysis.Features (57)
ExternalAccess\UnitTesting\API\INewUnitTestingIncrementalAnalyzerImplementation.cs (2)
14
UnitTestingInvocationReasons
reasons,
19
UnitTestingInvocationReasons
reasons,
ExternalAccess\UnitTesting\API\NewUnitTestingIncrementalAnalyzer.cs (2)
19
UnitTestingInvocationReasons
reasons,
30
UnitTestingInvocationReasons
reasons,
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons.cs (4)
15
public static readonly
UnitTestingInvocationReasons
Empty = new(ImmutableHashSet<string>.Empty);
30
public
UnitTestingInvocationReasons
With(
UnitTestingInvocationReasons
invocationReasons)
33
public
UnitTestingInvocationReasons
With(string reason)
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons_Constants.cs (7)
13
public static readonly
UnitTestingInvocationReasons
DocumentAdded =
18
public static readonly
UnitTestingInvocationReasons
DocumentRemoved =
24
public static readonly
UnitTestingInvocationReasons
ProjectConfigurationChanged =
30
public static readonly
UnitTestingInvocationReasons
DocumentChanged =
35
public static readonly
UnitTestingInvocationReasons
AdditionalDocumentChanged =
40
public static readonly
UnitTestingInvocationReasons
SemanticChanged =
45
public static readonly
UnitTestingInvocationReasons
Reanalyze =
ExternalAccess\UnitTesting\SolutionCrawler\AbstractUnitTestingDocumentDifferenceService.cs (3)
25
return new UnitTestingDocumentDifferenceResult(
UnitTestingInvocationReasons
.DocumentChanged);
33
return new UnitTestingDocumentDifferenceResult(
UnitTestingInvocationReasons
.DocumentChanged);
52
return new UnitTestingDocumentDifferenceResult(
UnitTestingInvocationReasons
.DocumentChanged);
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingDocumentDifferenceService.cs (2)
11
internal sealed class UnitTestingDocumentDifferenceResult(
UnitTestingInvocationReasons
changeType, SyntaxNode? changedMember = null)
13
public
UnitTestingInvocationReasons
ChangeType { get; } = changeType;
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingIncrementalAnalyzer.cs (2)
17
UnitTestingInvocationReasons
reasons,
22
UnitTestingInvocationReasons
reasons,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
155
CountLogAggregator<object> logAggregator, string language, DocumentId? documentId,
UnitTestingInvocationReasons
reasons, bool lowPriority, SyntaxPath? activeMember, bool added)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (24)
139
EnqueueFullSolutionEvent(args.NewSolution,
UnitTestingInvocationReasons
.DocumentAdded, eventName);
154
EnqueueFullProjectEvent(args.NewSolution, args.ProjectId,
UnitTestingInvocationReasons
.DocumentAdded, eventName);
165
EnqueueFullProjectEvent(args.OldSolution, args.ProjectId,
UnitTestingInvocationReasons
.DocumentRemoved, eventName);
170
EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId,
UnitTestingInvocationReasons
.DocumentAdded, eventName);
181
EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId,
UnitTestingInvocationReasons
.DocumentRemoved, eventName);
194
EnqueueFullProjectEvent(args.NewSolution, args.ProjectId,
UnitTestingInvocationReasons
.AdditionalDocumentChanged, eventName);
213
await EnqueueFullProjectWorkItemAsync(addedProject,
UnitTestingInvocationReasons
.DocumentAdded).ConfigureAwait(false);
223
await EnqueueFullProjectWorkItemAsync(removedProject,
UnitTestingInvocationReasons
.DocumentRemoved).ConfigureAwait(false);
229
private void EnqueueFullSolutionEvent(Solution solution,
UnitTestingInvocationReasons
invocationReasons, string eventName)
257
private void EnqueueFullProjectEvent(Solution solution, ProjectId projectId,
UnitTestingInvocationReasons
invocationReasons, string eventName)
263
private void EnqueueFullDocumentEvent(Solution solution, DocumentId documentId,
UnitTestingInvocationReasons
invocationReasons, string eventName)
303
EnqueueFullDocumentEvent(oldSolution, oldDocumentId,
UnitTestingInvocationReasons
.DocumentRemoved, "OnWorkspaceChanged");
312
EnqueueFullDocumentEvent(newSolution, newDocumentId,
UnitTestingInvocationReasons
.DocumentAdded, "OnWorkspaceChanged");
325
private async Task EnqueueDocumentWorkItemAsync(Project project, DocumentId documentId, TextDocument? document,
UnitTestingInvocationReasons
invocationReasons, SyntaxNode? changedMember = null)
365
private async Task EnqueueFullProjectWorkItemAsync(Project project,
UnitTestingInvocationReasons
invocationReasons)
388
var
invocationReasons =
389
UnitTestingInvocationReasons
.Reanalyze;
396
IUnitTestingIncrementalAnalyzer analyzer, Project project, DocumentId documentId, Document? document,
UnitTestingInvocationReasons
invocationReasons)
412
await EnqueueDocumentWorkItemAsync(projectChanges.NewProject, addedDocumentId, document: null,
UnitTestingInvocationReasons
.DocumentAdded).ConfigureAwait(false);
421
await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null,
UnitTestingInvocationReasons
.DocumentRemoved).ConfigureAwait(false);
430
var projectConfigurationChange =
UnitTestingInvocationReasons
.Empty;
449
projectConfigurationChange = projectConfigurationChange.With(
UnitTestingInvocationReasons
.ProjectConfigurationChanged);
466
await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument,
UnitTestingInvocationReasons
.DocumentChanged).ConfigureAwait(false);
500
list.Add(new UnitTestingWorkItem(document.Id, document.Project.Language,
UnitTestingInvocationReasons
.DocumentAdded, isLowPriority: false, activeMember: null, EmptyAsyncToken.Instance));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
123
var
reasons = workItem.InvocationReasons;
187
var
reasons = workItem.InvocationReasons;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (1)
137
var
reasons = workItem.InvocationReasons;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
267
var
reasons = workItem.InvocationReasons;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
392
new UnitTestingWorkItem(documentId, project.Language,
UnitTestingInvocationReasons
.SemanticChanged,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (5)
28
public readonly
UnitTestingInvocationReasons
InvocationReasons;
59
UnitTestingInvocationReasons
invocationReasons,
82
public UnitTestingWorkItem(DocumentId documentId, string language,
UnitTestingInvocationReasons
invocationReasons, bool isLowPriority, SyntaxPath? activeMember, IAsyncToken asyncToken)
87
public UnitTestingWorkItem(DocumentId documentId, string language,
UnitTestingInvocationReasons
invocationReasons, bool isLowPriority, IUnitTestingIncrementalAnalyzer? analyzer, IAsyncToken asyncToken)
119
UnitTestingInvocationReasons
invocationReasons, SyntaxPath? currentMember,