1 write to OldProject
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectChanges.cs (1)
16
OldProject
= oldProject;
45 references to OldProject
Microsoft.CodeAnalysis.EditorFeatures (4)
Preview\AbstractPreviewFactoryService.cs (4)
89
var oldProject = projectChanges.
OldProject
;
216
previewItems.Add(new SolutionPreviewItem(projectChanges.
OldProject
.Id, documentId: null,
217
string.Format(EditorFeaturesResources.Changing_project_references_for_0, projectChanges.
OldProject
.Name)));
228
var oldProjectReferences = projectChanges.
OldProject
.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
432
await EnqueueChangedDocumentWorkItemAsync(projectChanges.
OldProject
.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId))
437
await EnqueueDocumentWorkItemAsync(projectChanges.
OldProject
, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false);
442
var oldProject = projectChanges.
OldProject
;
Microsoft.CodeAnalysis.Workspaces (33)
CodeActions\Operations\ApplyChangesOperation.cs (1)
127
var 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)
1625
var oldDoc = projectChange.
OldProject
.GetRequiredDocument(docId);
1690
projectChanges.
OldProject
.CompilationOptions != projectChanges.NewProject.CompilationOptions)
1696
Contract.ThrowIfNull(projectChanges.
OldProject
.CompilationOptions);
1705
projectChanges.
OldProject
.CompilationOptions.SyntaxTreeOptionsProvider);
1707
if (projectChanges.
OldProject
.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange)
1713
if (!CanApplyCompilationOptionChange(projectChanges.
OldProject
.CompilationOptions, newOptionsWithoutSyntaxTreeOptionsChange, projectChanges.NewProject))
1721
projectChanges.
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)!)))
1753
var document = projectChanges.
OldProject
.State.DocumentStates.GetState(documentId) ??
1866
projectChanges.
OldProject
.CompilationOptions!.SyntaxTreeOptionsProvider);
1867
if (projectChanges.
OldProject
.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange)
1873
if (projectChanges.
OldProject
.ParseOptions != projectChanges.NewProject.ParseOptions)
1989
var oldDoc = projectChanges.
OldProject
.GetDocument(documentId)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
335
var project = projectChanges.
OldProject
?? projectChanges.NewProject;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
SolutionUtilities.cs (1)
36
return solutionDifferences.GetProjectChanges().Select(n => n.NewProject.GetChanges(n.
OldProject
));
Workspaces\TestWorkspace`1.cs (1)
452
if (projectChanges.
OldProject
.FilePath != projectChanges.NewProject.FilePath)
Microsoft.VisualStudio.LanguageServices (2)
Preview\ReferenceChange.cs (1)
31
var oldSolution = projectChanges.
OldProject
.Solution;
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
612
var oldDocument = projectChanges.
OldProject
.GetRequiredDocument(changedDocumentId);