(writer: Writer<undefined>)
| 19 | } |
| 20 | |
| 21 | write(writer: Writer<undefined>): void { |
| 22 | for (const moduleImport of this.imports) { |
| 23 | writer.writeLine(moduleImport) |
| 24 | } |
| 25 | if (this.imports.length > 0) { |
| 26 | writer.newLine() |
| 27 | } |
| 28 | for (const [i, declaration] of this.declarations.entries()) { |
| 29 | writer.writeLine(declaration) |
| 30 | if (i < this.declarations.length - 1) { |
| 31 | writer.newLine() |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | export function file(): File { |