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