1 write to OldProject
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectChanges.cs (1)
16OldProject = oldProject;
45 references to OldProject
Microsoft.CodeAnalysis.EditorFeatures (4)
Preview\AbstractPreviewFactoryService.cs (4)
89var oldProject = projectChanges.OldProject; 216previewItems.Add(new SolutionPreviewItem(projectChanges.OldProject.Id, documentId: null, 217string.Format(EditorFeaturesResources.Changing_project_references_for_0, projectChanges.OldProject.Name))); 228var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
432await EnqueueChangedDocumentWorkItemAsync(projectChanges.OldProject.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId)) 437await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 442var oldProject = projectChanges.OldProject;
Microsoft.CodeAnalysis.Workspaces (33)
CodeActions\Operations\ApplyChangesOperation.cs (1)
127var originalDocument = changedProject.OldProject.Solution.GetRequiredTextDocument(documentId);
Workspace\Solution\ProjectChanges.cs (18)
26=> GetChangedProjectReferences(NewProject, OldProject); 29=> GetChangedProjectReferences(OldProject, NewProject); 32=> GetChangedItems(NewProject.MetadataReferences, OldProject.MetadataReferences); 35=> GetChangedItems(OldProject.MetadataReferences, NewProject.MetadataReferences); 38=> GetChangedItems(NewProject.AnalyzerReferences, OldProject.AnalyzerReferences); 41=> GetChangedItems(OldProject.AnalyzerReferences, NewProject.AnalyzerReferences); 47=> NewProject.State.DocumentStates.GetAddedStateIds(OldProject.State.DocumentStates); 53=> NewProject.State.AdditionalDocumentStates.GetAddedStateIds(OldProject.State.AdditionalDocumentStates); 59=> NewProject.State.AnalyzerConfigDocumentStates.GetAddedStateIds(OldProject.State.AnalyzerConfigDocumentStates); 77=> NewProject.State.DocumentStates.GetChangedStateIds(OldProject.State.DocumentStates, onlyGetDocumentsWithTextChanges, ignoreUnchangeableDocuments); 84=> NewProject.State.AdditionalDocumentStates.GetChangedStateIds(OldProject.State.AdditionalDocumentStates); 91=> NewProject.State.AnalyzerConfigDocumentStates.GetChangedStateIds(OldProject.State.AnalyzerConfigDocumentStates); 94/// Get <see cref="DocumentId"/>s of removed documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 97=> NewProject.State.DocumentStates.GetRemovedStateIds(OldProject.State.DocumentStates); 100/// Get <see cref="DocumentId"/>s of removed additional documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 103=> NewProject.State.AdditionalDocumentStates.GetRemovedStateIds(OldProject.State.AdditionalDocumentStates); 106/// Get <see cref="DocumentId"/>s of removed analyzer config documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 109=> NewProject.State.AnalyzerConfigDocumentStates.GetRemovedStateIds(OldProject.State.AnalyzerConfigDocumentStates);
Workspace\Workspace.cs (14)
1625var oldDoc = projectChange.OldProject.GetRequiredDocument(docId); 1690projectChanges.OldProject.CompilationOptions != projectChanges.NewProject.CompilationOptions) 1696Contract.ThrowIfNull(projectChanges.OldProject.CompilationOptions); 1705projectChanges.OldProject.CompilationOptions.SyntaxTreeOptionsProvider); 1707if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1713if (!CanApplyCompilationOptionChange(projectChanges.OldProject.CompilationOptions, newOptionsWithoutSyntaxTreeOptionsChange, projectChanges.NewProject)) 1721projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions && 1722!CanApplyParseOptionChange(projectChanges.OldProject.ParseOptions!, projectChanges.NewProject.ParseOptions!, projectChanges.NewProject)) 1738&& projectChanges.GetChangedDocuments().Any(id => projectChanges.NewProject.GetDocument(id)!.HasInfoChanged(projectChanges.OldProject.GetDocument(id)!))) 1753var document = projectChanges.OldProject.State.DocumentStates.GetState(documentId) ?? 1866projectChanges.OldProject.CompilationOptions!.SyntaxTreeOptionsProvider); 1867if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1873if (projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions) 1989var oldDoc = projectChanges.OldProject.GetDocument(documentId)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
335var project = projectChanges.OldProject ?? projectChanges.NewProject;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
SolutionUtilities.cs (1)
36return solutionDifferences.GetProjectChanges().Select(n => n.NewProject.GetChanges(n.OldProject));
Workspaces\TestWorkspace`1.cs (1)
452if (projectChanges.OldProject.FilePath != projectChanges.NewProject.FilePath)
Microsoft.VisualStudio.LanguageServices (2)
Preview\ReferenceChange.cs (1)
31var oldSolution = projectChanges.OldProject.Solution;
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
612var oldDocument = projectChanges.OldProject.GetRequiredDocument(changedDocumentId);