Remove whitespace generation (#5833)

* Remove whitespace generation and rely on default printing

Changes to printing:
* Add newline after last empty SwitchCase
* Add newlines around block comments if they are non-flow comments or contain newlines

* Fix a few more fixtures
This commit is contained in:
Daniel Tschinder
2017-06-27 19:57:02 -07:00
committed by Brian Ng
parent bc29145465
commit b3372a572d
379 changed files with 1974 additions and 1109 deletions

View File

@@ -2,6 +2,7 @@ System.register(["./evens"], function (_export, _context) {
"use strict";
var isEven, p, a, i, j, isOdd;
function nextOdd(n) {
return _export("p", p = isEven(n) ? n + 1 : n + 2);
}
@@ -30,4 +31,4 @@ System.register(["./evens"], function (_export, _context) {
_export("isOdd", isOdd);
}
};
});
});

View File

@@ -2,6 +2,7 @@ System.register([], function (_export, _context) {
"use strict";
var c;
function a() {
alert("a");
_export("c", c + 1), c++;
@@ -23,4 +24,4 @@ System.register([], function (_export, _context) {
b();
}
};
});
});

View File

@@ -10,6 +10,7 @@ System.register([], function (_export, _context) {
_export("test", test);
_export("test", test = 5);
_export("test", test + 1), test++;
(function () {