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

Function php_line_inline

internal/cbm/doclink_php.c:278–295  ·  view source on GitHub ↗

`{@see Ref ...}` anywhere on the line, outside code spans. */

Source from the content-addressed store, hash-verified

276
277/* `{@see Ref ...}` anywhere on the line, outside code spans. */
278static void php_line_inline(const php_emit_t *em, const php_line_t *ln, const bool *mask) {
279 for (size_t i = 0; i + PHP_INLINE_LEN <= ln->n; i++) {
280 if (mask[i] || memcmp(ln->p + i, "{@see", PHP_INLINE_LEN) != 0) {
281 continue;
282 }
283 size_t j = i + PHP_INLINE_LEN;
284 if (j < ln->n && ln->p[j] != '}' && !isspace((unsigned char)ln->p[j])) {
285 continue; /* {@seealso} or another word */
286 }
287 j = php_skip_space(ln->p, j, ln->n);
288 size_t k = j;
289 while (k < ln->n && ln->p[k] != '}' && !isspace((unsigned char)ln->p[k])) {
290 k++;
291 }
292 php_push(em, ln->p + j, k - j, ln->line);
293 i = k;
294 }
295}
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) {

Callers 1

Calls 2

php_skip_spaceFunction · 0.85
php_pushFunction · 0.85

Tested by

no test coverage detected