Skip newlines around inline #__PURE__ annotations (#11133)

* Skip newlines around #__PURE__ annotations

* Update tests
This commit is contained in:
Nicolò Ribaudo
2020-02-13 19:16:33 +01:00
committed by GitHub
parent 3c6a8ae200
commit d21e2217d5
274 changed files with 382 additions and 1072 deletions

View File

@@ -1,6 +1,4 @@
var Ref =
/*#__PURE__*/
function () {
var Ref = /*#__PURE__*/function () {
"use strict";
function Ref() {

View File

@@ -1,6 +1,4 @@
var Ref =
/*#__PURE__*/
function () {
var Ref = /*#__PURE__*/function () {
"use strict";
function Ref() {
@@ -12,9 +10,7 @@ function () {
return Ref;
}();
var X =
/*#__PURE__*/
function () {
var X = /*#__PURE__*/function () {
"use strict";
function X() {

View File

@@ -11,9 +11,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
var Test =
/*#__PURE__*/
function () {
var Test = /*#__PURE__*/function () {
function Test() {
_classCallCheck(this, Test);
}

View File

@@ -1,8 +1,6 @@
var a;
var Test =
/*#__PURE__*/
function () {
var Test = /*#__PURE__*/function () {
"use strict";
function Test() {

View File

@@ -1,6 +1,4 @@
var concat =
/*#__PURE__*/
function () {
var concat = /*#__PURE__*/function () {
var _ref = babelHelpers.asyncToGenerator(function* () {
var x = arguments.length <= 0 ? undefined : arguments[0];
var y = arguments.length <= 1 ? undefined : arguments[1];
@@ -11,9 +9,7 @@ function () {
};
}();
var x =
/*#__PURE__*/
function () {
var x = /*#__PURE__*/function () {
var _ref2 = babelHelpers.asyncToGenerator(function* () {
if (noNeedToWork) return 0;

View File

@@ -1,8 +1,6 @@
function broken(x) {
if (true) {
var Foo =
/*#__PURE__*/
function (_Bar) {
var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
babelHelpers.inherits(Foo, _Bar);

View File

@@ -8,9 +8,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
var Thing =
/*#__PURE__*/
function () {
var Thing = /*#__PURE__*/function () {
function Thing() {
_classCallCheck(this, Thing);
}

View File

@@ -29,9 +29,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var App =
/*#__PURE__*/
function (_Component) {
var App = /*#__PURE__*/function (_Component) {
_inherits(App, _Component);
function App() {