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

Function precompiledOf

ark/aot/driver.ts:1270–1281  ·  view source on GitHub ↗
(
	precompiler: Precompiler,
	source: string,
	id: string,
	tracked: TrackedPrecompiler | undefined,
	mappings?: string,
	program?: string
)

Source from the content-addressed store, hash-verified

1268 : []
1269
1270const precompiledOf = (
1271 precompiler: Precompiler,
1272 source: string,
1273 id: string,
1274 tracked: TrackedPrecompiler | undefined,
1275 mappings?: string,
1276 program?: string
1277): PrecompiledModule | undefined => {
1278 if (!precompiles(precompiler, source, id)) return
1279 if (tracked) recordGiven(tracked, source, id)
1280 return precompiler.precompile(source, id, mappings, program)
1281}
1282
1283const transformedModuleOf = (
1284 precompiler: Precompiler,

Callers 3

answerFunction · 0.85
checkedModuleOfFunction · 0.85
transformedModuleOfFunction · 0.85

Calls 3

precompilesFunction · 0.85
recordGivenFunction · 0.85
precompileMethod · 0.65

Tested by

no test coverage detected