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

Function pushEvalContext

src/compute-engine/engine-scope.ts:27–44  ·  view source on GitHub ↗
(
  ce: IComputeEngine,
  scope: Scope,
  name?: string
)

Source from the content-addressed store, hash-verified

25 renewIterationActivation,
26 scopeActivationTemplate,
27} from './boxed-expression/ambient-chain.js';
28import { _discardPendingSequencesOfScope } from './sequence.js';
29import { notePushedScope } from './pending-call-scopes.js';
30import { setHolderCounting } from './boxed-expression/definition-restore-point.js';
31
32export function pushScope(
33 ce: IComputeEngine,
34 scope?: Scope,
35 name?: string
36): void {
37 pushEvalContext(
38 ce,
39 scope ?? {
40 parent: ce.context?.lexicalScope,
41 bindings: new Map(),
42 },
43 name
44 );
45}
46
47/**

Callers 1

pushScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected