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
@@ -1,4 +1,5 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
|
||||
_coroutine(function* () {
|
||||
yield foo();
|
||||
})();
|
||||
})();
|
||||
@@ -1,8 +1,10 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
|
||||
class Foo {
|
||||
foo() {
|
||||
return _coroutine(function* () {
|
||||
var wat = yield bar();
|
||||
})();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
|
||||
var foo = (() => {
|
||||
var _ref = _coroutine(function* () {
|
||||
var wat = yield bar();
|
||||
@@ -7,4 +8,4 @@ var foo = (() => {
|
||||
return function foo() {
|
||||
return _ref.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
})();
|
||||
@@ -1,4 +1,5 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
|
||||
var foo = (() => {
|
||||
var _ref = _coroutine(function* () {
|
||||
console.log(bar);
|
||||
@@ -9,4 +10,4 @@ var foo = (() => {
|
||||
}
|
||||
|
||||
return bar;
|
||||
})();
|
||||
})();
|
||||
Reference in New Issue
Block a user