Emit new lines between source files emit so that the file contents always start on new line

Fixes #500
This commit is contained in:
Sheetal Nandi
2014-08-21 13:44:26 -07:00
parent 753364768e
commit 3e2de14933
6 changed files with 221 additions and 0 deletions

View File

@@ -1925,6 +1925,8 @@ module ts {
function emitSourceFile(node: SourceFile) {
currentSourceFile = node;
// Start new file on new line
writeLine();
emitDetachedComments(node);
// emit prologue directives prior to __extends
var startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ false);