2 writes to _textBuffer
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Workspaces\EditorTestHostDocument.cs (2)
79
_textBuffer
= textBuffer;
153
_textBuffer
= workspace!.GetOrCreateBufferForPath(FilePath, contentType, LanguageServiceProvider.Language, InitialText);
7 references to _textBuffer
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Workspaces\EditorTestHostDocument.cs (7)
148
if (
_textBuffer
== null)
154
_initialTextSnapshot =
_textBuffer
.CurrentSnapshot;
173
workspace.OnSourceGeneratedDocumentOpened(
_textBuffer
.AsTextContainer(), document);
178
workspace.OnDocumentOpened(linkedId,
_textBuffer
.AsTextContainer(), isCurrentContext: !testDocument.IsLinkFile);
183
workspace.OnAdditionalDocumentOpened(linkedId,
_textBuffer
.AsTextContainer());
187
workspace.OnAnalyzerConfigDocumentOpened(linkedId,
_textBuffer
.AsTextContainer());
192
return
_textBuffer
;