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

Function csx_element

internal/cbm/doclink_cs.c:3627–3641  ·  view source on GitHub ↗

A start tag below the root. */

Source from the content-addressed store, hash-verified

3625
3626/* A start tag below the root. */
3627static void csx_element(csx_scan_t *p, const csx_tok_t *t) {
3628 if (p->depth == SKIP_ONE) {
3629 csx_project_child(p, t);
3630 } else if (p->group == 'c') {
3631 csx_choose_child(p, t);
3632 } else if (p->depth == PAIR_LEN) {
3633 csx_group_child(p, t);
3634 } else {
3635 p->prop_complex = p->prop_complex || p->prop_open;
3636 p->using_complex = p->using_complex || p->using_open;
3637 }
3638 if (t->kind == CSX_OPEN) {
3639 p->depth++;
3640 }
3641}
3642
3643/* An end tag: `depth` is already the depth outside the element. */
3644static void csx_element_end(csx_scan_t *p) {

Callers 1

Calls 3

csx_project_childFunction · 0.85
csx_choose_childFunction · 0.85
csx_group_childFunction · 0.85

Tested by

no test coverage detected