Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
158 additions
and
229 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
...bel-plugin-proposal-decorators/test/fixtures/2021-12-exported/member-decorator/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
9 changes: 4 additions & 5 deletions
9
...rs/test/fixtures/2021-12-misc--to-es2015/initProto-existing-derived-constructor/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"]], []); |
21 changes: 9 additions & 12 deletions
21
...posal-decorators/test/fixtures/2021-12-misc--to-es2015/valid-expression-formats/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...bel-plugin-proposal-decorators/test/fixtures/2022-03-exported/member-decorator/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 12 additions & 15 deletions
27
...posal-decorators/test/fixtures/2022-03-misc--to-es2015/valid-expression-formats/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...bel-plugin-proposal-decorators/test/fixtures/2023-01-exported/member-decorator/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
Oops, something went wrong.