1 write to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionState.cs (1)
96SortedProjectStates = projectStates;
29 references to SortedProjectStates
Microsoft.CodeAnalysis.Features (1)
Workspace\CompileTimeSolutionProvider.cs (1)
103foreach (var projectState in compileTimeSolution.SolutionState.SortedProjectStates)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\SolutionAssetCache.cs (1)
182foreach (var projectState in solutionState.SortedProjectStates)
Microsoft.CodeAnalysis.Workspaces (27)
Workspace\Solution\Solution.cs (1)
126internal ImmutableArray<ProjectState> SortedProjectStates => this.SolutionState.SortedProjectStates;
Workspace\Solution\SolutionCompilationState.cs (4)
110Contract.ThrowIfFalse(this.SolutionState.SortedProjectStates 1569using var _ = ArrayBuilder<ProjectState>.GetInstance(this.SolutionState.SortedProjectStates.Length, out var newSortedProjectStatesBuilder); 1570newSortedProjectStatesBuilder.AddRange(this.SolutionState.SortedProjectStates); 1613var newProjectStates = projectStateChanged ? newSortedProjectStatesBuilder.ToImmutableAndClear() : this.SolutionState.SortedProjectStates;
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
155foreach (var projectState in this.SolutionState.SortedProjectStates)
Workspace\Solution\SolutionState.cs (19)
169Contract.ThrowIfFalse(SortedProjectStates.Length == ProjectIds.Count); 170Contract.ThrowIfFalse(SortedProjectStates.Length == _dependencyGraph.ProjectIds.Count); 175Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(ProjectIds)); 176Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(_dependencyGraph.ProjectIds)); 179Debug.Assert(SortedProjectStates.IsSorted()); 195projectStates ??= SortedProjectStates; 210projectStates == SortedProjectStates && 266SortedProjectStates, 278foreach (var project in this.SortedProjectStates) 335=> GetProjectState(SortedProjectStates, projectId); 424using var _3 = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length + projectStates.Count, out var newSortedProjectStatesBuilder); 427newSortedProjectStatesBuilder.AddRange(SortedProjectStates); 492var newProjectStates = SortedProjectStates.WhereAsArray(static (p, projectIdsSet) => !projectIdsSet.Contains(p.Id), projectIdsSet); 949using var _ = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length, out var statesBuilder); 951foreach (var projectState in SortedProjectStates) 1195var projectStateIndex = GetProjectStateIndex(SortedProjectStates, projectId); 1197var newProjectStates = SortedProjectStates.SetItem(projectStateIndex, newProjectState); 1219foreach (var projectState in @this.SortedProjectStates) 1315foreach (var siblingProjectState in this.SortedProjectStates)
Workspace\Solution\SolutionState_Checksum.cs (1)
109foreach (var projectState in this.SortedProjectStates)
Workspace\Solution\StateChecksums.cs (1)
305foreach (var projectState in solution.SortedProjectStates)