()
| 240 | |
| 241 | @memoize |
| 242 | public getLuaResult(): tstl.TranspileVirtualProjectResult { |
| 243 | const program = this.getProgram(); |
| 244 | const preEmitDiagnostics = ts.getPreEmitDiagnostics(program); |
| 245 | const collector = createEmitOutputCollector(this.options.extension); |
| 246 | const { diagnostics: transpileDiagnostics } = new tstl.Transpiler({ emitHost: this.getEmitHost() }).emit({ |
| 247 | program, |
| 248 | customTransformers: this.customTransformers, |
| 249 | writeFile: collector.writeFile, |
| 250 | }); |
| 251 | |
| 252 | const diagnostics = ts.sortAndDeduplicateDiagnostics([...preEmitDiagnostics, ...transpileDiagnostics]); |
| 253 | |
| 254 | return { diagnostics: [...diagnostics], transpiledFiles: collector.files }; |
| 255 | } |
| 256 | |
| 257 | @memoize |
| 258 | public getMainLuaFileResult(): ExecutableTranspiledFile { |
nothing calls this directly
no test coverage detected