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

Function php_line_see

internal/cbm/doclink_php.c:298–312  ·  view source on GitHub ↗

`@see Ref` at the start of a tag line. */

Source from the content-addressed store, hash-verified

296
297/* `@see Ref` at the start of a tag line. */
298static void php_line_see(const php_emit_t *em, const php_line_t *ln) {
299 if (ln->n < PHP_SEE_LEN || memcmp(ln->p, "@see", PHP_SEE_LEN) != 0 ||
300 (ln->n > PHP_SEE_LEN && !isspace((unsigned char)ln->p[PHP_SEE_LEN]))) {
301 return;
302 }
303 size_t j = php_skip_space(ln->p, PHP_SEE_LEN, ln->n);
304 if (j < ln->n && ln->p[j] == '{') {
305 return; /* @see {@see Ref}: the inline tag is the reference */
306 }
307 size_t k = j;
308 while (k < ln->n && !isspace((unsigned char)ln->p[k])) {
309 k++;
310 }
311 php_push(em, ln->p + j, k - j, ln->line);
312}
313
314void cbm_doclink_php_parse_doc(CBMExtractCtx *ctx, const CBMDefinition *def, const char *doc,
315 uint32_t doc_line) {

Callers 1

Calls 2

php_skip_spaceFunction · 0.85
php_pushFunction · 0.85

Tested by

no test coverage detected