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

Function php_base

internal/cbm/doclink_php.c:612–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612static void php_base(php_walk_t *w, char rel, TSNode name) {
613 size_t nl = 0;
614 const char *nt = php_name_text(w, name, &nl);
615 char buf[CBM_SZ_1K];
616 size_t fl =
617 cbm_doclink_php_qualify(buf, sizeof(buf), w->ns, w->ns_len, w->uses, w->nuses, nt, nl);
618 if (!fl) {
619 return;
620 }
621 php_sb_puts(w->sb, "\nB");
622 php_sb_field(w->sb, &rel, SKIP_ONE);
623 php_sb_field(w->sb, buf, fl);
624}
625
626/* The names a base clause, interface clause or trait use lists. */
627static void php_bases(php_walk_t *w, char rel, TSNode clause) {

Callers 1

php_basesFunction · 0.85

Calls 4

php_name_textFunction · 0.85
cbm_doclink_php_qualifyFunction · 0.85
php_sb_putsFunction · 0.85
php_sb_fieldFunction · 0.85

Tested by

no test coverage detected