57 references to UnitTestingInvocationReasons
Microsoft.CodeAnalysis.Features (57)
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 (4)
15public static readonly UnitTestingInvocationReasons Empty = new(ImmutableHashSet<string>.Empty); 30public UnitTestingInvocationReasons With(UnitTestingInvocationReasons invocationReasons) 33public UnitTestingInvocationReasons With(string reason)
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons_Constants.cs (7)
13public static readonly UnitTestingInvocationReasons DocumentAdded = 18public static readonly UnitTestingInvocationReasons DocumentRemoved = 24public static readonly UnitTestingInvocationReasons ProjectConfigurationChanged = 30public static readonly UnitTestingInvocationReasons DocumentChanged = 35public static readonly UnitTestingInvocationReasons AdditionalDocumentChanged = 40public static readonly UnitTestingInvocationReasons SemanticChanged = 45public 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)
139EnqueueFullSolutionEvent(args.NewSolution, UnitTestingInvocationReasons.DocumentAdded, eventName); 154EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.DocumentAdded, eventName); 165EnqueueFullProjectEvent(args.OldSolution, args.ProjectId, UnitTestingInvocationReasons.DocumentRemoved, eventName); 170EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentAdded, eventName); 181EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentRemoved, eventName); 194EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.AdditionalDocumentChanged, eventName); 213await EnqueueFullProjectWorkItemAsync(addedProject, UnitTestingInvocationReasons.DocumentAdded).ConfigureAwait(false); 223await EnqueueFullProjectWorkItemAsync(removedProject, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 229private void EnqueueFullSolutionEvent(Solution solution, UnitTestingInvocationReasons invocationReasons, string eventName) 257private void EnqueueFullProjectEvent(Solution solution, ProjectId projectId, UnitTestingInvocationReasons invocationReasons, string eventName) 263private void EnqueueFullDocumentEvent(Solution solution, DocumentId documentId, UnitTestingInvocationReasons invocationReasons, string eventName) 303EnqueueFullDocumentEvent(oldSolution, oldDocumentId, UnitTestingInvocationReasons.DocumentRemoved, "OnWorkspaceChanged"); 312EnqueueFullDocumentEvent(newSolution, newDocumentId, UnitTestingInvocationReasons.DocumentAdded, "OnWorkspaceChanged"); 325private async Task EnqueueDocumentWorkItemAsync(Project project, DocumentId documentId, TextDocument? document, UnitTestingInvocationReasons invocationReasons, SyntaxNode? changedMember = null) 365private async Task EnqueueFullProjectWorkItemAsync(Project project, UnitTestingInvocationReasons invocationReasons) 388var invocationReasons = 389UnitTestingInvocationReasons.Reanalyze; 396IUnitTestingIncrementalAnalyzer analyzer, Project project, DocumentId documentId, Document? document, UnitTestingInvocationReasons invocationReasons) 412await EnqueueDocumentWorkItemAsync(projectChanges.NewProject, addedDocumentId, document: null, UnitTestingInvocationReasons.DocumentAdded).ConfigureAwait(false); 421await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 430var projectConfigurationChange = UnitTestingInvocationReasons.Empty; 449projectConfigurationChange = projectConfigurationChange.With(UnitTestingInvocationReasons.ProjectConfigurationChanged); 466await EnqueueDocumentWorkItemAsync(newDocument.Project, newDocument.Id, newDocument, UnitTestingInvocationReasons.DocumentChanged).ConfigureAwait(false); 500list.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,