MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / php_count_name

Function php_count_name

internal/cbm/doclink_php.c:815–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815static 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. */

Callers 2

php_cond_declsFunction · 0.85
php_count_namesFunction · 0.85

Calls 3

php_decl_nameFunction · 0.85
cbm_ht_getFunction · 0.85
cbm_ht_setFunction · 0.85

Tested by

no test coverage detected