(dirPath: string, source: string, files: FiledataPair[])
| 2086 | } |
| 2087 | |
| 2088 | protected async writeAllFiles(dirPath: string, source: string, files: FiledataPair[]) { |
| 2089 | if (!source) throw new Error(`File ${this.compileFilename} has no content or file is missing`); |
| 2090 | |
| 2091 | const inputFilename = path.join(dirPath, this.compileFilename); |
| 2092 | await fs.writeFile(inputFilename, source); |
| 2093 | |
| 2094 | if (files && files.length > 0) { |
| 2095 | await this.writeMultipleFiles(files, dirPath); |
| 2096 | } |
| 2097 | |
| 2098 | return { |
| 2099 | inputFilename, |
| 2100 | }; |
| 2101 | } |
| 2102 | |
| 2103 | protected async writeAllFilesCMake( |
| 2104 | dirPath: string, |
no test coverage detected