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

Function jv_java_inline

internal/cbm/doclink_jvm.c:434–454  ·  view source on GitHub ↗

An inline tag `{@name body}` whose body is t[b, e) and starts on `line`: * its reference. */

Source from the content-addressed store, hash-verified

432/* An inline tag `{@name body}` whose body is t[b, e) and starts on `line`:
433 * its reference. */
434static void jv_java_inline(jv_doc_t *d, size_t b, size_t e, uint32_t line, int syntax) {
435 const char *t = d->t;
436 for (; b < e && jv_blank(t[b]); b++) {
437 line += t[b] == '\n';
438 }
439 if (syntax == CBM_DOCLINK_JAVA_VALUE && b < e && t[b] == '"') {
440 /* {@value "format" ref}: the format string is not the reference */
441 size_t q = b + SKIP_ONE;
442 while (q < e && t[q] != '"') {
443 line += t[q] == '\n';
444 q++;
445 }
446 for (b = q < e ? q + SKIP_ONE : e; b < e && jv_blank(t[b]); b++) {
447 line += t[b] == '\n';
448 }
449 }
450 size_t r = jv_java_ref(t + b, e - b);
451 if (r > 0) {
452 jv_push(d, t + b, r, line, syntax);
453 }
454}
455
456/* An open inline tag. javadoc ends it at the brace that balances its own
457 * `{`; braces outside inline tags are plain text and balance nothing. */

Callers 1

Calls 3

jv_blankFunction · 0.85
jv_java_refFunction · 0.85
jv_pushFunction · 0.85

Tested by

no test coverage detected