2 types derived from SnapshotSourceText
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Extensions.SnapshotSourceText.cs (2)
264internal sealed class ClosedSnapshotSourceText : SnapshotSourceText 275private sealed 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)
62private static readonly ConditionalWeakTable<ITextSnapshot, SnapshotSourceText> s_textSnapshotMap = new(); 77if (!s_textSnapshotMap.TryGetValue(editorSnapshot, out var snapshot)) 141private readonly SnapshotSourceText _text; 143public LineInfo(SnapshotSourceText text) 277private readonly SnapshotSourceText _baseText; 280public 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);