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

Function collectErrors

scripts/fungrim/box-check.ts:36–42  ·  view source on GitHub ↗

Collect a compact description of every Error subexpression.

(expr: BoxedExpression, out: string[])

Source from the content-addressed store, hash-verified

34
35/** Collect a compact description of every Error subexpression. */
36function collectErrors(expr: BoxedExpression, out: string[]): void {
37 if (expr.operator === 'Error') {
38 out.push(JSON.stringify(expr.json).slice(0, 200));
39 return;
40 }
41 if (isFunction(expr)) for (const op of expr.ops) collectErrors(op, out);
42}
43
44/**
45 * Compute the set of heads that have a definition: CE built-ins (checked

Callers 1

boxCheckEntryFunction · 0.70

Calls 2

isFunctionFunction · 0.90
sliceMethod · 0.65

Tested by

no test coverage detected