* test case for insertBefore for jsx * fix unshiftContainer and insertBefore * use path.scope.push * add test making sure computedKeys var declaration at the right block * add comment * nit [skip ci]
60 lines
1.5 KiB
JavaScript
60 lines
1.5 KiB
JavaScript
var _one, _ref, _undefined, _computed, _computed2, _ref2, _ref3, _baz, _ref4;
|
|
|
|
var foo = "foo";
|
|
|
|
var bar = () => {};
|
|
|
|
var four = 4;
|
|
_one = one();
|
|
_ref = 2 * four + seven;
|
|
_undefined = undefined;
|
|
_computed = computed();
|
|
_computed2 = computed();
|
|
_ref2 = "test" + one;
|
|
_ref3 = /regex/;
|
|
_baz = baz;
|
|
_ref4 = `template${expression}`;
|
|
|
|
var MyClass =
|
|
/*#__PURE__*/
|
|
function () {
|
|
"use strict";
|
|
|
|
function MyClass() {
|
|
babelHelpers.classCallCheck(this, MyClass);
|
|
babelHelpers.defineProperty(this, null, "null");
|
|
babelHelpers.defineProperty(this, _undefined, "undefined");
|
|
babelHelpers.defineProperty(this, void 0, "void 0");
|
|
babelHelpers.defineProperty(this, _ref3, "regex");
|
|
babelHelpers.defineProperty(this, foo, "foo");
|
|
babelHelpers.defineProperty(this, bar, "bar");
|
|
babelHelpers.defineProperty(this, _baz, "baz");
|
|
babelHelpers.defineProperty(this, `template`, "template");
|
|
babelHelpers.defineProperty(this, _ref4, "template-with-expression");
|
|
}
|
|
|
|
babelHelpers.createClass(MyClass, [{
|
|
key: _ref2,
|
|
value: function () {}
|
|
}, {
|
|
key: "whatever",
|
|
get: function () {},
|
|
set: function (value) {}
|
|
}, {
|
|
key: _computed,
|
|
get: function () {}
|
|
}, {
|
|
key: _computed2,
|
|
set: function (value) {}
|
|
}], [{
|
|
key: 10,
|
|
value: function () {}
|
|
}]);
|
|
return MyClass;
|
|
}();
|
|
|
|
babelHelpers.defineProperty(MyClass, _one, "test");
|
|
babelHelpers.defineProperty(MyClass, 2 * 4 + 7, "247");
|
|
babelHelpers.defineProperty(MyClass, 2 * four + 7, "247");
|
|
babelHelpers.defineProperty(MyClass, _ref, "247");
|