The name of a type or function declaration, NUL-terminated in the arena. */
| 583 | |
| 584 | /* The name of a type or function declaration, NUL-terminated in the arena. */ |
| 585 | static const char *php_decl_name(php_walk_t *w, TSNode decl, size_t *len) { |
| 586 | TSNode name = ts_node_child_by_field_name(decl, TS_FIELD("name")); |
| 587 | *len = 0; |
| 588 | return ts_node_is_null(name) ? NULL : php_name_text(w, name, len); |
| 589 | } |
| 590 | |
| 591 | /* `fqn` of a declared short name in the current block. */ |
| 592 | static const char *php_fqn(php_walk_t *w, const char *name, size_t len, size_t *out_len) { |
no test coverage detected