16 references to ProjectAnalyzerStateSets
Microsoft.CodeAnalysis.LanguageServer.Protocol (16)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.cs (5)
36
private ImmutableDictionary<ProjectId,
ProjectAnalyzerStateSets
> _projectAnalyzerStateMap;
55
_projectAnalyzerStateMap = ImmutableDictionary<ProjectId,
ProjectAnalyzerStateSets
>.Empty;
67
return _projectAnalyzerStateMap.TryGetValue(projectId, out
var
entry)
88
var
projectStateSets = await GetOrCreateProjectStateSetsAsync(project, cancellationToken).ConfigureAwait(false);
99
var
projectStateSets = await GetOrCreateProjectStateSetsAsync(project, cancellationToken).ConfigureAwait(false);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (1)
33
private HostAnalyzerStateSets GetOrCreateHostStateSets(Project project,
ProjectAnalyzerStateSets
projectStateSets)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.ProjectStates.cs (10)
21
public static readonly
ProjectAnalyzerStateSets
Default = new(
56
private
ProjectAnalyzerStateSets
? TryGetProjectStateSets(Project project)
60
if (_projectAnalyzerStateMap.TryGetValue(project.Id, out
var
entry) &&
69
private async Task<
ProjectAnalyzerStateSets
> GetOrCreateProjectStateSetsAsync(Project project, CancellationToken cancellationToken)
75
private
ProjectAnalyzerStateSets
CreateProjectStateSets(Project project)
79
return
ProjectAnalyzerStateSets
.Default;
86
return
ProjectAnalyzerStateSets
.Default;
97
private async Task<
ProjectAnalyzerStateSets
> UpdateProjectStateSetsAsync(Project project, CancellationToken cancellationToken)
100
ProjectAnalyzerStateSets
? projectStateSets;
130
if (!_projectAnalyzerStateMap.TryGetValue(project.Id, out
var
entry))