Skip to content

Commit

Permalink
add classes transform test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Feb 3, 2023
1 parent 3bf22c5 commit 79e2a5a
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 0 deletions.
@@ -0,0 +1,9 @@
class C {
/* before get a */
get a() { return 42 }
/* after get a */

/* before set a */
set a(v) {}
/* after set a */
}
@@ -0,0 +1,18 @@
let C = /*#__PURE__*/function () {
"use strict";

function C() {}
babelHelpers.createClass(C, [{
key: "a",
get: /* before get a */
function () {
return 42;
}
/* after get a */

/* before set a */,
set: function (v) {}
/* after set a */
}]);
return C;
}();
@@ -0,0 +1,9 @@
class C {
/* before get a */
get a() { return 42 }
/* after get a */

/* before set a */
set a(v) {}
/* after set a */
}
@@ -0,0 +1,20 @@
let C = /*#__PURE__*/function () {
"use strict";

function C() {
babelHelpers.classCallCheck(this, C);
}
babelHelpers.createClass(C, [{
key: "a",
get: /* before get a */
function () {
return 42;
}
/* after get a */

/* before set a */,
set: function (v) {}
/* after set a */
}]);
return C;
}();
@@ -0,0 +1,5 @@
class C {
/* before a */
a() {}
/* after a */
}
@@ -0,0 +1,10 @@
var C = /*#__PURE__*/function () {
"use strict";

function C() {}
var _proto = C.prototype;
/* before a */
_proto.a = function a() {}
/* after a */;
return C;
}();
@@ -0,0 +1,5 @@
class C {
/* before a */
a() {}
/* after a */
}
@@ -0,0 +1,14 @@
var C = /*#__PURE__*/function () {
"use strict";

function C() {
babelHelpers.classCallCheck(this, C);
}
babelHelpers.createClass(C, [{
key: "a",
value: /* before a */
function a() {}
/* after a */
}]);
return C;
}();

0 comments on commit 79e2a5a

Please sign in to comment.