File: staticMethodReferencingTypeArgument1.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 (50 lines) | stat: -rw-r--r-- 2,524 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
47
48
49
50
=== tests/cases/compiler/staticMethodReferencingTypeArgument1.ts ===
module Editor {
>Editor : Symbol(Editor, Decl(staticMethodReferencingTypeArgument1.ts, 0, 0))

    export class List<T> {
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))

        next: List<T>;
>next : Symbol(List.next, Decl(staticMethodReferencingTypeArgument1.ts, 1, 26))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))

        prev: List<T>;
>prev : Symbol(List.prev, Decl(staticMethodReferencingTypeArgument1.ts, 2, 22))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))

        constructor(public isHead: boolean, public data: T) {
>isHead : Symbol(List.isHead, Decl(staticMethodReferencingTypeArgument1.ts, 5, 20))
>data : Symbol(List.data, Decl(staticMethodReferencingTypeArgument1.ts, 5, 43))
>T : Symbol(T, Decl(staticMethodReferencingTypeArgument1.ts, 1, 22))
        }

        static MakeHead(): List<T> {
>MakeHead : Symbol(List.MakeHead, Decl(staticMethodReferencingTypeArgument1.ts, 6, 9))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))

            var entry: List<T> = new List<T>(true, null); // can't access T here
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))
>List : Symbol(List, Decl(staticMethodReferencingTypeArgument1.ts, 0, 15))

            entry.prev = entry;
>entry.prev : Symbol(List.prev, Decl(staticMethodReferencingTypeArgument1.ts, 2, 22))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
>prev : Symbol(List.prev, Decl(staticMethodReferencingTypeArgument1.ts, 2, 22))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))

            entry.next = entry;
>entry.next : Symbol(List.next, Decl(staticMethodReferencingTypeArgument1.ts, 1, 26))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
>next : Symbol(List.next, Decl(staticMethodReferencingTypeArgument1.ts, 1, 26))
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))

            return entry;
>entry : Symbol(entry, Decl(staticMethodReferencingTypeArgument1.ts, 9, 15))
        }
    }
}