Fix json for text spans.

This commit is contained in:
Cyrus Najmabadi 2014-08-15 15:34:11 -07:00
parent 7f0ae3f882
commit edd82cee48

View File

@ -27,6 +27,10 @@ module TypeScript {
this._length = length;
}
public toJSON(key: any): any {
return { start: this._start, length: this._length };
}
public start(): number {
return this._start;
}