MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / harvest

Function harvest

scripts/fungrim/gen-reference-doc.ts:181–186  ·  view source on GitHub ↗
(table: Record<string, any> | undefined)

Source from the content-addressed store, hash-verified

179function loadHeadDescriptions(decl: Declarations): Map<string, string> {
180 const out = new Map<string, string>();
181 const harvest = (table: Record<string, any> | undefined) => {
182 if (!table) return;
183 for (const [name, rec] of Object.entries(table))
184 if (rec && typeof rec.description === 'string' && rec.description.trim())
185 out.set(name, rec.description.trim());
186 };
187 harvest(decl.declarations);
188 harvest((decl as any).existing);
189 return out;

Callers 1

loadHeadDescriptionsFunction · 0.85

Calls 2

entriesMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected