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