| 760 | } |
| 761 | |
| 762 | static bool go_push_span(go_doc_t *d, int start, int end, int kind) { |
| 763 | go_span_t *grown = |
| 764 | (go_span_t *)go_grow(d->tmp, d->spans, d->nspans, &d->spans_cap, sizeof(go_span_t)); |
| 765 | if (!grown) { |
| 766 | d->failed = true; |
| 767 | return false; |
| 768 | } |
| 769 | d->spans = grown; |
| 770 | d->spans[d->nspans++] = (go_span_t){.start = start, .end = end, .kind = kind}; |
| 771 | return true; |
| 772 | } |
| 773 | |
| 774 | /* An indented (or force-indented) run starting at `start`: a code block or a |
| 775 | * list. Blank lines belong to it; an unindented list that is being treated as |
no test coverage detected