1 write to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\PreviewTests.cs (1)
57=> _oldDocument = document;
6 references to _oldDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
CodeActions\PreviewTests.cs (6)
70var solution = _oldDocument.Project.Solution; 73solution = solution.AddDocument(DocumentId.CreateNewId(_oldDocument.Project.Id, AddedDocumentName), AddedDocumentName, AddedDocumentText); 76var removedReference = _oldDocument.Project.MetadataReferences[_oldDocument.Project.MetadataReferences.Count - 1]; 78solution = solution.RemoveMetadataReference(_oldDocument.Project.Id, removedReference); 84solution = solution.WithDocumentSyntaxRoot(_oldDocument.Id, CSharpSyntaxTree.ParseText(ChangedDocumentText, cancellationToken: cancellationToken).GetRoot(cancellationToken));