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

Function jit

ark/schema/scope.ts:1206–1220  ·  view source on GitHub ↗
(node: BaseNode)

Source from the content-addressed store, hash-verified

1204 }
1205
1206 jit(node: BaseNode): void {
1207 tryJit(() =>
1208 precompileRoot(
1209 node,
1210 node.hasAlias ?
1211 referencesThroughAliases(node.references)
1212 : node.references
1213 )
1214 )
1215 // compiling binds what it checked before, unless the host refused
1216 if (node.c.preJit) {
1217 if (Object.isExtensible(node)) node.allows = node.c.preJit
1218 node.c.preJit = undefined
1219 }
1220 }
1221
1222 protected abstract preparseOwn(
1223 def: unknown,

Callers 1

tryJitFunction · 0.85

Calls 3

tryJitFunction · 0.90
precompileRootFunction · 0.90
referencesThroughAliasesFunction · 0.90

Tested by

no test coverage detected