Merge pull request #2570 from Microsoft/versionCacheUnitTest

Version cache unit test
This commit is contained in:
Mohamed Hegazy
2015-04-02 09:27:44 -07:00
3 changed files with 285 additions and 1 deletions

View File

@@ -1466,6 +1466,10 @@ module ts.server {
return accum;
}
getLength(): number {
return this.root.charCount();
}
every(f: (ll: LineLeaf, s: number, len: number) => boolean, rangeStart: number, rangeEnd?: number) {
if (!rangeEnd) {
rangeEnd = this.root.charCount();