Skip to content

Commit 7d72503

Browse files
author
Yui T
committed
Address code review
1 parent d345d22 commit 7d72503

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/emitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,7 +3228,7 @@ module ts {
32283228
}
32293229

32303230
if (targetSourceFile === undefined) {
3231-
// No targetSourceFile is specified (i.e. calling emitter from batch compiler)
3231+
// No targetSourceFile is specified (e.g. calling emitter from batch compiler)
32323232
forEach(program.getSourceFiles(), sourceFile => {
32333233
if (shouldEmitToOwnFile(sourceFile, compilerOptions)) {
32343234
var jsFilePath = getOwnEmitOutputFilePath(sourceFile, ".js");
@@ -3240,7 +3240,7 @@ module ts {
32403240
emitFile(compilerOptions.out);
32413241
}
32423242
} else {
3243-
// targetSourceFile is specified (i.e. calling emitter from language service)
3243+
// targetSourceFile is specified (e.g calling emitter from language service)
32443244
if (shouldEmitToOwnFile(targetSourceFile, compilerOptions)) {
32453245
// If shouldEmitToOwnFile is true or targetSourceFile is an external module file, then emit targetSourceFile in its own output file
32463246
var jsFilePath = getOwnEmitOutputFilePath(targetSourceFile, ".js");

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3930,7 +3930,7 @@ module ts {
39303930
// Perform semantic and force a type check before emit to ensure that all symbols are updated
39313931
// EmitFiles will report if there is an error from TypeChecker and Emitter
39323932
// Depend whether we will have to emit into a single file or not either emit only selected file in the project, emit all files into a single file
3933-
var emitFilesResult = getFullTypeCheckChecker().emitFiles(targetSourceFile);;
3933+
var emitFilesResult = getFullTypeCheckChecker().emitFiles(targetSourceFile);
39343934
emitOutput.emitOutputStatus = emitFilesResult.emitResultStatus;
39353935

39363936
// Reset writer back to undefined to make sure that we produce an error message if CompilerHost.writeFile method is called when we are not in getEmitOutput

0 commit comments

Comments
 (0)