2 types derived from SnapshotSourceText
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Extensions.SnapshotSourceText.cs (2)
265internal sealed class ClosedSnapshotSourceText : SnapshotSourceText 276private class ChangedSourceText : SnapshotSourceText
14 references to SnapshotSourceText
Microsoft.CodeAnalysis.EditorFeatures.Text (14)
Extensions.cs (4)
31=> (text as SnapshotSourceText)?.TryFindEditorSnapshot(); 34=> (text as SnapshotSourceText)?.TextImage; 42return SnapshotSourceText.From(textBufferCloneServiceOpt, textSnapshot); 46=> new SnapshotSourceText.ClosedSnapshotSourceText(textBufferCloneServiceOpt, ((ITextSnapshot2)textSnapshot).TextImage, encoding, checksumAlgorithm);
Extensions.SnapshotSourceText.cs (6)
63private static readonly ConditionalWeakTable<ITextSnapshot, SnapshotSourceText> s_textSnapshotMap = new(); 78if (!s_textSnapshotMap.TryGetValue(editorSnapshot, out var snapshot)) 142private readonly SnapshotSourceText _text; 144public LineInfo(SnapshotSourceText text) 278private readonly SnapshotSourceText _baseText; 281public ChangedSourceText(ITextBufferCloneService? textBufferCloneService, SnapshotSourceText baseText, ITextSnapshot baseSnapshot, ITextSnapshot currentSnapshot)
Extensions.TextBufferContainer.cs (4)
34_currentText = SnapshotSourceText.From(_textBufferCloneService, editorBuffer.CurrentSnapshot, this); 109var oldText = (SnapshotSourceText)args.Before.AsText(); 110var newText = SnapshotSourceText.From(_textBufferCloneService, args.After);