3 writes to _currentDocument
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Workspaces\TestWorkspaceFixture.cs (3)
43
_currentDocument
= _workspace.Documents.First(d => d.CursorPosition.HasValue);
52
_currentDocument
= workspace.Documents.Single();
67
_currentDocument
= null;
4 references to _currentDocument
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Workspaces\TestWorkspaceFixture.cs (4)
24
public EditorTestHostDocument CurrentDocument =>
_currentDocument
?? _workspace.Documents.Single();
44
Position =
_currentDocument
.CursorPosition.Value;
45
Code =
_currentDocument
.GetTextBuffer().CurrentSnapshot.GetText();
80
var hostDocument =
_currentDocument
?? (GetWorkspace()).Documents.Single();