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