1 write to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionState.cs (1)
89SortedProjectStates = projectStates;
27 references to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (27)
Workspace\Solution\Solution.cs (1)
127internal ImmutableArray<ProjectState> SortedProjectStates => this.SolutionState.SortedProjectStates;
Workspace\Solution\SolutionCompilationState.cs (4)
110Contract.ThrowIfFalse(this.SolutionState.SortedProjectStates 1575using var _ = ArrayBuilder<ProjectState>.GetInstance(this.SolutionState.SortedProjectStates.Length, out var newSortedProjectStatesBuilder); 1576newSortedProjectStatesBuilder.AddRange(this.SolutionState.SortedProjectStates); 1619var newProjectStates = projectStateChanged ? newSortedProjectStatesBuilder.ToImmutableAndClear() : this.SolutionState.SortedProjectStates;
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
156foreach (var projectState in this.SolutionState.SortedProjectStates)
Workspace\Solution\SolutionState.cs (19)
162Contract.ThrowIfFalse(SortedProjectStates.Length == ProjectIds.Count); 163Contract.ThrowIfFalse(SortedProjectStates.Length == _dependencyGraph.ProjectIds.Count); 168Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(ProjectIds)); 169Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(_dependencyGraph.ProjectIds)); 172Debug.Assert(SortedProjectStates.IsSorted()); 188projectStates ??= SortedProjectStates; 203projectStates == SortedProjectStates && 253SortedProjectStates, 265foreach (var project in this.SortedProjectStates) 322=> GetProjectState(SortedProjectStates, projectId); 411using var _3 = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length + projectStates.Count, out var newSortedProjectStatesBuilder); 414newSortedProjectStatesBuilder.AddRange(SortedProjectStates); 479var newProjectStates = SortedProjectStates.WhereAsArray(static (p, projectIdsSet) => !projectIdsSet.Contains(p.Id), projectIdsSet); 936using var _ = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length, out var statesBuilder); 938foreach (var projectState in SortedProjectStates) 1182var projectStateIndex = GetProjectStateIndex(SortedProjectStates, projectId); 1184var newProjectStates = SortedProjectStates.SetItem(projectStateIndex, newProjectState); 1206foreach (var projectState in @this.SortedProjectStates) 1302foreach (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)