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

Function applicable

src/compute-engine/function-utils.ts:663–670  ·  view source on GitHub ↗
(
  fn: Expression
)

Source from the content-addressed store, hash-verified

661 for (const name of functionLiteralParameterNames(param)) {
662 if (block.localScope!.bindings.has(name)) continue;
663 // A destructuring pattern's leaves carry no annotation of their own, so
664 // they always take the bare-parameter branch below.
665 const t = isDestructuringParameter(param)
666 ? undefined
667 : functionLiteralParameterType(param);
668 if (t !== undefined)
669 ce.declare(name, { inferred: false, type: t }, block.localScope);
670 else {
671 // A bare parameter whose first reference sat in a NESTED Block scope
672 // (an `if` branch, a loop body) auto-declared its shared binding there,
673 // not here. Adopt that binding as the parameter's: it is the one every

Callers 4

runLoopLegacyFunction · 0.90
collections.tsFile · 0.90
sortedIndicesFunction · 0.90
updateMethod · 0.90

Calls 3

makeLambdaFunction · 0.85
evaluateMethod · 0.65
functionMethod · 0.65

Tested by

no test coverage detected