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

Function go_push_span

internal/cbm/doclink_go.c:762–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762static 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

Callers 1

go_parse_spansFunction · 0.85

Calls 1

go_growFunction · 0.85

Tested by

no test coverage detected