1 write to OldProject
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectChanges.cs (1)
15OldProject = oldProject;
43 references to OldProject
Microsoft.CodeAnalysis.EditorFeatures (2)
Preview\AbstractPreviewFactoryService.cs (2)
89var oldProject = projectChanges.OldProject; 228var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
422await EnqueueChangedDocumentWorkItemAsync(projectChanges.OldProject.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId)) 427await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 432var oldProject = projectChanges.OldProject;
Microsoft.CodeAnalysis.Workspaces (33)
CodeActions\Operations\ApplyChangesOperation.cs (1)
127var originalDocument = changedProject.OldProject.Solution.GetRequiredTextDocument(documentId);
Workspace\Solution\ProjectChanges.cs (18)
26var oldRefs = new HashSet<ProjectReference>(OldProject.ProjectReferences); 39foreach (var reference in OldProject.ProjectReferences) 50var oldMetadata = new HashSet<MetadataReference>(OldProject.MetadataReferences); 63foreach (var metadata in OldProject.MetadataReferences) 74var oldAnalyzerReferences = new HashSet<AnalyzerReference>(OldProject.AnalyzerReferences); 87foreach (var analyzerReference in OldProject.AnalyzerReferences) 100=> NewProject.State.DocumentStates.GetAddedStateIds(OldProject.State.DocumentStates); 106=> NewProject.State.AdditionalDocumentStates.GetAddedStateIds(OldProject.State.AdditionalDocumentStates); 112=> NewProject.State.AnalyzerConfigDocumentStates.GetAddedStateIds(OldProject.State.AnalyzerConfigDocumentStates); 130=> NewProject.State.DocumentStates.GetChangedStateIds(OldProject.State.DocumentStates, onlyGetDocumentsWithTextChanges, ignoreUnchangeableDocuments); 137=> NewProject.State.AdditionalDocumentStates.GetChangedStateIds(OldProject.State.AdditionalDocumentStates); 144=> NewProject.State.AnalyzerConfigDocumentStates.GetChangedStateIds(OldProject.State.AnalyzerConfigDocumentStates); 147/// Get <see cref="DocumentId"/>s of removed documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 150=> NewProject.State.DocumentStates.GetRemovedStateIds(OldProject.State.DocumentStates); 153/// Get <see cref="DocumentId"/>s of removed additional documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 156=> NewProject.State.AdditionalDocumentStates.GetRemovedStateIds(OldProject.State.AdditionalDocumentStates); 159/// Get <see cref="DocumentId"/>s of removed analyzer config documents in the order they appear in <see cref="Project.DocumentIds"/> of <see cref="OldProject"/>. 162=> NewProject.State.AnalyzerConfigDocumentStates.GetRemovedStateIds(OldProject.State.AnalyzerConfigDocumentStates);
Workspace\Workspace.cs (14)
1631var oldDoc = projectChange.OldProject.GetRequiredDocument(docId); 1696projectChanges.OldProject.CompilationOptions != projectChanges.NewProject.CompilationOptions) 1702Contract.ThrowIfNull(projectChanges.OldProject.CompilationOptions); 1711projectChanges.OldProject.CompilationOptions.SyntaxTreeOptionsProvider); 1713if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1719if (!CanApplyCompilationOptionChange(projectChanges.OldProject.CompilationOptions, newOptionsWithoutSyntaxTreeOptionsChange, projectChanges.NewProject)) 1727projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions && 1728!CanApplyParseOptionChange(projectChanges.OldProject.ParseOptions!, projectChanges.NewProject.ParseOptions!, projectChanges.NewProject)) 1744&& projectChanges.GetChangedDocuments().Any(id => projectChanges.NewProject.GetDocument(id)!.HasInfoChanged(projectChanges.OldProject.GetDocument(id)!))) 1759var document = projectChanges.OldProject.State.DocumentStates.GetState(documentId) ?? 1872projectChanges.OldProject.CompilationOptions!.SyntaxTreeOptionsProvider); 1873if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1879if (projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions) 1995var oldDoc = projectChanges.OldProject.GetDocument(documentId)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
333var 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)
467if (projectChanges.OldProject.FilePath != projectChanges.NewProject.FilePath)
Microsoft.VisualStudio.LanguageServices (2)
Preview\ReferenceChange.cs (1)
31var oldSolution = projectChanges.OldProject.Solution;
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
662var oldDocument = projectChanges.OldProject.GetRequiredDocument(changedDocumentId);