File: asyncAwait_es5.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 (118 lines) | stat: -rw-r--r-- 4,820 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
=== tests/cases/conformance/async/es5/asyncAwait_es5.ts ===
type MyPromise<T> = Promise<T>;
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))
>T : Symbol(T, Decl(asyncAwait_es5.ts, 0, 15))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
>T : Symbol(T, Decl(asyncAwait_es5.ts, 0, 15))

declare var MyPromise: typeof Promise;
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

declare var p: Promise<number>;
>p : Symbol(p, Decl(asyncAwait_es5.ts, 2, 11))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

declare var mp: MyPromise<number>;
>mp : Symbol(mp, Decl(asyncAwait_es5.ts, 3, 11))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))

async function f0() { }
>f0 : Symbol(f0, Decl(asyncAwait_es5.ts, 3, 34))

async function f1(): Promise<void> { }
>f1 : Symbol(f1, Decl(asyncAwait_es5.ts, 5, 23))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

async function f3(): MyPromise<void> { }
>f3 : Symbol(f3, Decl(asyncAwait_es5.ts, 6, 38))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))

let f4 = async function() { }
>f4 : Symbol(f4, Decl(asyncAwait_es5.ts, 9, 3))

let f5 = async function(): Promise<void> { }
>f5 : Symbol(f5, Decl(asyncAwait_es5.ts, 10, 3))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

let f6 = async function(): MyPromise<void> { }
>f6 : Symbol(f6, Decl(asyncAwait_es5.ts, 11, 3))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))

let f7 = async () => { };
>f7 : Symbol(f7, Decl(asyncAwait_es5.ts, 13, 3))

let f8 = async (): Promise<void> => { };
>f8 : Symbol(f8, Decl(asyncAwait_es5.ts, 14, 3))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

let f9 = async (): MyPromise<void> => { };
>f9 : Symbol(f9, Decl(asyncAwait_es5.ts, 15, 3))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))

let f10 = async () => p;
>f10 : Symbol(f10, Decl(asyncAwait_es5.ts, 16, 3))
>p : Symbol(p, Decl(asyncAwait_es5.ts, 2, 11))

let f11 = async () => mp;
>f11 : Symbol(f11, Decl(asyncAwait_es5.ts, 17, 3))
>mp : Symbol(mp, Decl(asyncAwait_es5.ts, 3, 11))

let f12 = async (): Promise<number> => mp;
>f12 : Symbol(f12, Decl(asyncAwait_es5.ts, 18, 3))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
>mp : Symbol(mp, Decl(asyncAwait_es5.ts, 3, 11))

let f13 = async (): MyPromise<number> => p;
>f13 : Symbol(f13, Decl(asyncAwait_es5.ts, 19, 3))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))
>p : Symbol(p, Decl(asyncAwait_es5.ts, 2, 11))

let o = {
>o : Symbol(o, Decl(asyncAwait_es5.ts, 21, 3))

	async m1() { },
>m1 : Symbol(m1, Decl(asyncAwait_es5.ts, 21, 9))

	async m2(): Promise<void> { },
>m2 : Symbol(m2, Decl(asyncAwait_es5.ts, 22, 16))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

	async m3(): MyPromise<void> { }
>m3 : Symbol(m3, Decl(asyncAwait_es5.ts, 23, 31))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))

};

class C {
>C : Symbol(C, Decl(asyncAwait_es5.ts, 25, 2))

	async m1() { }
>m1 : Symbol(C.m1, Decl(asyncAwait_es5.ts, 27, 9))

	async m2(): Promise<void> { }
>m2 : Symbol(C.m2, Decl(asyncAwait_es5.ts, 28, 15))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

	async m3(): MyPromise<void> { }
>m3 : Symbol(C.m3, Decl(asyncAwait_es5.ts, 29, 30))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))

	static async m4() { }
>m4 : Symbol(C.m4, Decl(asyncAwait_es5.ts, 30, 32))

	static async m5(): Promise<void> { }
>m5 : Symbol(C.m5, Decl(asyncAwait_es5.ts, 31, 22))
>Promise : Symbol(Promise, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

	static async m6(): MyPromise<void> { }
>m6 : Symbol(C.m6, Decl(asyncAwait_es5.ts, 32, 37))
>MyPromise : Symbol(MyPromise, Decl(asyncAwait_es5.ts, 0, 0), Decl(asyncAwait_es5.ts, 1, 11))
}

module M {
>M : Symbol(M, Decl(asyncAwait_es5.ts, 34, 1))

	export async function f1() { }
>f1 : Symbol(f1, Decl(asyncAwait_es5.ts, 36, 10))
}