2 types derived from SnapshotSourceText
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Extensions.SnapshotSourceText.cs (2)
266internal sealed class ClosedSnapshotSourceText : SnapshotSourceText 277private class ChangedSourceText : SnapshotSourceText
2 instantiations of SnapshotSourceText
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Extensions.SnapshotSourceText.cs (2)
87snapshot = s_textSnapshotMap.GetValue(editorSnapshot, s => new SnapshotSourceText(tempTextBufferCloneService, s, SourceHashAlgorithms.OpenDocumentChecksumAlgorithm, container)); 104return s_textSnapshotMap.GetValue(editorSnapshot, s => new SnapshotSourceText(textBufferCloneService, s, SourceHashAlgorithms.OpenDocumentChecksumAlgorithm, container));
15 references to SnapshotSourceText
Microsoft.CodeAnalysis.EditorFeatures.Text (15)
Extensions.cs (4)
32=> (text as SnapshotSourceText)?.TryFindEditorSnapshot(); 35=> (text as SnapshotSourceText)?.TextImage; 43return SnapshotSourceText.From(textBufferCloneServiceOpt, textSnapshot); 47=> new SnapshotSourceText.ClosedSnapshotSourceText(textBufferCloneServiceOpt, ((ITextSnapshot2)textSnapshot).TextImage, encoding, checksumAlgorithm);
Extensions.SnapshotSourceText.cs (7)
64private static readonly ConditionalWeakTable<ITextSnapshot, SnapshotSourceText> s_textSnapshotMap = new ConditionalWeakTable<ITextSnapshot, SnapshotSourceText>(); 79if (!s_textSnapshotMap.TryGetValue(editorSnapshot, out var snapshot)) 143private readonly SnapshotSourceText _text; 145public LineInfo(SnapshotSourceText text) 279private readonly SnapshotSourceText _baseText; 282public ChangedSourceText(ITextBufferCloneService? textBufferCloneService, SnapshotSourceText baseText, ITextImage baseSnapshot, ITextImage 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);