True if the cursor is at `IDENT(` where IDENT is a supported scalar function. */
| 1533 | |
| 1534 | /* True if the cursor is at `IDENT(` where IDENT is a supported scalar function. */ |
| 1535 | static bool is_named_func_call(parser_t *p) { |
| 1536 | if (!check(p, TOK_IDENT) || p->pos + SKIP_ONE >= p->count) { |
| 1537 | return false; |
| 1538 | } |
| 1539 | if (p->tokens[p->pos + SKIP_ONE].type != TOK_LPAREN) { |
| 1540 | return false; |
| 1541 | } |
| 1542 | return scalar_func_canonical(peek(p)->text) != NULL; |
| 1543 | } |
| 1544 | |
| 1545 | /* Parse a single-argument scalar / introspection call: labels(n), type(r), |
| 1546 | * id(n), keys(n), properties(n), toInteger(n.start_line), ... */ |
no test coverage detected