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

Function parseFunctionSignature

src/compute-engine/function-utils.ts:692–700  ·  view source on GitHub ↗
(
  s: string
)

Source from the content-addressed store, hash-verified

690 * The result is NEVER canonicalized here: the caller substitutes it into the
691 * operand array and the normal canonicalization
692 * (`canonicalFunctionLiteralArguments` and its §6.1 pre-declare mechanism)
693 * derives the body from raw structure, which is what preserves capture. A
694 * scope-graft of an already-bound body is the closure-capture bug factory.
695 *
696 * Declines, all v1 scope exclusions:
697 * - a SYMBOL operand (`Filter(xs, f)`) — a named literal may be SHARED, and
698 * one application site must not retype it for every other. Deliberately
699 * discriminated on the RAW operand: `canonicalFunctionLiteral` LIFTS a
700 * symbol into a literal, so the canonical operand cannot tell the two
701 * spellings apart;
702 * - a string, and any operand that is not `Function`-headed (the shorthand
703 * `_ > 5` lifts to a literal only later);

Callers

nothing calls this directly

Calls 2

matchMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected