public MockTextSnapshot(MockTextBuffer buffer, string text) { _text = text; _buffer = buffer; _version = new MockTextVersion(0, this); _lines = MakeLines(_text).ToList(); }
public MockTextSnapshot(MockTextBuffer buffer, string text, MockTextSnapshot prevVersion, params ITextChange[] changes) { _text = text; _buffer = buffer; _version = new MockTextVersion(prevVersion.Version.VersionNumber + 1, this); ((MockTextVersion)prevVersion.Version).SetNext(_version, changes); }
public MockTextSnapshot(MockTextBuffer buffer, string text, MockTextSnapshot prevVersion, params ITextChange[] changes) { _text = text; _buffer = buffer; _version = new MockTextVersion(prevVersion.Version.VersionNumber + 1, this); ((MockTextVersion)prevVersion.Version).SetNext(_version, changes); _lines = MakeLines(_text).ToList(); }
internal void SetNext(MockTextVersion nextVersion, params ITextChange[] changes) { _nextVersion = nextVersion; _changes = new MockNormalizedTextChangeCollection(changes); }
public MockTextSnapshot(MockTextBuffer buffer, string text) { _text = text; _buffer = buffer; _version = new MockTextVersion(0, this); }