(input: string)
| 1 | export class JSON5 { |
| 2 | static parse(input: string): any { |
| 3 | const parser = new JSON5Parser(input); |
| 4 | const value = parser.parseValue(); |
| 5 | parser.skipWhitespace(); |
| 6 | if (!parser.isAtEnd()) { |
| 7 | throw parser.error( |
| 8 | `Unexpected token '${parser.currentChar()}' after parsing complete value` |
| 9 | ); |
| 10 | } |
| 11 | return value; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | class JSON5Parser { |
nothing calls this directly
no test coverage detected