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

Function precompileModule

ark/aot/precompile.ts:759–764  ·  view source on GitHub ↗
(
	source: string,
	id: string,
	host: PrecompileHost,
	opts?: PrecompileOptions
)

Source from the content-addressed store, hash-verified

757 : param.kind === "function" && param.value === hole
758
759export const precompileModule = (
760 source: string,
761 id: string,
762 host: PrecompileHost,
763 opts?: PrecompileOptions
764): PrecompiledModule => new Precompiler(host, opts).precompile(source, id)
765
766export class Precompiler {
767 graph: ModuleGraph

Callers 6

precompileFunction · 0.90
modes.test.tsFile · 0.90
transform.test.tsFile · 0.90
buildFunction · 0.90
builtValidatorsOfFunction · 0.90
jsonOfFunction · 0.85

Calls 1

precompileMethod · 0.65

Tested by 4

precompileFunction · 0.72
buildFunction · 0.72
builtValidatorsOfFunction · 0.72
jsonOfFunction · 0.68