1 write to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionState.cs (1)
88SortedProjectStates = projectStates;
24 references to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (24)
Workspace\Solution\Solution.cs (1)
127internal ImmutableArray<ProjectState> SortedProjectStates => this.SolutionState.SortedProjectStates;
Workspace\Solution\SolutionCompilationState.cs (1)
110Contract.ThrowIfFalse(this.SolutionState.SortedProjectStates
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
156foreach (var projectState in this.SolutionState.SortedProjectStates)
Workspace\Solution\SolutionState.cs (19)
161Contract.ThrowIfFalse(SortedProjectStates.Length == ProjectIds.Count); 162Contract.ThrowIfFalse(SortedProjectStates.Length == _dependencyGraph.ProjectIds.Count); 167Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(ProjectIds)); 168Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(_dependencyGraph.ProjectIds)); 171Debug.Assert(SortedProjectStates.IsSorted()); 187projectStates ??= SortedProjectStates; 202projectStates == SortedProjectStates && 252SortedProjectStates, 264foreach (var project in this.SortedProjectStates) 321=> GetProjectState(SortedProjectStates, projectId); 410using var _3 = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length + projectStates.Count, out var newSortedProjectStatesBuilder); 413newSortedProjectStatesBuilder.AddRange(SortedProjectStates); 478var newProjectStates = SortedProjectStates.WhereAsArray(static (p, projectIdsSet) => !projectIdsSet.Contains(p.Id), projectIdsSet); 939using var _ = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length, out var statesBuilder); 941foreach (var projectState in SortedProjectStates) 1185var projectStateIndex = GetProjectStateIndex(SortedProjectStates, projectId); 1187var newProjectStates = SortedProjectStates.SetItem(projectStateIndex, newProjectState); 1209foreach (var projectState in @this.SortedProjectStates) 1304foreach (var siblingProjectState in this.SortedProjectStates)
Workspace\Solution\SolutionState_Checksum.cs (1)
109foreach (var projectState in this.SortedProjectStates)
Workspace\Solution\StateChecksums.cs (1)
307foreach (var projectState in solution.SortedProjectStates)