File: nestedLoops.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 (46 lines) | stat: -rw-r--r-- 1,841 bytes parent folder | download | duplicates (2)
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
=== tests/cases/compiler/nestedLoops.ts ===
export class Test  {
>Test : Symbol(Test, Decl(nestedLoops.ts, 0, 0))

    constructor() {

        let outerArray: Array<number> = [1, 2, 3];
>outerArray : Symbol(outerArray, Decl(nestedLoops.ts, 3, 11))
>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))

        let innerArray: Array<number> = [1, 2, 3];
>innerArray : Symbol(innerArray, Decl(nestedLoops.ts, 4, 11))
>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))

        for (let outer of outerArray)
>outer : Symbol(outer, Decl(nestedLoops.ts, 6, 16))
>outerArray : Symbol(outerArray, Decl(nestedLoops.ts, 3, 11))

            for (let inner of innerArray) {
>inner : Symbol(inner, Decl(nestedLoops.ts, 7, 20))
>innerArray : Symbol(innerArray, Decl(nestedLoops.ts, 4, 11))

                this.aFunction((newValue, oldValue) => {
>this.aFunction : Symbol(Test.aFunction, Decl(nestedLoops.ts, 12, 5))
>this : Symbol(Test, Decl(nestedLoops.ts, 0, 0))
>aFunction : Symbol(Test.aFunction, Decl(nestedLoops.ts, 12, 5))
>newValue : Symbol(newValue, Decl(nestedLoops.ts, 8, 32))
>oldValue : Symbol(oldValue, Decl(nestedLoops.ts, 8, 41))

                    let x = outer + inner + newValue;
>x : Symbol(x, Decl(nestedLoops.ts, 9, 23))
>outer : Symbol(outer, Decl(nestedLoops.ts, 6, 16))
>inner : Symbol(inner, Decl(nestedLoops.ts, 7, 20))
>newValue : Symbol(newValue, Decl(nestedLoops.ts, 8, 32))

                });
            }
    }

    public aFunction(func: (newValue: any, oldValue: any) => void): void {
>aFunction : Symbol(Test.aFunction, Decl(nestedLoops.ts, 12, 5))
>func : Symbol(func, Decl(nestedLoops.ts, 14, 21))
>newValue : Symbol(newValue, Decl(nestedLoops.ts, 14, 28))
>oldValue : Symbol(oldValue, Decl(nestedLoops.ts, 14, 42))
    }
}