Skip to content

Commit edd82ce

Browse files
Fix json for text spans.
1 parent 7f0ae3f commit edd82ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/text/textSpan.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ module TypeScript {
2727
this._length = length;
2828
}
2929

30+
public toJSON(key: any): any {
31+
return { start: this._start, length: this._length };
32+
}
33+
3034
public start(): number {
3135
return this._start;
3236
}

0 commit comments

Comments
 (0)