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