File: classExpressionWithStaticProperties3.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 (41 lines) | stat: -rw-r--r-- 1,994 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
=== tests/cases/compiler/classExpressionWithStaticProperties3.ts ===
declare var console: any;
>console : Symbol(console, Decl(classExpressionWithStaticProperties3.ts, 0, 11))

const arr: {y(): number}[] = [];
>arr : Symbol(arr, Decl(classExpressionWithStaticProperties3.ts, 1, 5))
>y : Symbol(y, Decl(classExpressionWithStaticProperties3.ts, 1, 12))

for (let i = 0; i < 3; i++) {
>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8))
>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8))
>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8))

    arr.push(class C {
>arr.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
>arr : Symbol(arr, Decl(classExpressionWithStaticProperties3.ts, 1, 5))
>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --))
>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 3, 13))

        static x = i;
>x : Symbol(C.x, Decl(classExpressionWithStaticProperties3.ts, 3, 22))
>i : Symbol(i, Decl(classExpressionWithStaticProperties3.ts, 2, 8))

        static y = () => C.x * 2;
>y : Symbol(C.y, Decl(classExpressionWithStaticProperties3.ts, 4, 21))
>C.x : Symbol(C.x, Decl(classExpressionWithStaticProperties3.ts, 3, 22))
>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 3, 13))
>x : Symbol(C.x, Decl(classExpressionWithStaticProperties3.ts, 3, 22))

    });
}
arr.forEach(C => console.log(C.y()));
>arr.forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
>arr : Symbol(arr, Decl(classExpressionWithStaticProperties3.ts, 1, 5))
>forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --))
>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 8, 12))
>console : Symbol(console, Decl(classExpressionWithStaticProperties3.ts, 0, 11))
>C.y : Symbol(y, Decl(classExpressionWithStaticProperties3.ts, 1, 12))
>C : Symbol(C, Decl(classExpressionWithStaticProperties3.ts, 8, 12))
>y : Symbol(y, Decl(classExpressionWithStaticProperties3.ts, 1, 12))