1 instantiation of TextBufferContainer
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.TextBufferContainer.cs (1)
49return s_textContainerMap.GetValue(buffer, static buffer => new TextBufferContainer(buffer));
13 references to TextBufferContainer
Microsoft.CodeAnalysis.EditorFeatures.Text (13)
Extensions.cs (2)
15=> TextBufferContainer.From(buffer); 21=> (textContainer as TextBufferContainer)?.TryFindEditorTextBuffer();
Extensions.SnapshotSourceText.cs (8)
36private readonly TextBufferContainer? _container; 38private SnapshotSourceText(ITextBufferCloneService? textBufferCloneService, ITextSnapshot editorSnapshot, Encoding? encoding, SourceHashAlgorithm checksumAlgorithm, TextBufferContainer container) 49public SnapshotSourceText(ITextBufferCloneService? textBufferCloneService, ITextImage textImage, Encoding? encoding, SourceHashAlgorithm checksumAlgorithm, TextBufferContainer? container) 82var container = TextBufferContainer.From(editorSnapshot.TextBuffer); 95internal static SourceText From(ITextBufferCloneService? textBufferCloneService, ITextSnapshot editorSnapshot, TextBufferContainer container) 282: base(textBufferCloneService, currentSnapshot, baseText.Encoding, baseText.ChecksumAlgorithm, container: TextBufferContainer.From(currentSnapshot.TextBuffer)) 332if (this.Container is TextBufferContainer container)
Extensions.TextBufferContainer.cs (2)
40private static readonly ConditionalWeakTable<ITextBuffer, TextBufferContainer> s_textContainerMap = new(); 42public static TextBufferContainer From(ITextBuffer buffer)
ExternalAccess\VSTypeScript\Api\VSTypeScriptTextBufferExtensions.cs (1)
13=> Text.Extensions.TextBufferContainer.From(buffer);