48 lines
1.7 KiB
Text
48 lines
1.7 KiB
Text
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithGetterSetterInES6.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 0))
|
|
|
|
_name: string;
|
|
>_name : Symbol(_name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 9))
|
|
|
|
get name(): string {
|
|
>name : Symbol(name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 1, 18))
|
|
|
|
return this._name;
|
|
>this._name : Symbol(_name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 9))
|
|
>this : Symbol(C, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 0))
|
|
>_name : Symbol(_name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 9))
|
|
}
|
|
static get name2(): string {
|
|
>name2 : Symbol(C.name2, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 4, 5))
|
|
|
|
return "BYE";
|
|
}
|
|
static get ["computedname"]() {
|
|
return "";
|
|
}
|
|
get ["computedname"]() {
|
|
return "";
|
|
}
|
|
get ["computedname"]() {
|
|
return "";
|
|
}
|
|
|
|
set ["computedname"](x: any) {
|
|
>x : Symbol(x, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 18, 25))
|
|
}
|
|
set ["computedname"](y: string) {
|
|
>y : Symbol(y, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 20, 25))
|
|
}
|
|
|
|
set foo(a: string) { }
|
|
>foo : Symbol(foo, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 21, 5))
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 23, 12))
|
|
|
|
static set bar(b: number) { }
|
|
>bar : Symbol(C.bar, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 23, 26))
|
|
>b : Symbol(b, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 24, 19))
|
|
|
|
static set ["computedname"](b: string) { }
|
|
>b : Symbol(b, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 25, 32))
|
|
}
|