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)
88var oldProject = projectChanges.OldProject; 227var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
416await EnqueueChangedDocumentWorkItemAsync(projectChanges.OldProject.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId)) 421await EnqueueDocumentWorkItemAsync(projectChanges.OldProject, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false); 426var 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)
1587var oldDoc = projectChange.OldProject.GetRequiredDocument(docId); 1652projectChanges.OldProject.CompilationOptions != projectChanges.NewProject.CompilationOptions) 1658Contract.ThrowIfNull(projectChanges.OldProject.CompilationOptions); 1667projectChanges.OldProject.CompilationOptions.SyntaxTreeOptionsProvider); 1669if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1675if (!CanApplyCompilationOptionChange(projectChanges.OldProject.CompilationOptions, newOptionsWithoutSyntaxTreeOptionsChange, projectChanges.NewProject)) 1683projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions && 1684!CanApplyParseOptionChange(projectChanges.OldProject.ParseOptions!, projectChanges.NewProject.ParseOptions!, projectChanges.NewProject)) 1700&& projectChanges.GetChangedDocuments().Any(id => projectChanges.NewProject.GetDocument(id)!.HasInfoChanged(projectChanges.OldProject.GetDocument(id)!))) 1715var document = projectChanges.OldProject.State.DocumentStates.GetState(documentId) ?? 1828projectChanges.OldProject.CompilationOptions!.SyntaxTreeOptionsProvider); 1829if (projectChanges.OldProject.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange) 1835if (projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions) 1951var 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)
34return 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);