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,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");

View File

@@ -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);
}

View File

@@ -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:

View File

@@ -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");

View File

@@ -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);
}

View File

@@ -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:

View File

@@ -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");

View File

@@ -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);
}

View File

@@ -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:

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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);

View File

@@ -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);

View File

@@ -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() {

View File

@@ -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() {