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

24 lines
772 B
Plaintext

=== tests/cases/compiler/privateVisibles.ts ===
class Foo {
>Foo : Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
private pvar = 0;
>pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
constructor() {
var n = this.pvar;
>n : Symbol(n, Decl(privateVisibles.ts, 3, 8))
>this.pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
>this : Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
>pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
}
public meth() { var q = this.pvar;}
>meth : Symbol(meth, Decl(privateVisibles.ts, 4, 2))
>q : Symbol(q, Decl(privateVisibles.ts, 6, 20))
>this.pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
>this : Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
>pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
}