2 writes to _textBuffer
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Workspaces\TestHostDocument.cs (2)
155_textBuffer = textBuffer; 260_textBuffer = workspace!.GetOrCreateBufferForPath(FilePath, contentType, _languageServiceProvider.Language, _initialText);
7 references to _textBuffer
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Workspaces\TestHostDocument.cs (7)
255if (_textBuffer == null) 261_initialTextSnapshot = _textBuffer.CurrentSnapshot; 280workspace.OnSourceGeneratedDocumentOpened(_textBuffer.AsTextContainer(), document); 285workspace.OnDocumentOpened(linkedId, _textBuffer.AsTextContainer(), isCurrentContext: !testDocument.IsLinkFile); 290workspace.OnAdditionalDocumentOpened(linkedId, _textBuffer.AsTextContainer()); 294workspace.OnAnalyzerConfigDocumentOpened(linkedId, _textBuffer.AsTextContainer()); 299return _textBuffer;