* 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
()
| 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. |
no test coverage detected