2 writes to _textBuffer
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Workspaces\EditorTestHostDocument.cs (2)
77
_textBuffer
= textBuffer;
151
_textBuffer
= workspace!.GetOrCreateBufferForPath(FilePath, contentType, LanguageServiceProvider.Language, InitialText);
7 references to _textBuffer
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Workspaces\EditorTestHostDocument.cs (7)
146
if (
_textBuffer
== null)
152
_initialTextSnapshot =
_textBuffer
.CurrentSnapshot;
171
workspace.OnSourceGeneratedDocumentOpened(
_textBuffer
.AsTextContainer(), document);
176
workspace.OnDocumentOpened(linkedId,
_textBuffer
.AsTextContainer(), isCurrentContext: !testDocument.IsLinkFile);
181
workspace.OnAdditionalDocumentOpened(linkedId,
_textBuffer
.AsTextContainer());
185
workspace.OnAnalyzerConfigDocumentOpened(linkedId,
_textBuffer
.AsTextContainer());
190
return
_textBuffer
;