Consolidate test logic in one helper function

This commit is contained in:
Mohamed Hegazy committed 2015-03-31 13:40:17 -07:00
1 parent cb00b47254
commit 7f5337701f
2 files changed
+30 -93

No files matched your search

+4
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();