Skip newlines around inline #__PURE__ annotations (#11133)
* Skip newlines around #__PURE__ annotations * Update tests
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import _regeneratorRuntime from "@babel/runtime-corejs2/regenerator";
|
||||
import _Symbol from "@babel/runtime-corejs2/core-js/symbol";
|
||||
|
||||
var _marked =
|
||||
/*#__PURE__*/
|
||||
_regeneratorRuntime.mark(giveWord);
|
||||
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(giveWord);
|
||||
|
||||
import foo, * as bar from "someModule";
|
||||
export const myWord = _Symbol("abc");
|
||||
|
||||
@@ -8,9 +8,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpe
|
||||
|
||||
var _foo = _interopRequireDefault(require("foo"));
|
||||
|
||||
let Example =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
let Example = /*#__PURE__*/function () {
|
||||
function Example() {
|
||||
(0, _classCallCheck2.default)(this, Example);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
var _regeneratorRuntime = require("@babel/runtime-corejs2/regenerator");
|
||||
|
||||
void
|
||||
/*#__PURE__*/
|
||||
_regeneratorRuntime.mark(function _callee() {
|
||||
void /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
||||
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
|
||||
import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
|
||||
|
||||
var _marked =
|
||||
/*#__PURE__*/
|
||||
_regeneratorRuntime.mark(giveWord);
|
||||
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(giveWord);
|
||||
|
||||
import foo, * as bar from "someModule";
|
||||
export const myWord = _Symbol("abc");
|
||||
|
||||
@@ -8,9 +8,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpe
|
||||
|
||||
var _foo = _interopRequireDefault(require("foo"));
|
||||
|
||||
let Example =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
let Example = /*#__PURE__*/function () {
|
||||
function Example() {
|
||||
(0, _classCallCheck2.default)(this, Example);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
var _regeneratorRuntime = require("@babel/runtime-corejs3/regenerator");
|
||||
|
||||
void
|
||||
/*#__PURE__*/
|
||||
_regeneratorRuntime.mark(function _callee() {
|
||||
void /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
||||
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
||||
|
||||
var _marked =
|
||||
/*#__PURE__*/
|
||||
_regeneratorRuntime.mark(giveWord);
|
||||
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(giveWord);
|
||||
|
||||
import foo, * as bar from "someModule";
|
||||
export const myWord = Symbol("abc");
|
||||
|
||||
@@ -8,9 +8,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
||||
|
||||
var _foo = _interopRequireDefault(require("foo"));
|
||||
|
||||
let Example =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
let Example = /*#__PURE__*/function () {
|
||||
function Example() {
|
||||
(0, _classCallCheck2.default)(this, Example);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
||||
|
||||
void
|
||||
/*#__PURE__*/
|
||||
_regeneratorRuntime.mark(function _callee() {
|
||||
void /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
||||
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
|
||||
@@ -3,9 +3,7 @@ import _possibleConstructorReturn from "@babel/runtime-corejs2/helpers/esm/possi
|
||||
import _getPrototypeOf from "@babel/runtime-corejs2/helpers/esm/getPrototypeOf";
|
||||
import _inherits from "@babel/runtime-corejs2/helpers/esm/inherits";
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
let Foo = /*#__PURE__*/function (_Bar) {
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
|
||||
@@ -3,9 +3,7 @@ import _possibleConstructorReturn from "@babel/runtime-corejs2/helpers/possibleC
|
||||
import _getPrototypeOf from "@babel/runtime-corejs2/helpers/getPrototypeOf";
|
||||
import _inherits from "@babel/runtime-corejs2/helpers/inherits";
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
let Foo = /*#__PURE__*/function (_Bar) {
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
|
||||
@@ -6,9 +6,7 @@ var _getPrototypeOf = require("@babel/runtime/helpers/getPrototypeOf");
|
||||
|
||||
var _inherits = require("@babel/runtime/helpers/inherits");
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
let Foo = /*#__PURE__*/function (_Bar) {
|
||||
"use strict";
|
||||
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
@@ -6,9 +6,7 @@ var _getPrototypeOf = require("@babel/runtime/helpers/getPrototypeOf");
|
||||
|
||||
var _inherits = require("@babel/runtime/helpers/inherits");
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
let Foo = /*#__PURE__*/function (_Bar) {
|
||||
"use strict";
|
||||
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
@@ -3,9 +3,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
||||
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
||||
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
let Foo = /*#__PURE__*/function (_Bar) {
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
|
||||
@@ -3,9 +3,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConst
|
||||
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
||||
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
let Foo = /*#__PURE__*/function (_Bar) {
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
|
||||
Reference in New Issue
Block a user