Clarify 'emitAll'.
This commit is contained in:
parent
f98d578a20
commit
40081d6e98
1 changed files with 13 additions and 11 deletions
|
@ -934,17 +934,19 @@ module Harness {
|
||||||
}
|
}
|
||||||
|
|
||||||
public emitAll(ioHost?: IEmitterIOHost) {
|
public emitAll(ioHost?: IEmitterIOHost) {
|
||||||
this.compileFiles(this.inputFiles, [],(result) => {
|
this.compileFiles(this.inputFiles,
|
||||||
result.files.forEach(file => {
|
/*otherFiles*/ [],
|
||||||
|
/*onComplete*/ (result) => {
|
||||||
|
result.files.forEach(writeFile);
|
||||||
|
result.declFilesCode.forEach(writeFile);
|
||||||
|
result.sourceMaps.forEach(writeFile);
|
||||||
|
},
|
||||||
|
/*settingsCallback*/ () => { },
|
||||||
|
this.compileOptions);
|
||||||
|
|
||||||
|
function writeFile(file: GeneratedFile) {
|
||||||
ioHost.writeFile(file.fileName, file.code, false);
|
ioHost.writeFile(file.fileName, file.code, false);
|
||||||
});
|
}
|
||||||
result.declFilesCode.forEach(file => {
|
|
||||||
ioHost.writeFile(file.fileName, file.code, false);
|
|
||||||
});
|
|
||||||
result.sourceMaps.forEach(file => {
|
|
||||||
ioHost.writeFile(file.fileName, file.code, false);
|
|
||||||
});
|
|
||||||
},() => { }, this.compileOptions);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public compileFiles(inputFiles: { unitName: string; content: string }[],
|
public compileFiles(inputFiles: { unitName: string; content: string }[],
|
||||||
|
|
Loading…
Reference in a new issue