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

83 lines
3 KiB
Plaintext

=== tests/cases/conformance/types/members/classWithPublicProperty.ts ===
class C {
>C : Symbol(C, Decl(classWithPublicProperty.ts, 0, 0))
public x;
>x : Symbol(x, Decl(classWithPublicProperty.ts, 0, 9))
public a = '';
>a : Symbol(a, Decl(classWithPublicProperty.ts, 1, 13))
public b: string = '';
>b : Symbol(b, Decl(classWithPublicProperty.ts, 2, 18))
public c() { return '' }
>c : Symbol(c, Decl(classWithPublicProperty.ts, 3, 26))
public d = () => '';
>d : Symbol(d, Decl(classWithPublicProperty.ts, 4, 28))
public static e;
>e : Symbol(C.e, Decl(classWithPublicProperty.ts, 5, 24))
public static f() { return '' }
>f : Symbol(C.f, Decl(classWithPublicProperty.ts, 6, 20))
public static g = () => '';
>g : Symbol(C.g, Decl(classWithPublicProperty.ts, 7, 35))
}
// all of these are valid
var c = new C();
>c : Symbol(c, Decl(classWithPublicProperty.ts, 12, 3))
>C : Symbol(C, Decl(classWithPublicProperty.ts, 0, 0))
var r1: string = c.x;
>r1 : Symbol(r1, Decl(classWithPublicProperty.ts, 13, 3))
>c.x : Symbol(C.x, Decl(classWithPublicProperty.ts, 0, 9))
>c : Symbol(c, Decl(classWithPublicProperty.ts, 12, 3))
>x : Symbol(C.x, Decl(classWithPublicProperty.ts, 0, 9))
var r2: string = c.a;
>r2 : Symbol(r2, Decl(classWithPublicProperty.ts, 14, 3))
>c.a : Symbol(C.a, Decl(classWithPublicProperty.ts, 1, 13))
>c : Symbol(c, Decl(classWithPublicProperty.ts, 12, 3))
>a : Symbol(C.a, Decl(classWithPublicProperty.ts, 1, 13))
var r3: string = c.b;
>r3 : Symbol(r3, Decl(classWithPublicProperty.ts, 15, 3))
>c.b : Symbol(C.b, Decl(classWithPublicProperty.ts, 2, 18))
>c : Symbol(c, Decl(classWithPublicProperty.ts, 12, 3))
>b : Symbol(C.b, Decl(classWithPublicProperty.ts, 2, 18))
var r4: string = c.c();
>r4 : Symbol(r4, Decl(classWithPublicProperty.ts, 16, 3))
>c.c : Symbol(C.c, Decl(classWithPublicProperty.ts, 3, 26))
>c : Symbol(c, Decl(classWithPublicProperty.ts, 12, 3))
>c : Symbol(C.c, Decl(classWithPublicProperty.ts, 3, 26))
var r5: string = c.d();
>r5 : Symbol(r5, Decl(classWithPublicProperty.ts, 17, 3))
>c.d : Symbol(C.d, Decl(classWithPublicProperty.ts, 4, 28))
>c : Symbol(c, Decl(classWithPublicProperty.ts, 12, 3))
>d : Symbol(C.d, Decl(classWithPublicProperty.ts, 4, 28))
var r6: string = C.e;
>r6 : Symbol(r6, Decl(classWithPublicProperty.ts, 18, 3))
>C.e : Symbol(C.e, Decl(classWithPublicProperty.ts, 5, 24))
>C : Symbol(C, Decl(classWithPublicProperty.ts, 0, 0))
>e : Symbol(C.e, Decl(classWithPublicProperty.ts, 5, 24))
var r7: string = C.f();
>r7 : Symbol(r7, Decl(classWithPublicProperty.ts, 19, 3))
>C.f : Symbol(C.f, Decl(classWithPublicProperty.ts, 6, 20))
>C : Symbol(C, Decl(classWithPublicProperty.ts, 0, 0))
>f : Symbol(C.f, Decl(classWithPublicProperty.ts, 6, 20))
var r8: string = C.g();
>r8 : Symbol(r8, Decl(classWithPublicProperty.ts, 20, 3))
>C.g : Symbol(C.g, Decl(classWithPublicProperty.ts, 7, 35))
>C : Symbol(C, Decl(classWithPublicProperty.ts, 0, 0))
>g : Symbol(C.g, Decl(classWithPublicProperty.ts, 7, 35))