File: classWithPublicProperty.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (82 lines) | stat: -rw-r--r-- 3,095 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
=== tests/cases/conformance/types/members/classWithPublicProperty.ts ===
class C {
>C : Symbol(C, Decl(classWithPublicProperty.ts, 0, 0))

    public x;
>x : Symbol(C.x, Decl(classWithPublicProperty.ts, 0, 9))

    public a = '';
>a : Symbol(C.a, Decl(classWithPublicProperty.ts, 1, 13))

    public b: string = '';
>b : Symbol(C.b, Decl(classWithPublicProperty.ts, 2, 18))

    public c() { return '' }
>c : Symbol(C.c, Decl(classWithPublicProperty.ts, 3, 26))

    public d = () => '';
>d : Symbol(C.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))