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