1 write to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\PreviewTests.cs (1)
56
=>
_oldDocument
= document;
6 references to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
CodeActions\PreviewTests.cs (6)
69
var solution =
_oldDocument
.Project.Solution;
72
solution = solution.AddDocument(DocumentId.CreateNewId(
_oldDocument
.Project.Id, AddedDocumentName), AddedDocumentName, AddedDocumentText);
75
var removedReference =
_oldDocument
.Project.MetadataReferences[
_oldDocument
.Project.MetadataReferences.Count - 1];
77
solution = solution.RemoveMetadataReference(
_oldDocument
.Project.Id, removedReference);
83
solution = solution.WithDocumentSyntaxRoot(
_oldDocument
.Id, CSharpSyntaxTree.ParseText(ChangedDocumentText, cancellationToken: cancellationToken).GetRoot(cancellationToken));