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

Method keepExports

ark/aot/flat.ts:775–782  ·  view source on GitHub ↗
(module: SourceModule)

Source from the content-addressed store, hash-verified

773 }
774
775 keepExports(module: SourceModule): void {
776 for (const name in module.scopes.exportsByName)
777 this.keepExport(module, name)
778 for (const specifier of module.scopes.starExports) {
779 const target = this.targetOf(specifier, module)
780 if (target) this.keepExports(target)
781 }
782 }
783
784 keep(module: SourceModule, statement: Node): void {
785 if (this.statements.has(statement)) return

Callers 4

keptCodeOfFunction · 0.95
keepLoadedMethod · 0.95
keepExportMethod · 0.95
keepBindingMethod · 0.95

Calls 2

keepExportMethod · 0.95
targetOfMethod · 0.95

Tested by

no test coverage detected