mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Simplify the API for emitting code from the Program instance.
This commit is contained in:
@@ -4664,12 +4664,7 @@ module ts {
|
||||
});
|
||||
}
|
||||
|
||||
// Get an emit host from our program, but override the writeFile functionality to
|
||||
// call our local writer function.
|
||||
var emitHost = createEmitHostFromProgram(program);
|
||||
emitHost.writeFile = writeFile;
|
||||
|
||||
var emitOutput = emitFiles(program.getEmitResolver(), emitHost, sourceFile);
|
||||
var emitOutput = program.emit(sourceFile, writeFile);
|
||||
|
||||
return {
|
||||
outputFiles,
|
||||
|
||||
Reference in New Issue
Block a user