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
@@ -480,7 +480,7 @@ describe("api", function() {
|
||||
}).then(function(result) {
|
||||
assert.equal(
|
||||
result.code,
|
||||
"/*before*/start;\n/*after*/class Foo {}\n/*before*/end;\n/*after*/",
|
||||
"/*before*/\nstart;\n\n/*after*/\nclass Foo {}\n\n/*before*/\nend;\n\n/*after*/",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
export function foo() {}
|
||||
|
||||
export function bar() {}
|
||||
export function bar() {}
|
||||
@@ -3,13 +3,14 @@ var Foo = function (_Bar) {
|
||||
|
||||
function Foo(options) {
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
|
||||
var parentOptions = {};
|
||||
|
||||
parentOptions.init = function () {
|
||||
this;
|
||||
};
|
||||
|
||||
return babelHelpers.possibleConstructorReturn(this, (Foo.__proto__ || Object.getPrototypeOf(Foo)).call(this, parentOptions));
|
||||
}
|
||||
|
||||
return Foo;
|
||||
}(Bar);
|
||||
}(Bar);
|
||||
@@ -1,5 +1,4 @@
|
||||
function test() {
|
||||
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "hi";
|
||||
|
||||
return x;
|
||||
}
|
||||
@@ -9,4 +9,4 @@ function foo() {
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,9 @@ function f() {
|
||||
return _ref.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
};
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
class Class {
|
||||
m() {
|
||||
@@ -28,4 +30,5 @@ class Class {
|
||||
}();
|
||||
})();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,5 +3,4 @@
|
||||
var _values = values;
|
||||
value = _values[fieldName];
|
||||
rest = babelHelpers.objectWithoutProperties(_values, [fieldName]);
|
||||
|
||||
var error = void 0;
|
||||
@@ -1,4 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
|
||||
foobar();
|
||||
foobar();
|
||||
Reference in New Issue
Block a user