(module: Codegen.Module)
| 11 | } |
| 12 | |
| 13 | export function declarationNames(module: Codegen.Module): ReadonlyArray<string> { |
| 14 | const output = module.finalize() |
| 15 | return output.declarations.map(({ binding }) => output.names.get(binding)!) |
| 16 | } |
| 17 | |
| 18 | export function declaration(module: Codegen.Module, name: string): ReadonlyArray<string> { |
| 19 | const output = module.finalize() |