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