| 813 | } |
| 814 | |
| 815 | static void php_count_name(php_walk_t *w, TSNode decl) { |
| 816 | size_t nl = 0; |
| 817 | const char *name = php_decl_name(w, decl, &nl); |
| 818 | if (!name || !nl) { |
| 819 | return; |
| 820 | } |
| 821 | uintptr_t count = (uintptr_t)cbm_ht_get(w->names, name); |
| 822 | cbm_ht_set(w->names, name, (void *)(count + SKIP_ONE)); |
| 823 | } |
| 824 | |
| 825 | /* Count the short names of the top-level types and functions of kids[0, n) |
| 826 | * and of braced namespace bodies among them. */ |
no test coverage detected