mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 23:08:20 -06:00
Fix json for text spans.
This commit is contained in:
parent
7f0ae3f882
commit
edd82cee48
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user