Consolidate test logic in one helper function

This commit is contained in:
Mohamed Hegazy
2015-03-31 13:40:17 -07:00
parent cb00b47254
commit 7f5337701f
2 changed files with 30 additions and 93 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();