1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
=== tests/cases/conformance/classes/members/constructorFunctionTypes/classWithStaticMembers.ts ===
class C {
>C : Symbol(C, Decl(classWithStaticMembers.ts, 0, 0))
static fn() { return this; }
>fn : Symbol(C.fn, Decl(classWithStaticMembers.ts, 0, 9))
>this : Symbol(C, Decl(classWithStaticMembers.ts, 0, 0))
static get x() { return 1; }
>x : Symbol(C.x, Decl(classWithStaticMembers.ts, 1, 32), Decl(classWithStaticMembers.ts, 2, 32))
static set x(v) { }
>x : Symbol(C.x, Decl(classWithStaticMembers.ts, 1, 32), Decl(classWithStaticMembers.ts, 2, 32))
>v : Symbol(v, Decl(classWithStaticMembers.ts, 3, 17))
constructor(public a: number, private b: number) { }
>a : Symbol(C.a, Decl(classWithStaticMembers.ts, 4, 16))
>b : Symbol(C.b, Decl(classWithStaticMembers.ts, 4, 33))
static foo: string;
>foo : Symbol(C.foo, Decl(classWithStaticMembers.ts, 4, 56))
}
var r = C.fn();
>r : Symbol(r, Decl(classWithStaticMembers.ts, 8, 3), Decl(classWithStaticMembers.ts, 16, 3))
>C.fn : Symbol(C.fn, Decl(classWithStaticMembers.ts, 0, 9))
>C : Symbol(C, Decl(classWithStaticMembers.ts, 0, 0))
>fn : Symbol(C.fn, Decl(classWithStaticMembers.ts, 0, 9))
var r2 = r.x;
>r2 : Symbol(r2, Decl(classWithStaticMembers.ts, 9, 3), Decl(classWithStaticMembers.ts, 17, 3))
>r.x : Symbol(C.x, Decl(classWithStaticMembers.ts, 1, 32), Decl(classWithStaticMembers.ts, 2, 32))
>r : Symbol(r, Decl(classWithStaticMembers.ts, 8, 3), Decl(classWithStaticMembers.ts, 16, 3))
>x : Symbol(C.x, Decl(classWithStaticMembers.ts, 1, 32), Decl(classWithStaticMembers.ts, 2, 32))
var r3 = r.foo;
>r3 : Symbol(r3, Decl(classWithStaticMembers.ts, 10, 3), Decl(classWithStaticMembers.ts, 18, 3))
>r.foo : Symbol(C.foo, Decl(classWithStaticMembers.ts, 4, 56))
>r : Symbol(r, Decl(classWithStaticMembers.ts, 8, 3), Decl(classWithStaticMembers.ts, 16, 3))
>foo : Symbol(C.foo, Decl(classWithStaticMembers.ts, 4, 56))
class D extends C {
>D : Symbol(D, Decl(classWithStaticMembers.ts, 10, 15))
>C : Symbol(C, Decl(classWithStaticMembers.ts, 0, 0))
bar: string;
>bar : Symbol(D.bar, Decl(classWithStaticMembers.ts, 12, 19))
}
var r = D.fn();
>r : Symbol(r, Decl(classWithStaticMembers.ts, 8, 3), Decl(classWithStaticMembers.ts, 16, 3))
>D.fn : Symbol(C.fn, Decl(classWithStaticMembers.ts, 0, 9))
>D : Symbol(D, Decl(classWithStaticMembers.ts, 10, 15))
>fn : Symbol(C.fn, Decl(classWithStaticMembers.ts, 0, 9))
var r2 = r.x;
>r2 : Symbol(r2, Decl(classWithStaticMembers.ts, 9, 3), Decl(classWithStaticMembers.ts, 17, 3))
>r.x : Symbol(C.x, Decl(classWithStaticMembers.ts, 1, 32), Decl(classWithStaticMembers.ts, 2, 32))
>r : Symbol(r, Decl(classWithStaticMembers.ts, 8, 3), Decl(classWithStaticMembers.ts, 16, 3))
>x : Symbol(C.x, Decl(classWithStaticMembers.ts, 1, 32), Decl(classWithStaticMembers.ts, 2, 32))
var r3 = r.foo;
>r3 : Symbol(r3, Decl(classWithStaticMembers.ts, 10, 3), Decl(classWithStaticMembers.ts, 18, 3))
>r.foo : Symbol(C.foo, Decl(classWithStaticMembers.ts, 4, 56))
>r : Symbol(r, Decl(classWithStaticMembers.ts, 8, 3), Decl(classWithStaticMembers.ts, 16, 3))
>foo : Symbol(C.foo, Decl(classWithStaticMembers.ts, 4, 56))
|