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

Function restoreBodyScopeParams

src/compute-engine/function-utils.ts:354–359  ·  view source on GitHub ↗

Restore param bindings removed by hideBodyScopeParams.

(
  bodyScope: Scope,
  hidden: Array<[string, BoxedDefinition]>
)

Source from the content-addressed store, hash-verified

352 * scope (`definingScopeOf()`: the activation that the function value
353 * keeps, or the scope the literal was boxed in), giving true lexical
354 * scoping
355 * 3/ The frame is an activation of the body scope: it holds the static
356 * definition of each parameter and of each local of the body, with the
357 * values of this call (`holdBodyLocals()`)
358 * 4/ The body is evaluated in the context of the frame. A nested scoped
359 * expression (Sum, Product, a Block) reads a parameter on the
360 * activation links from the evaluation in progress; the scopes of the
361 * body are not changed
362 * 5/ The occurrences of the parameters that the result still names are

Callers 1

invokeFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected