swc/tests/tsc-references/es6/classDeclaration/emitClassDeclarationWithMethodInES6/input.ts/es2015.1.normal/output.js
Donny/강동윤 26944e159d
fix(es/transforms/base): Reimplement hygiene (#2408)
swc_ecma_transforms_base:
 - Reimplement `hygiene`.
2021-10-21 05:12:50 +00:00

36 lines
622 B
JavaScript

var tmp = "computedName1", tmp1 = "computedName2", tmp2 = "computedName3", tmp3 = "computedname4", tmp4 = "computedname5", tmp5 = "computedname6";
// @target:es6
class D {
foo() {
}
[tmp]() {
}
[tmp1](a) {
}
[tmp2](a1) {
return 1;
}
bar() {
return this._bar;
}
baz(a2, x) {
return "HELLO";
}
static [tmp3]() {
}
static [tmp4](a3) {
}
static [tmp5](a4) {
return true;
}
static staticMethod() {
var x = 1 + 2;
return x;
}
static foo(a5) {
}
static bar(a6) {
return 1;
}
}