| 1385 | } |
| 1386 | |
| 1387 | static const char *str_func_name(cbm_token_type_t t) { |
| 1388 | switch (t) { |
| 1389 | case TOK_TOLOWER: |
| 1390 | return "toLower"; |
| 1391 | case TOK_TOUPPER: |
| 1392 | return "toUpper"; |
| 1393 | case TOK_TOSTRING: |
| 1394 | return "toString"; |
| 1395 | default: |
| 1396 | return ""; |
| 1397 | } |
| 1398 | } |
| 1399 | |
| 1400 | /* Parse a value literal: string, number, ident[.prop], true, false. Returns heap-allocated. */ |
| 1401 | static const char *parse_value_literal(parser_t *p) { |
no outgoing calls
no test coverage detected