File: typeofClass2.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (55 lines) | stat: -rw-r--r-- 1,747 bytes parent folder | download | duplicates (7)
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
=== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts ===
class C {
>C : Symbol(C, Decl(typeofClass2.ts, 0, 0))

    constructor(x: number);
>x : Symbol(x, Decl(typeofClass2.ts, 1, 16))

    constructor(x: string);
>x : Symbol(x, Decl(typeofClass2.ts, 2, 16))

    constructor(x) { }
>x : Symbol(x, Decl(typeofClass2.ts, 3, 16))

    static foo(x: number);
>foo : Symbol(C.foo, Decl(typeofClass2.ts, 3, 22), Decl(typeofClass2.ts, 5, 26), Decl(typeofClass2.ts, 6, 21))
>x : Symbol(x, Decl(typeofClass2.ts, 5, 15))

    static foo(x: C);
>foo : Symbol(C.foo, Decl(typeofClass2.ts, 3, 22), Decl(typeofClass2.ts, 5, 26), Decl(typeofClass2.ts, 6, 21))
>x : Symbol(x, Decl(typeofClass2.ts, 6, 15))
>C : Symbol(C, Decl(typeofClass2.ts, 0, 0))

    static foo(x) { }
>foo : Symbol(C.foo, Decl(typeofClass2.ts, 3, 22), Decl(typeofClass2.ts, 5, 26), Decl(typeofClass2.ts, 6, 21))
>x : Symbol(x, Decl(typeofClass2.ts, 7, 15))

    static bar(x) { }
>bar : Symbol(C.bar, Decl(typeofClass2.ts, 7, 21))
>x : Symbol(x, Decl(typeofClass2.ts, 9, 15))
}

class D extends C {
>D : Symbol(D, Decl(typeofClass2.ts, 10, 1))
>C : Symbol(C, Decl(typeofClass2.ts, 0, 0))

    static baz(x: number) { }
>baz : Symbol(D.baz, Decl(typeofClass2.ts, 12, 19))
>x : Symbol(x, Decl(typeofClass2.ts, 13, 15))

    foo() { }
>foo : Symbol(D.foo, Decl(typeofClass2.ts, 13, 29))
}

var d: D;
>d : Symbol(d, Decl(typeofClass2.ts, 17, 3))
>D : Symbol(D, Decl(typeofClass2.ts, 10, 1))

var r1: typeof D;
>r1 : Symbol(r1, Decl(typeofClass2.ts, 19, 3))
>D : Symbol(D, Decl(typeofClass2.ts, 10, 1))

var r2: typeof d;
>r2 : Symbol(r2, Decl(typeofClass2.ts, 20, 3))
>d : Symbol(d, Decl(typeofClass2.ts, 17, 3))