TypeScript/tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.symbols
2015-04-15 16:44:20 -07:00

50 lines
2.1 KiB
Plaintext

=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithThisKeywordInES6.ts ===
class B {
>B : Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0))
x = 10;
>x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
constructor() {
this.x = 10;
>this.x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
>this : Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0))
>x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
}
static log(a: number) { }
>log : Symbol(B.log, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 4, 5))
>a : Symbol(a, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 5, 15))
foo() {
>foo : Symbol(foo, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 5, 29))
B.log(this.x);
>B.log : Symbol(B.log, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 4, 5))
>B : Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0))
>log : Symbol(B.log, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 4, 5))
>this.x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
>this : Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0))
>x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
}
get X() {
>X : Symbol(X, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 8, 5))
return this.x;
>this.x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
>this : Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0))
>x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
}
set bX(y: number) {
>bX : Symbol(bX, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 12, 5))
>y : Symbol(y, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 14, 11))
this.x = y;
>this.x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
>this : Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0))
>x : Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9))
>y : Symbol(y, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 14, 11))
}
}