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,5 +1,7 @@
|
||||
var _context;
|
||||
|
||||
var f = (_context = ctx, ns.obj.func).bind(_context);
|
||||
|
||||
var g = (_context = ns.obj).func.bind(_context);
|
||||
var h = (_context = new X(), y).bind(_context);
|
||||
|
||||
var h = (_context = new X(), y).bind(_context);
|
||||
@@ -1,6 +1,7 @@
|
||||
var _context;
|
||||
|
||||
(_context = ctx, ns.obj.func).call(_context);
|
||||
|
||||
(_context = ns.obj).func.call(_context);
|
||||
|
||||
(_context = ns.obj2, ns.obj1.func).call(_context);
|
||||
(_context = ns.obj2, ns.obj1.func).call(_context);
|
||||
@@ -1,11 +1,10 @@
|
||||
var _context;
|
||||
|
||||
import { map, takeWhile, forEach } from "iterlib";
|
||||
|
||||
(_context = (_context = (_context = getPlayers(), map).call(_context, function (x) {
|
||||
return x.character();
|
||||
}), takeWhile).call(_context, function (x) {
|
||||
return x.strength > 100;
|
||||
}), forEach).call(_context, function (x) {
|
||||
return console.log(x);
|
||||
});
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
var bar = function () {};
|
||||
bar.bind(foo);
|
||||
|
||||
bar.bind(foo);
|
||||
var foo = {};
|
||||
foo.bar.bind(foo);
|
||||
foo.bar.bind(foo);
|
||||
@@ -3,6 +3,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _one() {}
|
||||
|
||||
function _two() {}
|
||||
|
||||
let Test1 = function () {
|
||||
@@ -23,4 +24,4 @@ let Test1 = function () {
|
||||
}]);
|
||||
|
||||
return Test1;
|
||||
}();
|
||||
}();
|
||||
Reference in New Issue
Block a user