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)
439
_documentTextLoaderChangedAction(solutionChanges.
Solution
, documentId, textLoader),
595
newSolution: addDocuments(solutionChanges.
Solution
, documentsAddedInBatch),
612
solutionChanges.UpdateSolutionForRemovedDocumentAction(removeDocuments(solutionChanges.
Solution
, documentsRemovedInBatch),
621
solutionChanges.
Solution
.WithProjectDocumentsOrder(projectId, orderedDocumentsInBatch));
Workspace\ProjectSystem\ProjectSystemProject.cs (11)
240
solutionChanges.UpdateSolutionForProjectAction(Id, updateSolution(solutionChanges.
Solution
));
353
solutionChanges.UpdateSolutionForProjectAction(Id, withNewValue(solutionChanges.
Solution
));
600
var projectBeforeMutations = solutionChanges.
Solution
.GetRequiredProject(Id);
703
projectId, solutionChanges.
Solution
.RemoveProjectReference(projectId, projectReference));
714
projectId, solutionChanges.
Solution
.RemoveMetadataReference(projectId, metadataReference));
729
projectId, path, properties, projectUpdateState, solutionChanges.
Solution
, out var projectReference);
737
var metadataReference = CreateMetadataReference_NoLock(path, properties, solutionChanges.
Solution
.Services);
747
solutionChanges.
Solution
763
projectId, solutionChanges.
Solution
.AddProjectReferences(projectId, projectReferencesAddedInBatch));
769
projectId, solutionChanges.
Solution
.RemoveProjectReference(projectId, projectReference));
785
solutionChanges.
Solution
, projectId, projectUpdateState, analyzersRemovedInBatch, analyzersAddedInBatch);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (9)
328
return solutionChanges.
Solution
;
551
foreach (var projectIdToRetarget in solutionChanges.
Solution
.ProjectIds)
553
if (CanConvertMetadataReferenceToProjectReference(solutionChanges.
Solution
, projectIdToRetarget, referencedProjectId: projectIdToReference))
557
var projectState = solutionChanges.
Solution
.GetRequiredProjectState(projectIdToRetarget);
566
var newSolution = solutionChanges.
Solution
651
foreach (var projectIdToRetarget in solutionChanges.
Solution
.ProjectIds)
671
var newSolution = solutionChanges.
Solution
.RemoveProjectReference(projectIdToRetarget, convertedReference.ProjectReference)
879
var initialSolution = solutionChanges.
Solution
;
894
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)