8000 Refactoring main-compiler (tsc) to use short-hand · hbcodeXCI/TypeScript@dcf51d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit dcf51d8

Browse files
author
Yui T
committed
Refactoring main-compiler (tsc) to use short-hand
1 parent d50ce1c commit dcf51d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/compiler/tsc.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ module ts {
192192
}
193193

194194
return {
195-
getSourceFile: getSourceFile,
195+
getSourceFile,
196196
getDefaultLibFilename: () => combinePaths(getDirectoryPath(normalizePath(sys.getExecutingFilePath())), "lib.d.ts"),
197-
writeFile: writeFile,
197+
writeFile,
198198
getCurrentDirectory: () => currentDirectory || (currentDirectory = sys.getCurrentDirectory()),
199199
useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames,
200-
getCanonicalFileName: getCanonicalFileName,
200+
getCanonicalFileName,
201201
getNewLine: () => sys.newLine
202202
};
203203
}
@@ -367,7 +367,7 @@ module ts {
367367
}
368368
else {
369369
var emitStart = new Date().getTime();
370-
var emitOutput = checker.emitFiles();
370+
var emitOutput = checker.invokeEmitter();
371371
var emitErrors = emitOutput.errors;
372372
exitStatus = emitOutput.emitResultStatus;
373373
var reportStart = new Date().getTime();
@@ -394,7 +394,7 @@ module ts {
394394
reportTimeStatistic("Total time", reportStart - parseStart);
395395
}
396396

397-
return { program: program, exitStatus: exitStatus }
397+
return { program, exitStatus };
398398
}
399399

400400
function printVersion() {

0 commit comments

Comments
 (0)
0