3 writes to Solution
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (3)
24
=>
Solution
= startingSolution;
43
Solution
= newSolution;
100
Solution
= newSolution;
24 references to Solution
Microsoft.CodeAnalysis.Workspaces (24)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (4)
426
_documentTextLoaderChangedAction(solutionChanges.
Solution
, documentId, textLoader),
542
newSolution: addDocuments(solutionChanges.
Solution
, _documentsAddedInBatch.ToImmutable()),
560
solutionChanges.UpdateSolutionForRemovedDocumentAction(removeDocuments(solutionChanges.
Solution
, _documentsRemovedInBatch.ToImmutableArray()),
571
solutionChanges.
Solution
.WithProjectDocumentsOrder(_project.Id, _orderedDocumentsInBatch));
Workspace\ProjectSystem\ProjectSystemProject.cs (9)
216
(solutionChanges, oldValue) => solutionChanges.UpdateSolutionForProjectAction(Id, updateSolution(solutionChanges.
Solution
)),
310
solutionChanges.UpdateSolutionForProjectAction(Id, withNewValue(solutionChanges.
Solution
));
568
solutionChanges.
Solution
.RemoveProjectReference(Id, projectReference));
580
newSolution: solutionChanges.
Solution
.RemoveMetadataReference(Id, metadataReference));
609
solutionChanges.
Solution
.AddProjectReferences(Id, projectReferencesCreated)
618
newSolution: solutionChanges.
Solution
.AddProjectReferences(Id, _projectReferencesAddedInBatch));
626
newSolution: solutionChanges.
Solution
.RemoveProjectReference(Id, projectReference));
634
newSolution: solutionChanges.
Solution
.AddAnalyzerReferences(Id, _analyzersAddedInBatch.Select(a => a.GetReference())));
642
newSolution: solutionChanges.
Solution
.RemoveAnalyzerReference(Id, analyzerReference.GetReference()));
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (8)
244
_ => solutionChanges.
Solution
,
403
foreach (var projectIdToRetarget in solutionChanges.
Solution
.ProjectIds)
405
if (CanConvertMetadataReferenceToProjectReference(solutionChanges.
Solution
, projectIdToRetarget, referencedProjectId: projectIdToReference))
409
foreach (PortableExecutableReference reference in solutionChanges.
Solution
.GetProjectState(projectIdToRetarget)!.MetadataReferences)
416
var newSolution = solutionChanges.
Solution
.RemoveMetadataReference(projectIdToRetarget, reference)
487
foreach (var projectIdToRetarget in solutionChanges.
Solution
.ProjectIds)
506
var newSolution = solutionChanges.
Solution
.RemoveProjectReference(projectIdToRetarget, convertedReference.projectReference)
641
var newSolution = solutionChanges.
Solution
.RemoveMetadataReference(project.Id, portableExecutableReference)
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (3)
10
/// A little helper type to hold onto the <see cref="
Solution
"/> being updated in a batch, which also
38
if (
Solution
== newSolution)
95
if (
Solution
== newSolution)