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

Function pr_removable

src/pipeline/doc_links_php.c:961–979  ·  view source on GitHub ↗

A top-level function (F fqn flags) or a member of the type above it (K kind * name) declares one name; reported as a reference spells it, the last * segment of a qualified name. A type, a supertype, a namespace block or a * use import changes how others resolve: GLOBAL. */

Source from the content-addressed store, hash-verified

959 * segment of a qualified name. A type, a supertype, a namespace block or a
960 * use import changes how others resolve: GLOBAL. */
961static bool pr_removable(const char *line, size_t len, const char **name, size_t *nlen) {
962 if (len <= PAIR_LEN || line[1] != '\t') {
963 return false;
964 }
965 if (line[0] == 'K') {
966 return cbm_doclinks_scope_field(line, len, PAIR_LEN, name, nlen);
967 }
968 if (line[0] != 'F' || !cbm_doclinks_scope_field(line, len, 1, name, nlen)) {
969 return false;
970 }
971 for (size_t i = *nlen; i > 0; i--) {
972 if ((*name)[i - SKIP_ONE] == '\\') {
973 *nlen -= i;
974 *name += i;
975 break;
976 }
977 }
978 return true;
979}
980
981static int pr_scope_delta(const char *stored, const char *fresh, cbm_doclink_name_fn removed,
982 void *ud) {

Callers

nothing calls this directly

Calls 1

cbm_doclinks_scope_fieldFunction · 0.85

Tested by

no test coverage detected