()
| 228 | } |
| 229 | |
| 230 | private getEmitHost(): EmitHost { |
| 231 | return { |
| 232 | fileExists: (path: string) => normalizeSlashes(path) in this.extraFiles, |
| 233 | directoryExists: (path: string) => |
| 234 | Object.keys(this.extraFiles).some(f => f.startsWith(normalizeSlashes(path))), |
| 235 | getCurrentDirectory: () => ".", |
| 236 | readFile: (path: string) => this.extraFiles[normalizeSlashes(path)] ?? ts.sys.readFile(path), |
| 237 | writeFile() {}, |
| 238 | }; |
| 239 | } |
| 240 | |
| 241 | @memoize |
| 242 | public getLuaResult(): tstl.TranspileVirtualProjectResult { |
nothing calls this directly
no test coverage detected