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

Method createsTypeAtLoad

ark/aot/precompile.ts:7529–7540  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

7527 }
7528
7529 private createsTypeAtLoad(id: string): boolean {
7530 const module = this.graph.moduleOf(id)
7531 return (
7532 module instanceof SourceModule &&
7533 this.isTransformed(id) &&
7534 this.importsArk(module.source, id) &&
7535 (this.analysisOf(module).sites.some(
7536 site => site.status === "accepted" && !site.deferred
7537 ) ||
7538 this.callsCreatorAtLoad(module))
7539 )
7540 }
7541
7542 // e.g. `make()` as it loads, where `make` is another module's, holding a site
7543 // that module can't tell runs then

Callers 1

checkConfigOrderMethod · 0.95

Calls 5

isTransformedMethod · 0.95
importsArkMethod · 0.95
analysisOfMethod · 0.95
callsCreatorAtLoadMethod · 0.95
moduleOfMethod · 0.45

Tested by

no test coverage detected