()
| 274 | } |
| 275 | |
| 276 | private parseKey(): string { |
| 277 | this.skipWhitespace() |
| 278 | const character = this.peek() |
| 279 | if (character === "\"" || character === "'") { |
| 280 | return parseKey(this.readQuoted(character)) |
| 281 | } |
| 282 | return this.readUntil(/:/).trim() |
| 283 | } |
| 284 | |
| 285 | private readQuoted(quote: string): string { |
| 286 | const start = this.index++ |
no test coverage detected