From ab5f0241eb287c41c1535431b7ac9697fe3ae129 Mon Sep 17 00:00:00 2001 From: Yui T Date: Thu, 9 Oct 2014 10:12:49 -0700 Subject: [PATCH] Fix comments --- src/compiler/emitter.ts | 2 +- tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index d59362fd0e9..7d3537b4866 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3258,7 +3258,7 @@ module ts { emitFile(jsFilePath, targetSourceFile); } else if (!isDeclarationFile(targetSourceFile) && compilerOptions.out) { - // Otherwise, if --out is specified and targetSourceFile shouldn't be emitted to own file, + // Otherwise, if --out is specified and targetSourceFile is not a declaration file, // Emit all, non-external-module file, into one single output file emitFile(compilerOptions.out); } diff --git a/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts b/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts index eeaa7fdeb25..1fce5434c1f 100644 --- a/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts +++ b/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts @@ -4,7 +4,6 @@ // @out: declSingle.js // @Filename: decl.d.ts -// @emitThisFile: true //// interface I { a: string; } // @Filename: inputFile2.ts @@ -17,5 +16,8 @@ // @Filename: inputFile4.ts //// var x1:number = 1000; +// @Filename: inputFile5.js +//// var x2 = 1000; + debugger; verify.baselineGetEmitOutput(); \ No newline at end of file