Skip to content

Commit

Permalink
update test output
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 5, 2024
1 parent bdee20d commit d33d87b
Show file tree
Hide file tree
Showing 28 changed files with 158 additions and 229 deletions.
@@ -1,8 +1,7 @@
var _xDecs, _init_x;
export class A {
static {
_xDecs = dec;
[_init_x] = babelHelpers.applyDecs(this, [[_xDecs, 0, "x"]], []);
}
x = _init_x(this);
[(_xDecs = dec, "x")] = _init_x(this);
}
@@ -1,15 +1,14 @@
let _ref;
var _initProto, _methodDecs, _A;
const dec = () => {};
_ref = (_methodDecs = deco, "method");
class A extends B {
constructor() {
let a = 2;
_initProto(super(a));
foo();
}
method() {}
[_ref]() {}
}
_A = A;
(() => {
_methodDecs = deco;
[_initProto] = babelHelpers.applyDecs(_A, [[_methodDecs, 2, "method"]], []);
})();
[_initProto] = babelHelpers.applyDecs(_A, [[_methodDecs, 2, "method"]], []);
@@ -1,28 +1,25 @@
let _ref;
var _initProto, _initClass, _classDecs, _methodDecs, _Foo2;
const dec = () => {};
_classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
var _a = /*#__PURE__*/new WeakMap();
_ref = (_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "makeClass");
class Foo {
constructor() {
babelHelpers.classPrivateFieldInitSpec(this, _a, void _initProto(this));
}
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis, _Nested;
return _outerThis = this, (_Nested = class Nested {
[_ref]() {
let _ref2;
var _barDecs, _init_bar, _Nested;
return _ref2 = (_barDecs = babelHelpers.classPrivateFieldGet2(_a, this), "bar"), (_Nested = class Nested {
constructor() {
babelHelpers.defineProperty(this, "bar", _init_bar(this));
babelHelpers.defineProperty(this, _ref2, _init_bar(this));
}
}, (() => {
_barDecs = babelHelpers.classPrivateFieldGet2(_a, _outerThis);
[_init_bar] = babelHelpers.applyDecs(_Nested, [[_barDecs, 0, "bar"]], []);
})(), _Nested);
}, [_init_bar] = babelHelpers.applyDecs(_Nested, [[_barDecs, 0, "bar"]], []), _Nested);
}
}
_Foo2 = Foo;
(() => {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
[_initProto, _Foo, _initClass] = babelHelpers.applyDecs(_Foo2, [[_methodDecs, 2, "method"]], _classDecs);
})();
[_initProto, _Foo, _initClass] = babelHelpers.applyDecs(_Foo2, [[_methodDecs, 2, "method"]], _classDecs);
_initClass();
Expand Up @@ -2,7 +2,6 @@ var _initProto, _methodDecs, _initProto2, _methodDecs2;
const dec = () => {};
class A extends B {
static {
_methodDecs = deco;
[_initProto] = babelHelpers.applyDecs(this, [[_methodDecs, 2, "method"]], []);
}
constructor() {
Expand All @@ -12,17 +11,16 @@ class A extends B {
_initProto(super(false));
}
}
method() {}
[(_methodDecs = deco, "method")]() {}
}
class C extends B {
static {
_methodDecs2 = deco;
[_initProto2] = babelHelpers.applyDecs(this, [[_methodDecs2, 2, "method"]], []);
}
constructor() {
try {
_initProto2(super(_initProto2(super()), null.x));
} catch {}
}
method() {}
[(_methodDecs2 = deco, "method")]() {}
}
Expand Up @@ -94,11 +94,9 @@
const noop = () => fn => fn;
new class extends B {
constructor() {
var _initProto4, _noopDecs, _outerSuper;
_outerSuper = (...args) => super(...args);
var _initProto4, _noopDecs;
class A extends B {
static {
_noopDecs = noop(log.push(_outerSuper(7).method()));
[_initProto4] = babelHelpers.applyDecs(this, [[dec, 2, "method"], [_noopDecs, 2, "noop"]], []);
}
constructor() {
Expand All @@ -107,7 +105,7 @@
method() {
return this.a;
}
noop() {}
[(_noopDecs = noop(log.push(super(7).method())), "noop")]() {}
}
new A();
}
Expand Down Expand Up @@ -148,17 +146,16 @@
[_initProto6] = babelHelpers.applyDecs(this, [[dec, 2, "method"]], []);
}
constructor() {
var _initProto7, _noopDecs2, _outerSuper2;
new (_outerSuper2 = (...args) => super(...args), class Dummy extends B {
var _initProto7, _noopDecs2;
new class Dummy extends B {
static {
_noopDecs2 = noop(log.push(_initProto6(_outerSuper2(11)).method()));
[_initProto7] = babelHelpers.applyDecs(this, [[_noopDecs2, 2, "noop"]], []);
}
constructor() {
log.push(_initProto7(super(12)).method());
}
noop() {}
})();
[(_noopDecs2 = noop(log.push(_initProto6(super(11)).method())), "noop")]() {}
}();
}
method() {
return this.a;
Expand Down
Expand Up @@ -4,19 +4,17 @@ _classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
class Foo {
static {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
[_initProto, _Foo, _initClass] = babelHelpers.applyDecs(this, [[_methodDecs, 2, "method"]], _classDecs);
}
#a = void _initProto(this);
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis;
return _outerThis = this, class Nested {
[(_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "makeClass")]() {
var _barDecs, _init_bar;
return class Nested {
static {
_barDecs = _outerThis.#a;
[_init_bar] = babelHelpers.applyDecs(this, [[_barDecs, 0, "bar"]], []);
}
bar = _init_bar(this);
[(_barDecs = this.#a, "bar")] = _init_bar(this);
};
}
static {
Expand Down
@@ -1,8 +1,7 @@
var _xDecs, _init_x;
export class A {
static {
_xDecs = dec;
[_init_x] = babelHelpers.applyDecs2203R(this, [[_xDecs, 0, "x"]], []).e;
}
x = _init_x(this);
[(_xDecs = dec, "x")] = _init_x(this);
}
Expand Up @@ -91,22 +91,20 @@
const noop = () => fn => fn;
new class extends B {
constructor() {
var _initProto4, _noopDecs, _outerSuper, _A4;
_outerSuper = (...args) => super(...args);
let _ref;
var _initProto4, _noopDecs, _A4;
_ref = (_noopDecs = noop(log.push(super(7).method())), "noop");
class A extends B {
constructor() {
log.push(_initProto4(super(8)).method());
}
method() {
return this.a;
}
noop() {}
[_ref]() {}
}
_A4 = A;
(() => {
_noopDecs = noop(log.push(_outerSuper(7).method()));
[_initProto4] = babelHelpers.applyDecs2203R(_A4, [[dec, 2, "method"], [_noopDecs, 2, "noop"]], []).e;
})();
[_initProto4] = babelHelpers.applyDecs2203R(_A4, [[dec, 2, "method"], [_noopDecs, 2, "noop"]], []).e;
new A();
}
}();
Expand All @@ -118,11 +116,11 @@
let log = [];
class A extends B {
constructor() {
let _ref;
let _ref2;
let key;
new (_ref = (key = _initProto5(super(9)).method(), log.push(key), key), class Dummy extends B {
new (_ref2 = (key = _initProto5(super(9)).method(), log.push(key), key), class Dummy extends B {
constructor() {
log.push((super(10), babelHelpers.defineProperty(this, _ref, void 0)).method());
log.push((super(10), babelHelpers.defineProperty(this, _ref2, void 0)).method());
}
})();
}
Expand All @@ -142,16 +140,14 @@
const noop = () => fn => fn;
class A extends B {
constructor() {
var _initProto7, _noopDecs2, _outerSuper2, _Dummy2;
new (_outerSuper2 = (...args) => super(...args), (_Dummy2 = class Dummy extends B {
let _ref3;
var _initProto7, _noopDecs2, _Dummy2;
new (_ref3 = (_noopDecs2 = noop(log.push(_initProto6(super(11)).method())), "noop"), (_Dummy2 = class Dummy extends B {
constructor() {
log.push(_initProto7(super(12)).method());
}
noop() {}
}, (() => {
_noopDecs2 = noop(log.push(_initProto6(_outerSuper2(11)).method()));
[_initProto7] = babelHelpers.applyDecs2203R(_Dummy2, [[_noopDecs2, 2, "noop"]], []).e;
})(), _Dummy2))();
[_ref3]() {}
}, [_initProto7] = babelHelpers.applyDecs2203R(_Dummy2, [[_noopDecs2, 2, "noop"]], []).e, _Dummy2))();
}
method() {
return this.a;
Expand Down
@@ -1,31 +1,28 @@
let _ref;
var _initProto, _initClass, _classDecs, _methodDecs, _Foo2;
const dec = () => {};
_classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
var _a = /*#__PURE__*/new WeakMap();
_ref = (_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "makeClass");
class Foo {
constructor() {
babelHelpers.classPrivateFieldInitSpec(this, _a, void _initProto(this));
}
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis, _Nested;
return _outerThis = this, (_Nested = class Nested {
[_ref]() {
let _ref2;
var _barDecs, _init_bar, _Nested;
return _ref2 = (_barDecs = babelHelpers.classPrivateFieldGet2(_a, this), "bar"), (_Nested = class Nested {
constructor() {
babelHelpers.defineProperty(this, "bar", _init_bar(this));
babelHelpers.defineProperty(this, _ref2, _init_bar(this));
}
}, (() => {
_barDecs = babelHelpers.classPrivateFieldGet2(_a, _outerThis);
[_init_bar] = babelHelpers.applyDecs2203R(_Nested, [[_barDecs, 0, "bar"]], []).e;
})(), _Nested);
}, [_init_bar] = babelHelpers.applyDecs2203R(_Nested, [[_barDecs, 0, "bar"]], []).e, _Nested);
}
}
_Foo2 = Foo;
(() => {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
({
e: [_initProto],
c: [_Foo, _initClass]
} = babelHelpers.applyDecs2203R(_Foo2, [[_methodDecs, 2, "method"]], _classDecs));
})();
({
e: [_initProto],
c: [_Foo, _initClass]
} = babelHelpers.applyDecs2203R(_Foo2, [[_methodDecs, 2, "method"]], _classDecs));
_initClass();
Expand Up @@ -2,7 +2,6 @@ var _initProto, _methodDecs, _initProto2, _methodDecs2;
const dec = () => {};
class A extends B {
static {
_methodDecs = deco;
[_initProto] = babelHelpers.applyDecs2203R(this, [[_methodDecs, 2, "method"]], []).e;
}
constructor() {
Expand All @@ -12,17 +11,16 @@ class A extends B {
_initProto(super(false));
}
}
method() {}
[(_methodDecs = deco, "method")]() {}
}
class C extends B {
static {
_methodDecs2 = deco;
[_initProto2] = babelHelpers.applyDecs2203R(this, [[_methodDecs2, 2, "method"]], []).e;
}
constructor() {
try {
_initProto2(super(_initProto2(super()), null.x));
} catch {}
}
method() {}
[(_methodDecs2 = deco, "method")]() {}
}
Expand Up @@ -94,11 +94,9 @@
const noop = () => fn => fn;
new class extends B {
constructor() {
var _initProto4, _noopDecs, _outerSuper;
_outerSuper = (...args) => super(...args);
var _initProto4, _noopDecs;
class A extends B {
static {
_noopDecs = noop(log.push(_outerSuper(7).method()));
[_initProto4] = babelHelpers.applyDecs2203R(this, [[dec, 2, "method"], [_noopDecs, 2, "noop"]], []).e;
}
constructor() {
Expand All @@ -107,7 +105,7 @@
method() {
return this.a;
}
noop() {}
[(_noopDecs = noop(log.push(super(7).method())), "noop")]() {}
}
new A();
}
Expand Down Expand Up @@ -148,17 +146,16 @@
[_initProto6] = babelHelpers.applyDecs2203R(this, [[dec, 2, "method"]], []).e;
}
constructor() {
var _initProto7, _noopDecs2, _outerSuper2;
new (_outerSuper2 = (...args) => super(...args), class Dummy extends B {
var _initProto7, _noopDecs2;
new class Dummy extends B {
static {
_noopDecs2 = noop(log.push(_initProto6(_outerSuper2(11)).method()));
[_initProto7] = babelHelpers.applyDecs2203R(this, [[_noopDecs2, 2, "noop"]], []).e;
}
constructor() {
log.push(_initProto7(super(12)).method());
}
noop() {}
})();
[(_noopDecs2 = noop(log.push(_initProto6(super(11)).method())), "noop")]() {}
}();
}
method() {
return this.a;
Expand Down
Expand Up @@ -4,22 +4,20 @@ _classDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
let _Foo;
class Foo {
static {
_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]];
({
e: [_initProto],
c: [_Foo, _initClass]
} = babelHelpers.applyDecs2203R(this, [[_methodDecs, 2, "method"]], _classDecs));
}
#a = void _initProto(this);
method() {}
makeClass() {
var _barDecs, _init_bar, _outerThis;
return _outerThis = this, class Nested {
[(_methodDecs = [dec, call(), chain.expr(), arbitrary + expr, array[expr]], "makeClass")]() {
var _barDecs, _init_bar;
return class Nested {
static {
_barDecs = _outerThis.#a;
[_init_bar] = babelHelpers.applyDecs2203R(this, [[_barDecs, 0, "bar"]], []).e;
}
bar = _init_bar(this);
[(_barDecs = this.#a, "bar")] = _init_bar(this);
};
}
static {
Expand Down
@@ -1,8 +1,7 @@
var _xDecs, _init_x;
export class A {
static {
_xDecs = dec;
[_init_x] = babelHelpers.applyDecs2301(this, [[_xDecs, 0, "x"]], []).e;
}
x = _init_x(this);
[(_xDecs = dec, "x")] = _init_x(this);
}

0 comments on commit d33d87b

Please sign in to comment.