Checks whether token is of a certain type. */
| 358 | |
| 359 | /** Checks whether token is of a certain type. */ |
| 360 | static void expect(jsmntok_t *tok, jsmntype_t t) |
| 361 | { |
| 362 | if (tok->type != t) |
| 363 | error(tok, type(t)); |
| 364 | } |
| 365 | |
| 366 | /** Checks whether token is string or number literal. */ |
| 367 | static void expect_nodeid(jsmntok_t *tok) |
no test coverage detected