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