56 lines
2.2 KiB
Text
56 lines
2.2 KiB
Text
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithMethodInES6.ts ===
|
|
class D {
|
|
>D : Symbol(D, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 0))
|
|
|
|
_bar: string;
|
|
>_bar : Symbol(_bar, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 9))
|
|
|
|
foo() { }
|
|
>foo : Symbol(foo, Decl(emitClassDeclarationWithMethodInES6.ts, 1, 17))
|
|
|
|
["computedName"]() { }
|
|
["computedName"](a: string) { }
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 4, 21))
|
|
|
|
["computedName"](a: string): number { return 1; }
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 5, 21))
|
|
|
|
bar(): string {
|
|
>bar : Symbol(bar, Decl(emitClassDeclarationWithMethodInES6.ts, 5, 53))
|
|
|
|
return this._bar;
|
|
>this._bar : Symbol(_bar, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 9))
|
|
>this : Symbol(D, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 0))
|
|
>_bar : Symbol(_bar, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 9))
|
|
}
|
|
baz(a: any, x: string): string {
|
|
>baz : Symbol(baz, Decl(emitClassDeclarationWithMethodInES6.ts, 8, 5))
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 9, 8))
|
|
>x : Symbol(x, Decl(emitClassDeclarationWithMethodInES6.ts, 9, 15))
|
|
|
|
return "HELLO";
|
|
}
|
|
static ["computedname"]() { }
|
|
static ["computedname"](a: string) { }
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 13, 28))
|
|
|
|
static ["computedname"](a: string): boolean { return true; }
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 14, 28))
|
|
|
|
static staticMethod() {
|
|
>staticMethod : Symbol(D.staticMethod, Decl(emitClassDeclarationWithMethodInES6.ts, 14, 64))
|
|
|
|
var x = 1 + 2;
|
|
>x : Symbol(x, Decl(emitClassDeclarationWithMethodInES6.ts, 16, 11))
|
|
|
|
return x
|
|
>x : Symbol(x, Decl(emitClassDeclarationWithMethodInES6.ts, 16, 11))
|
|
}
|
|
static foo(a: string) { }
|
|
>foo : Symbol(D.foo, Decl(emitClassDeclarationWithMethodInES6.ts, 18, 5))
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 19, 15))
|
|
|
|
static bar(a: string): number { return 1; }
|
|
>bar : Symbol(D.bar, Decl(emitClassDeclarationWithMethodInES6.ts, 19, 29))
|
|
>a : Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 20, 15))
|
|
}
|