Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/nested-class/super-property-in-accessor-key/output.js

raw symbols SCIP
1 "use strict";
2
3 let Hello = /*#__PURE__*/function () {
4 function Hello() {
5 babelHelpers.classCallCheck(this, Hello);
6 }
7 babelHelpers.createClass(Hello, [{
8 key: "toString",
9 value: function toString() {
10 return 'hello';
11 }
12 }]);
13 return Hello;
14 }();
15 let Outer = /*#__PURE__*/function (_Hello) {
16 babelHelpers.inherits(Outer, _Hello);
17 var _super = babelHelpers.createSuper(Outer);
18 function Outer() {
19 let _babelHelpers$get$cal, _babelHelpers$get$cal2;
20 var _thisSuper, _this;
21 babelHelpers.classCallCheck(this, Outer);
22 _this = _super.call(this);
23 var _A = /*#__PURE__*/new WeakMap();
24 _babelHelpers$get$cal = babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Outer.prototype)), "toString", _thisSuper).call(_thisSuper);
25 _babelHelpers$get$cal2 = babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Outer.prototype)), "toString", _thisSuper).call(_thisSuper);
26 let Inner = /*#__PURE__*/function () {
27 function Inner() {
28 babelHelpers.classCallCheck(this, Inner);
29 babelHelpers.classPrivateFieldInitSpec(this, _A, {
30 writable: true,
31 value: 'hello'
32 });
33 }
34 babelHelpers.createClass(Inner, [{
35 key: _babelHelpers$get$cal,
36 get: function () {
37 return babelHelpers.classPrivateFieldGet(this, _A);
38 }
39 }, {
40 key: _babelHelpers$get$cal2,
41 set: function (v) {
42 babelHelpers.classPrivateFieldSet(this, _A, v);
43 }
44 }]);
45 return Inner;
46 }();
47 return babelHelpers.possibleConstructorReturn(_this, new Inner());
48 }
49 return babelHelpers.createClass(Outer);
50 }(Hello);
51 expect(new Outer().hello).toBe('hello');