swc/tests/tsc-references/es6/classDeclaration/emitClassDeclarationWithMethodInES6/input.ts/es2015.1.normal/output.js

36 lines
616 B
JavaScript

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