MCPcopy Create free account
hub / github.com/callstackincubator/polygen / generateImportedModule

Method generateImportedModule

packages/codegen/src/codegen.ts:220–226  ·  view source on GitHub ↗

* Generates the imported module by creating necessary files and configurations in the specified output directory. * * @param module The imported module data that needs to be processed and generated. * @return A promise that resolves when the module generation process is completed.

(module: W2CExternModule)

Source from the content-addressed store, hash-verified

218 * @return A promise that resolves when the module generation process is completed.
219 */
220 async generateImportedModule(module: W2CExternModule) {
221 const generator = this.hostModuleOutput;
222 await generator.writeAllTo({
223 [`${module.name}-imports.h`]: templates.buildImportBridgeHeader(module),
224 [`${module.name}-imports.cpp`]: templates.buildImportBridgeSource(module),
225 });
226 }
227
228 /**
229 * Returns the output generator for the host module.

Callers 1

generateFunction · 0.80

Calls 1

writeAllToMethod · 0.80

Tested by

no test coverage detected