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