13 references to ProjectState
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.AnalysisData.cs (1)
119
var
state = stateSet.GetOrCreateProjectState(project.Id);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (11)
29
private readonly ConcurrentDictionary<ProjectId,
ProjectState
> _projectStates;
38
_projectStates = new ConcurrentDictionary<ProjectId,
ProjectState
>(concurrencyLevel: 2, capacity: 1);
80
if (_projectStates.TryGetValue(projectId, out
var
projectState) && !projectState.IsEmpty())
90
=> _projectStates.TryGetValue(projectId, out
var
projectState) && projectState.FromBuild;
95
public bool TryGetProjectState(ProjectId projectId, [NotNullWhen(true)] out
ProjectState
? state)
101
public
ProjectState
GetOrCreateProjectState(ProjectId projectId)
107
if (!TryGetProjectState(document.Project.Id, out
var
projectState) ||
136
var
projectState = GetOrCreateProjectState(document.Project.Id);
152
if (TryGetProjectState(document.Project.Id, out
var
projectState))
170
if (_projectStates.TryGetValue(id.ProjectId, out
var
state))
181
if (_projectStates.TryRemove(id, out
var
state))
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
44
var
state = stateSet.GetOrCreateProjectState(project.Id);