1 write to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionState.cs (1)
88SortedProjectStates = projectStates;
23 references to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (23)
Workspace\Solution\Solution.cs (1)
127internal ImmutableArray<ProjectState> SortedProjectStates => this.SolutionState.SortedProjectStates;
Workspace\Solution\SolutionCompilationState.cs (1)
111Contract.ThrowIfFalse(this.SolutionState.SortedProjectStates
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
156foreach (var projectState in this.SolutionState.SortedProjectStates)
Workspace\Solution\SolutionState.cs (18)
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); 398using var _3 = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length + projectStates.Count, out var newSortedProjectStatesBuilder); 401newSortedProjectStatesBuilder.AddRange(SortedProjectStates); 466var newProjectStates = SortedProjectStates.WhereAsArray(static (p, projectIdsSet) => !projectIdsSet.Contains(p.Id), projectIdsSet); 927using var _ = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length, out var statesBuilder); 929foreach (var projectState in SortedProjectStates) 1174var newProjectStates = SortedProjectStates.Replace(oldProjectState, newProjectState); 1196foreach (var projectState in @this.SortedProjectStates) 1291foreach (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)