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)
255
if (
_textBuffer
== null)
261
_initialTextSnapshot =
_textBuffer
.CurrentSnapshot;
280
workspace.OnSourceGeneratedDocumentOpened(
_textBuffer
.AsTextContainer(), document);
285
workspace.OnDocumentOpened(linkedId,
_textBuffer
.AsTextContainer(), isCurrentContext: !testDocument.IsLinkFile);
290
workspace.OnAdditionalDocumentOpened(linkedId,
_textBuffer
.AsTextContainer());
294
workspace.OnAnalyzerConfigDocumentOpened(linkedId,
_textBuffer
.AsTextContainer());
299
return
_textBuffer
;