1 write to ProjectStates
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionState.cs (1)
86
ProjectStates
= idToProjectStateMap;
25 references to ProjectStates
Microsoft.CodeAnalysis.Workspaces (25)
Workspace\Solution\SolutionCompilationState.cs (1)
110
Contract.ThrowIfFalse(this.SolutionState.
ProjectStates
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
165
foreach (var (projectId, projectState) in this.SolutionState.
ProjectStates
)
Workspace\Solution\SolutionState.cs (20)
154
Contract.ThrowIfFalse(
ProjectStates
.Count == ProjectIds.Count);
155
Contract.ThrowIfFalse(
ProjectStates
.Count == _dependencyGraph.ProjectIds.Count);
160
Debug.Assert(
ProjectStates
.Keys.SetEquals(ProjectIds));
161
Debug.Assert(
ProjectStates
.Keys.SetEquals(_dependencyGraph.ProjectIds));
177
idToProjectStateMap ??=
ProjectStates
;
192
idToProjectStateMap ==
ProjectStates
&&
242
ProjectStates
,
254
foreach (var project in this.
ProjectStates
.Values)
266
=> projectId != null &&
ProjectStates
.ContainsKey(projectId);
311
=>
ProjectStates
.TryGetValue(projectId, out var state) ? state : null;
377
var newStateMapBuilder =
ProjectStates
.ToBuilder();
442
var newStateMapBuilder =
ProjectStates
.ToBuilder();
455
AddLanguageCountDelta(ref languageCountDeltas,
ProjectStates
[projectId].Language, amount: -1);
764
!
ProjectStates
.ContainsKey(projectReference.ProjectId))
908
var newProjectStatesMap =
ProjectStates
.ToImmutableDictionary(
1154
Contract.ThrowIfFalse(
ProjectStates
.ContainsKey(projectId));
1155
var newStateMap =
ProjectStates
.SetItem(projectId, newProjectState);
1181
foreach (var (projectId, projectState) in @this.
ProjectStates
)
1266
var relatedProject = relatedProjectIdHint is null ? null : this.
ProjectStates
[relatedProjectIdHint];
1276
foreach (var (_, siblingProjectState) in this.
ProjectStates
)
Workspace\Solution\SolutionState_Checksum.cs (2)
121
var projectState = this.
ProjectStates
[orderedProjectId];
185
if (this.
ProjectStates
.ContainsKey(refProject.ProjectId))
Workspace\Solution\StateChecksums.cs (1)
329
foreach (var (projectId, projectState) in solution.
ProjectStates
)