Skip to content

Commit ab5f024

Browse files
author
Yui T
committed
Fix comments
1 parent 90ed17b commit ab5f024

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3258,7 +3258,7 @@ module ts {
32583258
emitFile(jsFilePath, targetSourceFile);
32593259
}
32603260
else if (!isDeclarationFile(targetSourceFile) && compilerOptions.out) {
3261-
// Otherwise, if --out is specified and targetSourceFile shouldn't be emitted to own file,
3261+
// Otherwise, if --out is specified and targetSourceFile is not a declaration file,
32623262
// Emit all, non-external-module file, into one single output file
32633263
emitFile(compilerOptions.out);
32643264
}

tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// @out: declSingle.js
55

66
// @Filename: decl.d.ts
7-
// @emitThisFile: true
87
//// interface I { a: string; }
98

109
// @Filename: inputFile2.ts
@@ -17,5 +16,8 @@
1716
// @Filename: inputFile4.ts
1817
//// var x1:number = 1000;
1918

19+
// @Filename: inputFile5.js
20+
//// var x2 = 1000;
21+
2022
debugger;
2123
verify.baselineGetEmitOutput();

0 commit comments

Comments
 (0)