コード例 #1
0
 public MockTextSnapshot(MockTextBuffer buffer, string text)
 {
     _text    = text;
     _buffer  = buffer;
     _version = new MockTextVersion(0, this);
     _lines   = MakeLines(_text).ToList();
 }
コード例 #2
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);
 }
コード例 #3
0
 public MockTextSnapshot(MockTextBuffer buffer, string text)
 {
     _text = text;
     _buffer = buffer;
     _version = new MockTextVersion(0, this);
     _lines = MakeLines(_text).ToList();
 }
コード例 #4
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);
     _lines = MakeLines(_text).ToList();
 }
コード例 #5
0
ファイル: MockTextVersion.cs プロジェクト: zuokaihuang/PTVS
 internal void SetNext(MockTextVersion nextVersion, params ITextChange[] changes)
 {
     _nextVersion = nextVersion;
     _changes     = new MockNormalizedTextChangeCollection(changes);
 }
コード例 #6
0
 public MockTextSnapshot(MockTextBuffer buffer, string text)
 {
     _text    = text;
     _buffer  = buffer;
     _version = new MockTextVersion(0, this);
 }
コード例 #7
0
 public MockTextSnapshot(MockTextBuffer buffer, string text) {
     _text = text;
     _buffer = buffer;
     _version = new MockTextVersion(0, this);
 }
コード例 #8
0
 internal void SetNext(MockTextVersion nextVersion, params ITextChange[] changes) {
     _nextVersion = nextVersion;
     _changes = new MockNormalizedTextChangeCollection(changes);
 }