2 writes to Solution
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (2)
40
Solution
= newSolution;
97
Solution
= newSolution;
27 references to Solution
Microsoft.CodeAnalysis.Workspaces (27)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (4)
438
_documentTextLoaderChangedAction(solutionChanges.
Solution
, documentId, textLoader),
594
newSolution: addDocuments(solutionChanges.
Solution
, documentsAddedInBatch),
611
solutionChanges.UpdateSolutionForRemovedDocumentAction(removeDocuments(solutionChanges.
Solution
, documentsRemovedInBatch),
620
solutionChanges.
Solution
.WithProjectDocumentsOrder(projectId, orderedDocumentsInBatch));
Workspace\ProjectSystem\ProjectSystemProject.cs (11)
227
solutionChanges.UpdateSolutionForProjectAction(Id, updateSolution(solutionChanges.
Solution
));
340
solutionChanges.UpdateSolutionForProjectAction(Id, withNewValue(solutionChanges.
Solution
));
590
var projectBeforeMutations = solutionChanges.
Solution
.GetRequiredProject(Id);
693
projectId, solutionChanges.
Solution
.RemoveProjectReference(projectId, projectReference));
704
projectId, solutionChanges.
Solution
.RemoveMetadataReference(projectId, metadataReference));
719
projectBeforeMutation.State, path, properties, projectUpdateState, solutionChanges.
Solution
, out var projectReference);
727
var metadataReference = CreateMetadataReference_NoLock(path, properties, solutionChanges.
Solution
.Services);
737
solutionChanges.
Solution
753
projectId, solutionChanges.
Solution
.AddProjectReferences(projectId, projectReferencesAddedInBatch));
759
projectId, solutionChanges.
Solution
.RemoveProjectReference(projectId, projectReference));
775
solutionChanges.
Solution
, projectId, projectUpdateState, analyzersRemovedInBatch, analyzersAddedInBatch);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (9)
329
return solutionChanges.
Solution
;
554
var candidateProjectState = solutionChanges.
Solution
.GetRequiredProjectState(projectIdToReference);
556
foreach (var projectToRetarget in solutionChanges.
Solution
.SortedProjectStates)
563
CanConvertMetadataReferenceToProjectReference(solutionChanges.
Solution
, projectToRetarget, candidateProjectState))
573
var newSolution = solutionChanges.
Solution
650
foreach (var projectIdToRetarget in solutionChanges.
Solution
.ProjectIds)
670
var newSolution = solutionChanges.
Solution
.RemoveProjectReference(projectIdToRetarget, convertedReference.ProjectReference)
878
var initialSolution = solutionChanges.
Solution
;
893
var newSolution = solutionChanges.
Solution
;
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (3)
10
/// A little helper type to hold onto the <see cref="
Solution
"/> being updated in a batch, which also
35
if (
Solution
== newSolution)
92
if (
Solution
== newSolution)