1 write to OldProject
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectChanges.cs (1)
15
OldProject
= oldProject;
43 references to OldProject
Microsoft.CodeAnalysis.EditorFeatures (2)
Preview\AbstractPreviewFactoryService.cs (2)
89
var oldProject = projectChanges.
OldProject
;
228
var oldProjectReferences = projectChanges.
OldProject
.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
422
await EnqueueChangedDocumentWorkItemAsync(projectChanges.
OldProject
.GetRequiredDocument(changedDocumentId), projectChanges.NewProject.GetRequiredDocument(changedDocumentId))
427
await EnqueueDocumentWorkItemAsync(projectChanges.
OldProject
, removedDocumentId, document: null, UnitTestingInvocationReasons.DocumentRemoved).ConfigureAwait(false);
432
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
var oldRefs = new HashSet<ProjectReference>(
OldProject
.ProjectReferences);
39
foreach (var reference in
OldProject
.ProjectReferences)
50
var oldMetadata = new HashSet<MetadataReference>(
OldProject
.MetadataReferences);
63
foreach (var metadata in
OldProject
.MetadataReferences)
74
var oldAnalyzerReferences = new HashSet<AnalyzerReference>(
OldProject
.AnalyzerReferences);
87
foreach (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)
1631
var oldDoc = projectChange.
OldProject
.GetRequiredDocument(docId);
1696
projectChanges.
OldProject
.CompilationOptions != projectChanges.NewProject.CompilationOptions)
1702
Contract.ThrowIfNull(projectChanges.
OldProject
.CompilationOptions);
1711
projectChanges.
OldProject
.CompilationOptions.SyntaxTreeOptionsProvider);
1713
if (projectChanges.
OldProject
.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange)
1719
if (!CanApplyCompilationOptionChange(projectChanges.
OldProject
.CompilationOptions, newOptionsWithoutSyntaxTreeOptionsChange, projectChanges.NewProject))
1727
projectChanges.
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)!)))
1759
var document = projectChanges.
OldProject
.State.DocumentStates.GetState(documentId) ??
1872
projectChanges.
OldProject
.CompilationOptions!.SyntaxTreeOptionsProvider);
1873
if (projectChanges.
OldProject
.CompilationOptions != newOptionsWithoutSyntaxTreeOptionsChange)
1879
if (projectChanges.
OldProject
.ParseOptions != projectChanges.NewProject.ParseOptions)
1995
var oldDoc = projectChanges.
OldProject
.GetDocument(documentId)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
333
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)
467
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)
662
var oldDocument = projectChanges.
OldProject
.GetRequiredDocument(changedDocumentId);