consume_garbage() * * Advance until the current character is non-whitespace and non-comment. */
| 420 | * Advance until the current character is non-whitespace and non-comment. |
| 421 | */ |
| 422 | void consume_garbage() { |
| 423 | consume_whitespace(); |
| 424 | if (strategy == JsonParse::COMMENTS) { |
| 425 | bool comment_found = false; |
| 426 | do { |
| 427 | comment_found = consume_comment(); |
| 428 | if (failed) return; |
| 429 | consume_whitespace(); |
| 430 | } while (comment_found); |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | /* get_next_token() |
| 435 | * |
no outgoing calls
no test coverage detected