Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/public/computed/output.js

raw
1 var _one, _ref, _undefined, _computed, _computed2, _ref2, _ref3, _baz, _ref4;
2 var foo = "foo";
3 var bar = () => {};
4 var four = 4;
5 _one = one();
6 _ref = 2 * four + seven;
7 _undefined = undefined;
8 _computed = computed();
9 _computed2 = computed();
10 _ref2 = "test" + one;
11 _ref3 = /regex/;
12 _baz = baz;
13 _ref4 = `template${expression}`;
14 var MyClass = /*#__PURE__*/function () {
15 "use strict";
16
17 function MyClass() {
18 babelHelpers.classCallCheck(this, MyClass);
19 babelHelpers.defineProperty(this, null, "null");
20 babelHelpers.defineProperty(this, _undefined, "undefined");
21 babelHelpers.defineProperty(this, void 0, "void 0");
22 babelHelpers.defineProperty(this, _ref3, "regex");
23 babelHelpers.defineProperty(this, foo, "foo");
24 babelHelpers.defineProperty(this, bar, "bar");
25 babelHelpers.defineProperty(this, _baz, "baz");
26 babelHelpers.defineProperty(this, `template`, "template");
27 babelHelpers.defineProperty(this, _ref4, "template-with-expression");
28 }
29 babelHelpers.createClass(MyClass, [{
30 key: "whatever",
31 get: function () {},
32 set: function (value) {}
33 }, {
34 key: _computed,
35 get: function () {}
36 }, {
37 key: _computed2,
38 set: function (value) {}
39 }, {
40 key: _ref2,
41 value: function () {}
42 }], [{
43 key: "10",
44 value: function _() {}
45 }]);
46 return MyClass;
47 }();
48 babelHelpers.defineProperty(MyClass, _one, "test");
49 babelHelpers.defineProperty(MyClass, 2 * 4 + 7, "247");
50 babelHelpers.defineProperty(MyClass, 2 * four + 7, "247");
51 babelHelpers.defineProperty(MyClass, _ref, "247");