1 write to SortedProjectStates
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionState.cs (1)
98SortedProjectStates = projectStates;
29 references to 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)
115Contract.ThrowIfFalse(this.SolutionState.SortedProjectStates 1595using var _ = ArrayBuilder<ProjectState>.GetInstance(this.SolutionState.SortedProjectStates.Length, out var newSortedProjectStatesBuilder); 1596newSortedProjectStatesBuilder.AddRange(this.SolutionState.SortedProjectStates); 1639var 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)
171Contract.ThrowIfFalse(SortedProjectStates.Length == ProjectIds.Count); 172Contract.ThrowIfFalse(SortedProjectStates.Length == _dependencyGraph.ProjectIds.Count); 177Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(ProjectIds)); 178Debug.Assert(SortedProjectStates.Select(static state => state.Id).SetEquals(_dependencyGraph.ProjectIds)); 181Debug.Assert(SortedProjectStates.IsSorted()); 197projectStates ??= SortedProjectStates; 212projectStates == SortedProjectStates && 268SortedProjectStates, 280foreach (var project in this.SortedProjectStates) 337=> GetProjectState(SortedProjectStates, projectId); 423using var _3 = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length + projectStates.Count, out var newSortedProjectStatesBuilder); 426newSortedProjectStatesBuilder.AddRange(SortedProjectStates); 491var newProjectStates = SortedProjectStates.WhereAsArray(static (p, projectIdsSet) => !projectIdsSet.Contains(p.Id), projectIdsSet); 948using var _ = ArrayBuilder<ProjectState>.GetInstance(SortedProjectStates.Length, out var statesBuilder); 950foreach (var projectState in SortedProjectStates) 1194var projectStateIndex = GetProjectStateIndex(SortedProjectStates, projectId); 1196var newProjectStates = SortedProjectStates.SetItem(projectStateIndex, newProjectState); 1218foreach (var projectState in @this.SortedProjectStates) 1318foreach (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)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\ProjectCodeModelFactory.cs (1)
205foreach (var projectState in _visualStudioWorkspace.CurrentSolution.SolutionState.SortedProjectStates)