A start tag below the root. */
| 3625 | |
| 3626 | /* A start tag below the root. */ |
| 3627 | static 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. */ |
| 3644 | static void csx_element_end(csx_scan_t *p) { |
no test coverage detected