* Add the result of a parsed TypeScript file. * * The `name` has not .cpp/.h extension, as both header and impl files are * printed using the same CppFile instance.
(name: string, file: CppFile)
| 69 | * printed using the same CppFile instance. |
| 70 | */ |
| 71 | addParsedFile(name: string, file: CppFile) { |
| 72 | if (this.cppFiles.has(name)) |
| 73 | throw new Error(`The file "${name}" already exists in project`); |
| 74 | this.cppFiles.set(name, file); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Get the type of file according to 'mainFileName' and 'executables'. |