57 references to PredefinedInvocationReasons
Microsoft.CodeAnalysis.Features (15)
SolutionCrawler\WorkCoordinator.cs (1)
416
if (invocationReasons.Contains(
PredefinedInvocationReasons
.SemanticChanged) && sourceDocument != null)
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (1)
93
if (!item.InvocationReasons.Contains(
PredefinedInvocationReasons
.SyntaxChanged))
SolutionCrawler\WorkCoordinator.IncrementalAnalyzerProcessor.cs (3)
172
if (workItem.MustRefresh || reasons.Contains(
PredefinedInvocationReasons
.SyntaxChanged))
184
if (workItem.MustRefresh || reasons.Contains(
PredefinedInvocationReasons
.SemanticChanged))
213
if (!workItem.InvocationReasons.Contains(
PredefinedInvocationReasons
.ActiveDocumentSwitched))
SolutionCrawler\WorkCoordinator.LowPriorityProcessor.cs (2)
143
var semanticsChanged = reasons.Contains(
PredefinedInvocationReasons
.SemanticChanged) ||
144
reasons.Contains(
PredefinedInvocationReasons
.SolutionRemoved);
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (6)
83
if (!item.InvocationReasons.Contains(
PredefinedInvocationReasons
.HighPriority))
349
if (!isOpen || !workItem.InvocationReasons.Contains(
PredefinedInvocationReasons
.DocumentOpened))
374
if (isOpen || !workItem.InvocationReasons.Contains(
PredefinedInvocationReasons
.DocumentClosed))
402
if (workItem.MustRefresh || !workItem.InvocationReasons.Contains(
PredefinedInvocationReasons
.Reanalyze))
412
if (!reasons.Contains(
PredefinedInvocationReasons
.SyntaxChanged))
420
!workItem.InvocationReasons.Contains(
PredefinedInvocationReasons
.SemanticChanged))
SolutionCrawler\WorkCoordinator.WorkItem.cs (2)
61
return InvocationReasons.Contains(
PredefinedInvocationReasons
.DocumentOpened) ||
62
InvocationReasons.Contains(
PredefinedInvocationReasons
.DocumentClosed);
Microsoft.CodeAnalysis.Workspaces (42)
ExternalAccess\UnitTesting\Api\UnitTestingInvocationReasonsWrapper.cs (14)
16
public static readonly UnitTestingInvocationReasonsWrapper PredefinedDocumentAdded = new(
PredefinedInvocationReasons
.DocumentAdded);
17
public static readonly UnitTestingInvocationReasonsWrapper PredefinedReanalyze = new(
PredefinedInvocationReasons
.Reanalyze);
18
public static readonly UnitTestingInvocationReasonsWrapper PredefinedSemanticChanged = new(
PredefinedInvocationReasons
.SemanticChanged);
19
public static readonly UnitTestingInvocationReasonsWrapper PredefinedSyntaxChanged = new(
PredefinedInvocationReasons
.SyntaxChanged);
20
public static readonly UnitTestingInvocationReasonsWrapper PredefinedProjectConfigurationChanged = new(
PredefinedInvocationReasons
.ProjectConfigurationChanged);
21
public static readonly UnitTestingInvocationReasonsWrapper PredefinedDocumentOpened = new(
PredefinedInvocationReasons
.DocumentOpened);
22
public static readonly UnitTestingInvocationReasonsWrapper PredefinedDocumentClosed = new(
PredefinedInvocationReasons
.DocumentClosed);
23
public static readonly UnitTestingInvocationReasonsWrapper PredefinedDocumentRemoved = new(
PredefinedInvocationReasons
.DocumentRemoved);
24
public static readonly UnitTestingInvocationReasonsWrapper PredefinedHighPriority = new(
PredefinedInvocationReasons
.HighPriority);
25
public static readonly UnitTestingInvocationReasonsWrapper PredefinedProjectParseOptionsChanged = new(
PredefinedInvocationReasons
.ProjectParseOptionsChanged);
26
public static readonly UnitTestingInvocationReasonsWrapper PredefinedSolutionRemoved = new(
PredefinedInvocationReasons
.SolutionRemoved);
40
=> UnderlyingObject.Contains(
PredefinedInvocationReasons
.Reanalyze);
43
=> UnderlyingObject.Contains(
PredefinedInvocationReasons
.SemanticChanged);
46
=> UnderlyingObject.Contains(
PredefinedInvocationReasons
.ProjectConfigurationChanged);
SolutionCrawler\InvocationReasons_Constants.cs (28)
16
PredefinedInvocationReasons
.DocumentAdded,
17
PredefinedInvocationReasons
.SyntaxChanged,
18
PredefinedInvocationReasons
.SemanticChanged));
23
PredefinedInvocationReasons
.DocumentRemoved,
24
PredefinedInvocationReasons
.SyntaxChanged,
25
PredefinedInvocationReasons
.SemanticChanged,
26
PredefinedInvocationReasons
.HighPriority));
31
PredefinedInvocationReasons
.ProjectParseOptionsChanged,
32
PredefinedInvocationReasons
.SyntaxChanged,
33
PredefinedInvocationReasons
.SemanticChanged));
38
PredefinedInvocationReasons
.ProjectConfigurationChanged,
39
PredefinedInvocationReasons
.SyntaxChanged,
40
PredefinedInvocationReasons
.SemanticChanged));
45
PredefinedInvocationReasons
.SolutionRemoved,
46
PredefinedInvocationReasons
.DocumentRemoved));
51
PredefinedInvocationReasons
.DocumentOpened,
52
PredefinedInvocationReasons
.HighPriority));
57
PredefinedInvocationReasons
.DocumentClosed,
58
PredefinedInvocationReasons
.HighPriority));
63
PredefinedInvocationReasons
.SyntaxChanged,
64
PredefinedInvocationReasons
.SemanticChanged));
69
PredefinedInvocationReasons
.SyntaxChanged,
70
PredefinedInvocationReasons
.SemanticChanged));
75
PredefinedInvocationReasons
.SyntaxChanged));
80
PredefinedInvocationReasons
.SemanticChanged));
83
new(
PredefinedInvocationReasons
.Reanalyze);
86
Reanalyze.With(
PredefinedInvocationReasons
.HighPriority);
89
new(
PredefinedInvocationReasons
.ActiveDocumentSwitched);