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

Function transformedModuleOf

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

Source from the content-addressed store, hash-verified

1281}
1282
1283const transformedModuleOf = (
1284 precompiler: Precompiler,
1285 source: string,
1286 id: string,
1287 tracked?: TrackedPrecompiler,
1288 mappings?: string,
1289 program?: string
1290): TransformedModule | undefined => {
1291 if (!precompiler.isTransformed(id)) return
1292 const result = precompiledOf(
1293 precompiler,
1294 source,
1295 id,
1296 tracked,
1297 mappings,
1298 program
1299 )
1300 return result ?
1301 transformedOf(precompiler, result)
1302 : unprecompiledOf(precompiler, source, id)
1303}
1304
1305const transformedOf = (
1306 precompiler: Precompiler,

Callers 4

scannedFunction · 0.85
answerFunction · 0.85
modulesWrittenInFunction · 0.85
keyedModuleOfFunction · 0.85

Calls 4

precompiledOfFunction · 0.85
transformedOfFunction · 0.85
unprecompiledOfFunction · 0.85
isTransformedMethod · 0.80

Tested by

no test coverage detected