Merge pull request #505 from Microsoft/newLineBetweenSourceFiles

Emit new lines between source files emit so that the file contents always start on new line
This commit is contained in:
Sheetal Nandi
2014-08-21 16:15:56 -07:00
6 changed files with 232 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);