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
@@ -3,10 +3,15 @@ var _obj$obj;
|
||||
function fn() {}
|
||||
|
||||
var args = [1, 2, 3];
|
||||
var obj = { obj: { fn } };
|
||||
var obj = {
|
||||
obj: {
|
||||
fn
|
||||
}
|
||||
};
|
||||
|
||||
switch (true) {
|
||||
case true:
|
||||
(_obj$obj = obj.obj).fn.apply(_obj$obj, args);
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
var _foob, _foob$test;
|
||||
|
||||
(_foob = foob).add.apply(_foob, [foo, bar].concat(babelHelpers.toConsumableArray(numbers)));
|
||||
(_foob$test = foob.test).add.apply(_foob$test, [foo, bar].concat(babelHelpers.toConsumableArray(numbers)));
|
||||
|
||||
(_foob$test = foob.test).add.apply(_foob$test, [foo, bar].concat(babelHelpers.toConsumableArray(numbers)));
|
||||
@@ -1,4 +1,5 @@
|
||||
var _foob, _foob$test;
|
||||
|
||||
(_foob = foob).add.apply(_foob, babelHelpers.toConsumableArray(numbers));
|
||||
(_foob$test = foob.test).add.apply(_foob$test, babelHelpers.toConsumableArray(numbers));
|
||||
|
||||
(_foob$test = foob.test).add.apply(_foob$test, babelHelpers.toConsumableArray(numbers));
|
||||
@@ -2,4 +2,5 @@ class Foo {
|
||||
bar() {
|
||||
super.bar.apply(this, [arg1, arg2].concat(babelHelpers.toConsumableArray(args)));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,4 +2,5 @@ class Foo {
|
||||
bar() {
|
||||
super.bar.apply(this, babelHelpers.toConsumableArray(args));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user