-
Notifications
You must be signed in to change notification settings - Fork 12.8k
/
Copy pathfatarrowfunctions.symbols
173 lines (143 loc) · 6.87 KB
/
fatarrowfunctions.symbols
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
=== tests/cases/compiler/fatarrowfunctions.ts ===
function foo(x:any) {
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 1, 13))
return x();
>x : Symbol(x, Decl(fatarrowfunctions.ts, 1, 13))
}
foo((x:number,y,z)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 6, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 6, 14))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 6, 16))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 6, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 6, 14))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 6, 16))
foo((x,y,z)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 7, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 7, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 7, 9))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 7, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 7, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 7, 9))
foo((x,y:number,z)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 8, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 8, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 8, 16))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 8, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 8, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 8, 16))
foo((x,y:number,z:number)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 9, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 9, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 9, 16))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 9, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 9, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 9, 16))
foo((x,y,z:number)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 10, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 10, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 10, 9))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 10, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 10, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 10, 9))
foo(()=>{return 0;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
foo((x:number,y,z)=>x+y+z);
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 13, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 13, 14))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 13, 16))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 13, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 13, 14))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 13, 16))
foo((x,y,z)=>x+y+z);
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 14, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 14, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 14, 9))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 14, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 14, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 14, 9))
foo((x,y:number,z)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 15, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 15, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 15, 16))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 15, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 15, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 15, 16))
foo((x,y:number,z:number)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 16, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 16, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 16, 16))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 16, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 16, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 16, 16))
foo((x,y,z:number)=>{return x+y+z;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 17, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 17, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 17, 9))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 17, 5))
>y : Symbol(y, Decl(fatarrowfunctions.ts, 17, 7))
>z : Symbol(z, Decl(fatarrowfunctions.ts, 17, 9))
foo(()=>{return 0;});
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
foo(((x) => x));
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 21, 6))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 21, 6))
foo(x => x*x);
>foo : Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 23, 4))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 23, 4))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 23, 4))
var y = x => x*x;
>y : Symbol(y, Decl(fatarrowfunctions.ts, 25, 3))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 25, 7))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 25, 7))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 25, 7))
var z = (x:number) => x*x;
>z : Symbol(z, Decl(fatarrowfunctions.ts, 26, 3))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 26, 9))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 26, 9))
>x : Symbol(x, Decl(fatarrowfunctions.ts, 26, 9))
var w = () => 3;
>w : Symbol(w, Decl(fatarrowfunctions.ts, 28, 3))
function ternaryTest(isWhile:boolean) {
>ternaryTest : Symbol(ternaryTest, Decl(fatarrowfunctions.ts, 28, 16))
>isWhile : Symbol(isWhile, Decl(fatarrowfunctions.ts, 30, 21))
var f = isWhile ? function (n) { return n > 0; } : function (n) { return n === 0; };
>f : Symbol(f, Decl(fatarrowfunctions.ts, 32, 19))
>isWhile : Symbol(isWhile, Decl(fatarrowfunctions.ts, 30, 21))
>n : Symbol(n, Decl(fatarrowfunctions.ts, 32, 44))
>n : Symbol(n, Decl(fatarrowfunctions.ts, 32, 44))
>n : Symbol(n, Decl(fatarrowfunctions.ts, 32, 77))
>n : Symbol(n, Decl(fatarrowfunctions.ts, 32, 77))
}
declare function setTimeout(expression: any, msec?: number, language?: any): number;
>setTimeout : Symbol(setTimeout, Decl(fatarrowfunctions.ts, 34, 1))
>expression : Symbol(expression, Decl(fatarrowfunctions.ts, 36, 28))
>msec : Symbol(msec, Decl(fatarrowfunctions.ts, 36, 44))
>language : Symbol(language, Decl(fatarrowfunctions.ts, 36, 59))
var messenger = {
>messenger : Symbol(messenger, Decl(fatarrowfunctions.ts, 38, 3))
message: "Hello World",
>message : Symbol(message, Decl(fatarrowfunctions.ts, 38, 17))
start: function() {
>start : Symbol(start, Decl(fatarrowfunctions.ts, 39, 27))
setTimeout(() => { this.message.toString(); }, 3000);
>setTimeout : Symbol(setTimeout, Decl(fatarrowfunctions.ts, 34, 1))
>this.message.toString : Symbol(String.toString, Decl(lib.d.ts, --, --))
>this.message : Symbol(message, Decl(fatarrowfunctions.ts, 38, 17))
>this : Symbol(messenger, Decl(fatarrowfunctions.ts, 38, 15))
>message : Symbol(message, Decl(fatarrowfunctions.ts, 38, 17))
>toString : Symbol(String.toString, Decl(lib.d.ts, --, --))
}
};