File: declFileTypeAnnotationTypeLiteral.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 (85 lines) | stat: -rw-r--r-- 3,092 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
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
77
78
79
80
81
82
83
84
85
=== tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts ===

class c {
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0))
}
class g<T> {
>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1))
>T : Symbol(T, Decl(declFileTypeAnnotationTypeLiteral.ts, 3, 8))
}
module m {
>m : Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 1))

    export class c {
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 5, 10))
    }
}

// Object literal with everything
var x: {
>x : Symbol(x, Decl(declFileTypeAnnotationTypeLiteral.ts, 11, 3))

    // Call signatures
    (a: number): c;
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 13, 5))
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0))

    (a: string): g<string>;
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 14, 5))
>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1))

    // Construct signatures
    new (a: number): c;
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 17, 9))
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0))

    new (a: string): m.c;
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 18, 9))
>m : Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 1))
>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeLiteral.ts, 5, 10))

    // Indexers
    [n: number]: c;
>n : Symbol(n, Decl(declFileTypeAnnotationTypeLiteral.ts, 21, 5))
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0))

    [n: string]: c;
>n : Symbol(n, Decl(declFileTypeAnnotationTypeLiteral.ts, 22, 5))
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0))

    // Properties
    a: c;
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 22, 19))
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0))

    b: g<string>;
>b : Symbol(b, Decl(declFileTypeAnnotationTypeLiteral.ts, 25, 9))
>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1))

    // methods
    m1(): g<number>;
>m1 : Symbol(m1, Decl(declFileTypeAnnotationTypeLiteral.ts, 26, 17))
>g : Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1))

    m2(a: string, b?: number, ...c: c[]): string;
>m2 : Symbol(m2, Decl(declFileTypeAnnotationTypeLiteral.ts, 29, 20))
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 30, 7))
>b : Symbol(b, Decl(declFileTypeAnnotationTypeLiteral.ts, 30, 17))
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 30, 29))
>c : Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0))

};


// Function type
var y: (a: string) => string;
>y : Symbol(y, Decl(declFileTypeAnnotationTypeLiteral.ts, 35, 3))
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 35, 8))

// constructor type
var z: new (a: string) => m.c;
>z : Symbol(z, Decl(declFileTypeAnnotationTypeLiteral.ts, 38, 3))
>a : Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 38, 12))
>m : Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 1))
>c : Symbol(m.c, Decl(declFileTypeAnnotationTypeLiteral.ts, 5, 10))