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

Function php_function

internal/cbm/doclink_php.c:746–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746static void php_function(php_walk_t *w, TSNode decl) {
747 size_t nl = 0;
748 const char *name = php_decl_name(w, decl, &nl);
749 if (!name || !nl) {
750 return;
751 }
752 size_t fl = 0;
753 const char *fqn = php_fqn(w, name, nl, &fl);
754 char flag = php_dup_flag(w, name);
755 php_sb_puts(w->sb, "\nF");
756 php_sb_field(w->sb, fqn, fl);
757 php_sb_field(w->sb, &flag, SKIP_ONE);
758}
759
760static void php_count_name(php_walk_t *w, TSNode decl);
761

Callers 2

php_cond_declsFunction · 0.85
php_blockFunction · 0.85

Calls 5

php_decl_nameFunction · 0.85
php_fqnFunction · 0.85
php_dup_flagFunction · 0.85
php_sb_putsFunction · 0.85
php_sb_fieldFunction · 0.85

Tested by

no test coverage detected