Debian Codegraph @

packages/babel-plugin-proposal-optional-chaining/test/fixtures/general/parenthesized-member-call-loose/output.js

raw
1 class Foo {
2 constructor() {
3 this.x = 1;
4 this.self = this;
5 }
6 m() {
7 return this.x;
8 }
9 getSelf() {
10 return this;
11 }
12 test() {
13 var _o$Foo$self$getSelf, _o$Foo, _o$Foo$self$getSelf2, _o$Foo$self, _fn$Foo$self$getSelf, _fn, _fn$Foo, _fn$Foo$self$getSelf2, _fn$Foo$self;
14 const Foo = this;
15 const o = {
16 Foo: Foo
17 };
18 const fn = function () {
19 return o;
20 };
21 (Foo == null ? void 0 : Foo["m"].bind(Foo))();
22 (Foo == null ? void 0 : Foo["m"].bind(Foo))().toString;
23 (Foo == null ? void 0 : Foo["m"].bind(Foo))().toString();
24 (o == null ? void 0 : o.Foo.m.bind(o.Foo))();
25 (o == null ? void 0 : o.Foo.m.bind(o.Foo))().toString;
26 (o == null ? void 0 : o.Foo.m.bind(o.Foo))().toString();
27 ((_o$Foo$self$getSelf = ((_o$Foo = o.Foo) == null ? void 0 : _o$Foo.self.getSelf.bind(_o$Foo.self))()) == null ? void 0 : _o$Foo$self$getSelf.m.bind(_o$Foo$self$getSelf))();
28 ((_o$Foo$self$getSelf2 = ((_o$Foo$self = o.Foo.self) == null ? void 0 : _o$Foo$self.getSelf.bind(_o$Foo$self))()) == null ? void 0 : _o$Foo$self$getSelf2.m.bind(_o$Foo$self$getSelf2))();
29 ((_fn$Foo$self$getSelf = ((_fn = fn()) == null ? void 0 : (_fn$Foo = _fn.Foo) == null ? void 0 : _fn$Foo.self.getSelf.bind(_fn$Foo.self))()) == null ? void 0 : _fn$Foo$self$getSelf.m.bind(_fn$Foo$self$getSelf))();
30 ((_fn$Foo$self$getSelf2 = (fn == null ? void 0 : (_fn$Foo$self = fn().Foo.self) == null ? void 0 : _fn$Foo$self.getSelf.bind(_fn$Foo$self))()) == null ? void 0 : _fn$Foo$self$getSelf2.m.bind(_fn$Foo$self$getSelf2))();
31 }
32 }
33 new Foo().test();