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

Method analyze

ark/aot/usage.ts:191–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 }
190
191 analyze(): void {
192 for (const runtime of this.program.modules.values()) this.link(runtime)
193 for (const [runtime, as, name] of this.arkReexports)
194 this.readArkExport(runtime, as, name, new Set())
195 for (const runtime of this.program.modules.values()) {
196 if (runtime.holdsOther) {
197 escape(
198 `${runtime.module.path} creates a Scope, Module or Generic, whose validators it can't follow`
199 )
200 }
201 for (const node of nodesAt(runtime.module, runtime.validators))
202 this.readValue(node, runtime)
203 }
204 }
205
206 private link(runtime: RuntimeModule): void {
207 const { module } = runtime

Callers 2

usedMembersOfFunction · 0.95
static.test.tsFile · 0.45

Calls 5

linkMethod · 0.95
readArkExportMethod · 0.95
readValueMethod · 0.95
nodesAtFunction · 0.85
escapeFunction · 0.70

Tested by

no test coverage detected