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

Method generateHostModule

packages/codegen/src/codegen.ts:241–252  ·  view source on GitHub ↗

* Generates the host module and its corresponding bridges using the specified context and options. * * @param context The shared context containing module information and configurations. * @return A promise that resolves with the results of generating bridges for imported modules. Each prom

()

Source from the content-addressed store, hash-verified

239 * @return A promise that resolves with the results of generating bridges for imported modules. Each promise result contains the status of the operation (fulfilled or rejected).
240 */
241 async generateHostModule() {
242 const pluginContext: HostProjectGeneratedContext = {
243 codegen: this,
244 rootOutput: this.generator,
245 projectOutput: this.hostModuleOutput,
246 generatedModules: this.context.modules,
247 };
248
249 for (const plugin of this.plugins) {
250 await plugin.hostProjectGenerated?.(pluginContext);
251 }
252 }
253
254 /**
255 * Finalizes the generation process by writing the generated files to the output directory.

Callers 1

generateFunction · 0.80

Calls 1

hostProjectGeneratedMethod · 0.80

Tested by

no test coverage detected