(namespaces: ReadonlyArray<ast.ModuleDeclaration>)
| 468 | } |
| 469 | |
| 470 | const parseModuleDeclarations = (namespaces: ReadonlyArray<ast.ModuleDeclaration>) => { |
| 471 | return Effect.forEach( |
| 472 | namespaces.filter((md) => md.isExported()), |
| 473 | parseModuleDeclaration |
| 474 | ).pipe(Effect.map(Array.flatten)) |
| 475 | } |
| 476 | |
| 477 | /** |
| 478 | * Parses exported namespaces from the current source file. |