Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 internal void SetNext(MockTextVersion nextVersion, params ITextChange[] changes)
 {
     _nextVersion = nextVersion;
     _changes     = new MockNormalizedTextChangeCollection(changes);
 }
Exemplo n.º 3
0
 public MockTextSnapshot(MockTextBuffer buffer, string text)
 {
     _text    = text;
     _buffer  = buffer;
     _version = new MockTextVersion(0, this);
 }