MCPcopy Create free account
hub / github.com/arktypeio/arktype / rootContext

Function rootContext

ark/aot/interpreter.ts:3331–3341  ·  view source on GitHub ↗
(
	module: SourceModule,
	node: Node | undefined
)

Source from the content-addressed store, hash-verified

3329})
3330
3331const rootContext = (
3332 module: SourceModule,
3333 node: Node | undefined
3334): Context => ({
3335 module,
3336 env: undefined,
3337 trace: emptyTrace(),
3338 site: undefined,
3339 origin: node && { module, node },
3340 depth: 0
3341})
3342
3343const mergeTrace = (into: Trace, from: Trace) => {
3344 for (const read of from.reads) into.reads.push(read)

Callers 3

bindingValueMethod · 0.85
nodeValueMethod · 0.85
callStandInMethod · 0.85

Calls 1

emptyTraceFunction · 0.85

Tested by

no test coverage detected