54 references to UnitTestingInvocationReasons
Microsoft.CodeAnalysis.Features (54)
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 (1)
15
public static readonly
UnitTestingInvocationReasons
Empty = new([]);
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons_Constants.cs (7)
13
public static readonly
UnitTestingInvocationReasons
DocumentAdded =
17
public static readonly
UnitTestingInvocationReasons
DocumentRemoved =
21
public static readonly
UnitTestingInvocationReasons
ProjectConfigurationChanged =
25
public static readonly
UnitTestingInvocationReasons
DocumentChanged =
29
public static readonly
UnitTestingInvocationReasons
AdditionalDocumentChanged =
33
public static readonly
UnitTestingInvocationReasons
SemanticChanged =
37
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)
155
EnqueueFullSolutionEvent(args.NewSolution,
UnitTestingInvocationReasons
.DocumentAdded);
170
EnqueueFullProjectEvent(args.NewSolution, args.ProjectId,
UnitTestingInvocationReasons
.DocumentAdded);
181
EnqueueFullProjectEvent(args.OldSolution, args.ProjectId,
UnitTestingInvocationReasons
.DocumentRemoved);
186
EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId,
UnitTestingInvocationReasons
.DocumentAdded);
197
EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId,
UnitTestingInvocationReasons
.DocumentRemoved);
210
EnqueueFullProjectEvent(args.NewSolution, args.ProjectId,
UnitTestingInvocationReasons
.AdditionalDocumentChanged);
228
await EnqueueFullProjectWorkItemAsync(addedProject,
UnitTestingInvocationReasons
.DocumentAdded).ConfigureAwait(false);
238
await EnqueueFullProjectWorkItemAsync(removedProject,
UnitTestingInvocationReasons
.DocumentRemoved).ConfigureAwait(false);
243
private void EnqueueFullSolutionEvent(Solution solution,
UnitTestingInvocationReasons
invocationReasons)
267
private void EnqueueFullProjectEvent(Solution solution, ProjectId projectId,
UnitTestingInvocationReasons
invocationReasons)
273
private void EnqueueFullDocumentEvent(Solution solution, DocumentId documentId,
UnitTestingInvocationReasons
invocationReasons)
310
EnqueueFullDocumentEvent(oldSolution, oldDocumentId,
UnitTestingInvocationReasons
.DocumentRemoved);
319
EnqueueFullDocumentEvent(newSolution, newDocumentId,
UnitTestingInvocationReasons
.DocumentAdded);
331
private async Task EnqueueDocumentWorkItemAsync(Project project, DocumentId documentId, TextDocument? document,
UnitTestingInvocationReasons
invocationReasons, SyntaxNode? changedMember = null)
371
private async Task EnqueueFullProjectWorkItemAsync(Project project,
UnitTestingInvocationReasons
invocationReasons)
394
var
invocationReasons =
395
UnitTestingInvocationReasons
.Reanalyze;
402
IUnitTestingIncrementalAnalyzer analyzer, Project project, DocumentId documentId, Document? document,
UnitTestingInvocationReasons
invocationReasons)
418
await EnqueueDocumentWorkItemAsync(projectChanges.NewProject, addedDocumentId, document: null,
UnitTestingInvocationReasons
.DocumentAdded).ConfigureAwait(false);
427
await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null,
UnitTestingInvocationReasons
.DocumentRemoved).ConfigureAwait(false);
436
var projectConfigurationChange =
UnitTestingInvocationReasons
.Empty;
455
projectConfigurationChange = projectConfigurationChange.With(
UnitTestingInvocationReasons
.ProjectConfigurationChanged);
472
await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument,
UnitTestingInvocationReasons
.DocumentChanged).ConfigureAwait(false);
506
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,