Skip newlines around inline #__PURE__ annotations (#11133)
* Skip newlines around #__PURE__ annotations * Update tests
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
var Ref =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Ref = /*#__PURE__*/function () {
|
||||
"use strict";
|
||||
|
||||
function Ref() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
var a;
|
||||
|
||||
var Test =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
var Test = /*#__PURE__*/function () {
|
||||
"use strict";
|
||||
|
||||
function Test() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user