Debian Codegraph @

packages/babel-plugin-transform-classes/test/fixtures/spec/name-collisions-with-class-ref-in-method/output.js

raw
1 var Foo = /*#__PURE__*/function () {
2 "use strict";
3
4 function Foo() {
5 babelHelpers.classCallCheck(this, Foo);
6 }
7 babelHelpers.createClass(Foo, [{
8 key: "method",
9 value: function method(_Foo) {
10 return babelHelpers.get(babelHelpers.getPrototypeOf(Foo.prototype), "method", this).call(this, _Foo);
11 }
12 }]);
13 return Foo;
14 }();
15 var Bar = /*#__PURE__*/function () {
16 "use strict";
17
18 function Bar() {
19 babelHelpers.classCallCheck(this, Bar);
20 }
21 babelHelpers.createClass(Bar, [{
22 key: "method",
23 value: function method() {
24 return () => {
25 var _Bar;
26 return babelHelpers.get(babelHelpers.getPrototypeOf(Bar.prototype), "method", this).call(this, _Bar);
27 };
28 }
29 }]);
30 return Bar;
31 }();
32 var Baz = /*#__PURE__*/function () {
33 "use strict";
34
35 function Baz() {
36 babelHelpers.classCallCheck(this, Baz);
37 }
38 babelHelpers.createClass(Baz, [{
39 key: "method",
40 value: function method() {
41 var _Baz = /*#__PURE__*/function () {
42 function _Baz() {
43 babelHelpers.classCallCheck(this, _Baz);
44 }
45 babelHelpers.createClass(_Baz, [{
46 key: "f",
47 value: function f() {
48 var Baz = 1;
49 return Baz;
50 }
51 }]);
52 return _Baz;
53 }();
54 return babelHelpers.get(babelHelpers.getPrototypeOf(Baz.prototype), "method", this).call(this, _Baz);
55 }
56 }]);
57 return Baz;
58 }();