MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / rebuildBody

Function rebuildBody

scripts/prepare-release.mjs:130–137  ·  view source on GitHub ↗
({ leading, subs })

Source from the content-addressed store, hash-verified

128}
129
130function rebuildBody({ leading, subs }) {
131 const parts = [];
132 if (leading.length) parts.push(leading.join('\n'));
133 for (const s of subs) {
134 parts.push([s.headerLine, ...s.body].join('\n'));
135 }
136 return parts.join('\n').split('\n');
137}
138
139/**
140 * Return true when the block has any meaningful entries (a bullet line

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected