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:
committed by
Brian Ng
parent
bc29145465
commit
b3372a572d
@@ -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);
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@@ -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();
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@@ -10,6 +10,7 @@ System.register([], function (_export, _context) {
|
||||
_export("test", test);
|
||||
|
||||
_export("test", test = 5);
|
||||
|
||||
_export("test", test + 1), test++;
|
||||
|
||||
(function () {
|
||||
|
||||
Reference in New Issue
Block a user