()
| 19 | } |
| 20 | |
| 21 | public print() { |
| 22 | fs.mkdirSync(path.dirname(this._sourceFile.fileName), { recursive: true }); |
| 23 | try { |
| 24 | this._source = ''; |
| 25 | this.writeSourceFile(this._sourceFile); |
| 26 | } finally { |
| 27 | fs.writeFileSync(this._sourceFile.fileName, this._source); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | protected abstract writeSourceFile(sourceFile: cs.SourceFile): void; |
| 32 |
no test coverage detected