File: classPropertyAsProtected.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (76 lines) | stat: -rw-r--r-- 3,228 bytes parent folder | download | duplicates (5)
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
=== tests/cases/conformance/classes/members/accessibility/classPropertyAsProtected.ts ===
class C {
>C : Symbol(C, Decl(classPropertyAsProtected.ts, 0, 0))

    protected x: string;
>x : Symbol(C.x, Decl(classPropertyAsProtected.ts, 0, 9))

    protected get y() { return null; }
>y : Symbol(C.y, Decl(classPropertyAsProtected.ts, 1, 24), Decl(classPropertyAsProtected.ts, 2, 38))

    protected set y(x) { }
>y : Symbol(C.y, Decl(classPropertyAsProtected.ts, 1, 24), Decl(classPropertyAsProtected.ts, 2, 38))
>x : Symbol(x, Decl(classPropertyAsProtected.ts, 3, 20))

    protected foo() { }
>foo : Symbol(C.foo, Decl(classPropertyAsProtected.ts, 3, 26))

    protected static a: string;
>a : Symbol(C.a, Decl(classPropertyAsProtected.ts, 4, 23))

    protected static get b() { return null; }
>b : Symbol(C.b, Decl(classPropertyAsProtected.ts, 6, 31), Decl(classPropertyAsProtected.ts, 7, 45))

    protected static set b(x) { }
>b : Symbol(C.b, Decl(classPropertyAsProtected.ts, 6, 31), Decl(classPropertyAsProtected.ts, 7, 45))
>x : Symbol(x, Decl(classPropertyAsProtected.ts, 8, 27))

    protected static foo() { }
>foo : Symbol(C.foo, Decl(classPropertyAsProtected.ts, 8, 33))
}

var c: C;
>c : Symbol(c, Decl(classPropertyAsProtected.ts, 12, 3))
>C : Symbol(C, Decl(classPropertyAsProtected.ts, 0, 0))

// all errors
c.x;
>c.x : Symbol(C.x, Decl(classPropertyAsProtected.ts, 0, 9))
>c : Symbol(c, Decl(classPropertyAsProtected.ts, 12, 3))
>x : Symbol(C.x, Decl(classPropertyAsProtected.ts, 0, 9))

c.y;
>c.y : Symbol(C.y, Decl(classPropertyAsProtected.ts, 1, 24), Decl(classPropertyAsProtected.ts, 2, 38))
>c : Symbol(c, Decl(classPropertyAsProtected.ts, 12, 3))
>y : Symbol(C.y, Decl(classPropertyAsProtected.ts, 1, 24), Decl(classPropertyAsProtected.ts, 2, 38))

c.y = 1;
>c.y : Symbol(C.y, Decl(classPropertyAsProtected.ts, 1, 24), Decl(classPropertyAsProtected.ts, 2, 38))
>c : Symbol(c, Decl(classPropertyAsProtected.ts, 12, 3))
>y : Symbol(C.y, Decl(classPropertyAsProtected.ts, 1, 24), Decl(classPropertyAsProtected.ts, 2, 38))

c.foo();
>c.foo : Symbol(C.foo, Decl(classPropertyAsProtected.ts, 3, 26))
>c : Symbol(c, Decl(classPropertyAsProtected.ts, 12, 3))
>foo : Symbol(C.foo, Decl(classPropertyAsProtected.ts, 3, 26))

C.a;
>C.a : Symbol(C.a, Decl(classPropertyAsProtected.ts, 4, 23))
>C : Symbol(C, Decl(classPropertyAsProtected.ts, 0, 0))
>a : Symbol(C.a, Decl(classPropertyAsProtected.ts, 4, 23))

C.b();
>C.b : Symbol(C.b, Decl(classPropertyAsProtected.ts, 6, 31), Decl(classPropertyAsProtected.ts, 7, 45))
>C : Symbol(C, Decl(classPropertyAsProtected.ts, 0, 0))
>b : Symbol(C.b, Decl(classPropertyAsProtected.ts, 6, 31), Decl(classPropertyAsProtected.ts, 7, 45))

C.b = 1;
>C.b : Symbol(C.b, Decl(classPropertyAsProtected.ts, 6, 31), Decl(classPropertyAsProtected.ts, 7, 45))
>C : Symbol(C, Decl(classPropertyAsProtected.ts, 0, 0))
>b : Symbol(C.b, Decl(classPropertyAsProtected.ts, 6, 31), Decl(classPropertyAsProtected.ts, 7, 45))

C.foo();
>C.foo : Symbol(C.foo, Decl(classPropertyAsProtected.ts, 8, 33))
>C : Symbol(C, Decl(classPropertyAsProtected.ts, 0, 0))
>foo : Symbol(C.foo, Decl(classPropertyAsProtected.ts, 8, 33))