File: declFileTypeAnnotationUnionType.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 (70 lines) | stat: -rw-r--r-- 3,172 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
=== tests/cases/compiler/declFileTypeAnnotationUnionType.ts ===
class c {
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0))

    private p: string;
>p : Symbol(c.p, Decl(declFileTypeAnnotationUnionType.ts, 0, 9))
}
module m {
>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1))

    export class c {
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 3, 10))

        private q: string;
>q : Symbol(c.q, Decl(declFileTypeAnnotationUnionType.ts, 4, 20))
    }
    export class g<T> {
>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5))
>T : Symbol(T, Decl(declFileTypeAnnotationUnionType.ts, 7, 19))

        private r: string;
>r : Symbol(g.r, Decl(declFileTypeAnnotationUnionType.ts, 7, 23))
    }
}
class g<T> {
>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1))
>T : Symbol(T, Decl(declFileTypeAnnotationUnionType.ts, 11, 8))

    private s: string;
>s : Symbol(g.s, Decl(declFileTypeAnnotationUnionType.ts, 11, 12))
}

// Just the name
var k: c | m.c = new c() || new m.c();
>k : Symbol(k, Decl(declFileTypeAnnotationUnionType.ts, 16, 3))
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0))
>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1))
>c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 10))
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0))
>m.c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 10))
>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1))
>c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 10))

var l = new c() || new m.c();
>l : Symbol(l, Decl(declFileTypeAnnotationUnionType.ts, 17, 3))
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0))
>m.c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 10))
>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1))
>c : Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 3, 10))

var x: g<string> | m.g<number> |  (() => c) = new g<string>() ||  new m.g<number>() || (() => new c());
>x : Symbol(x, Decl(declFileTypeAnnotationUnionType.ts, 19, 3))
>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1))
>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1))
>g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5))
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0))
>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1))
>m.g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5))
>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1))
>g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5))
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0))

var y = new g<string>() || new m.g<number>() || (() => new c());
>y : Symbol(y, Decl(declFileTypeAnnotationUnionType.ts, 20, 3))
>g : Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 10, 1))
>m.g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5))
>m : Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 2, 1))
>g : Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 6, 5))
>c : Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0))