Daniel Tschinder b3372a572d 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
2017-06-27 21:57:02 -05:00

42 lines
569 B
JavaScript

function foo() {
var x = 5;
console.log(x);
{
var _x = 7;
setTimeout(function () {
return _x;
}, 0);
}
}
function bar() {
var x = 5;
console.log(x);
for (var i = 0; i < 7; i++) {
{
(function () {
var x = i;
setTimeout(function () {
return x;
}, 0);
})();
}
}
}
function baz() {
var x = 5;
console.log(x);
for (var i = 0; i < 7; i++) {
var qux = function qux(y) {
var x = y;
setTimeout(function () {
return x;
}, 0);
};
qux(i);
}
}