54 references to UnitTestingInvocationReasons
Microsoft.CodeAnalysis.Features (54)
ExternalAccess\UnitTesting\API\INewUnitTestingIncrementalAnalyzerImplementation.cs (2)
14UnitTestingInvocationReasons reasons, 19UnitTestingInvocationReasons reasons,
ExternalAccess\UnitTesting\API\NewUnitTestingIncrementalAnalyzer.cs (2)
19UnitTestingInvocationReasons reasons, 30UnitTestingInvocationReasons reasons,
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons.cs (1)
15public static readonly UnitTestingInvocationReasons Empty = new([]);
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons_Constants.cs (7)
13public static readonly UnitTestingInvocationReasons DocumentAdded = 17public static readonly UnitTestingInvocationReasons DocumentRemoved = 21public static readonly UnitTestingInvocationReasons ProjectConfigurationChanged = 25public static readonly UnitTestingInvocationReasons DocumentChanged = 29public static readonly UnitTestingInvocationReasons AdditionalDocumentChanged = 33public static readonly UnitTestingInvocationReasons SemanticChanged = 37public static readonly UnitTestingInvocationReasons Reanalyze =
ExternalAccess\UnitTesting\SolutionCrawler\AbstractUnitTestingDocumentDifferenceService.cs (3)
25return new UnitTestingDocumentDifferenceResult(UnitTestingInvocationReasons.DocumentChanged); 33return new UnitTestingDocumentDifferenceResult(UnitTestingInvocationReasons.DocumentChanged); 52return new UnitTestingDocumentDifferenceResult(UnitTestingInvocationReasons.DocumentChanged);
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingDocumentDifferenceService.cs (2)
11internal sealed class UnitTestingDocumentDifferenceResult(UnitTestingInvocationReasons changeType, SyntaxNode? changedMember = null) 13public UnitTestingInvocationReasons ChangeType { get; } = changeType;
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingIncrementalAnalyzer.cs (2)
17UnitTestingInvocationReasons reasons, 22UnitTestingInvocationReasons reasons,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
155CountLogAggregator<object> logAggregator, string language, DocumentId? documentId, UnitTestingInvocationReasons reasons, bool lowPriority, SyntaxPath? activeMember, bool added)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (24)
155EnqueueFullSolutionEvent(args.NewSolution, UnitTestingInvocationReasons.DocumentAdded); 170EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.DocumentAdded); 181EnqueueFullProjectEvent(args.OldSolution, args.ProjectId, UnitTestingInvocationReasons.DocumentRemoved); 186EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentAdded); 197EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentRemoved); 210EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.AdditionalDocumentChanged); 228await EnqueueFullProjectWorkItemAsync(addedProject, UnitTestingInvocationReasons.DocumentAdded).ConfigureAwait(false); 238await EnqueueFullProjectWorkItemAsync(removedProject, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 243private void EnqueueFullSolutionEvent(Solution solution, UnitTestingInvocationReasons invocationReasons) 267private void EnqueueFullProjectEvent(Solution solution, ProjectId projectId, UnitTestingInvocationReasons invocationReasons) 273private void EnqueueFullDocumentEvent(Solution solution, DocumentId documentId, UnitTestingInvocationReasons invocationReasons) 310EnqueueFullDocumentEvent(oldSolution, oldDocumentId, UnitTestingInvocationReasons.DocumentRemoved); 319EnqueueFullDocumentEvent(newSolution, newDocumentId, UnitTestingInvocationReasons.DocumentAdded); 331private async Task EnqueueDocumentWorkItemAsync(Project project, DocumentId documentId, TextDocument? document, UnitTestingInvocationReasons invocationReasons, SyntaxNode? changedMember = null) 371private async Task EnqueueFullProjectWorkItemAsync(Project project, UnitTestingInvocationReasons invocationReasons) 394var invocationReasons = 395UnitTestingInvocationReasons.Reanalyze; 402IUnitTestingIncrementalAnalyzer analyzer, Project project, DocumentId documentId, Document? document, UnitTestingInvocationReasons invocationReasons) 418await EnqueueDocumentWorkItemAsync(projectChanges.NewProject, addedDocumentId, document: null, UnitTestingInvocationReasons.DocumentAdded).ConfigureAwait(false); 427await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 436var projectConfigurationChange = UnitTestingInvocationReasons.Empty; 455projectConfigurationChange = projectConfigurationChange.With(UnitTestingInvocationReasons.ProjectConfigurationChanged); 472await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument, UnitTestingInvocationReasons.DocumentChanged).ConfigureAwait(false); 506list.Add(new UnitTestingWorkItem(document.Id, document.Project.Language, UnitTestingInvocationReasons.DocumentAdded, isLowPriority: false, activeMember: null, EmptyAsyncToken.Instance));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
123var reasons = workItem.InvocationReasons; 187var reasons = workItem.InvocationReasons;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (1)
137var reasons = workItem.InvocationReasons;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
267var reasons = workItem.InvocationReasons;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
392new UnitTestingWorkItem(documentId, project.Language, UnitTestingInvocationReasons.SemanticChanged,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingWorkItem.cs (5)
28public readonly UnitTestingInvocationReasons InvocationReasons; 59UnitTestingInvocationReasons invocationReasons, 82public UnitTestingWorkItem(DocumentId documentId, string language, UnitTestingInvocationReasons invocationReasons, bool isLowPriority, SyntaxPath? activeMember, IAsyncToken asyncToken) 87public UnitTestingWorkItem(DocumentId documentId, string language, UnitTestingInvocationReasons invocationReasons, bool isLowPriority, IUnitTestingIncrementalAnalyzer? analyzer, IAsyncToken asyncToken) 119UnitTestingInvocationReasons invocationReasons, SyntaxPath? currentMember,