-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Expand file tree
/
Copy pathselfInLambdas.symbols
More file actions
88 lines (62 loc) · 2.38 KB
/
Copy pathselfInLambdas.symbols
File metadata and controls
88 lines (62 loc) · 2.38 KB
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
=== tests/cases/compiler/selfInLambdas.ts ===
interface MouseEvent {
>MouseEvent : Symbol(MouseEvent, Decl(selfInLambdas.ts, 0, 0))
x: number;
>x : Symbol(MouseEvent.x, Decl(selfInLambdas.ts, 0, 22))
y: number;
>y : Symbol(MouseEvent.y, Decl(selfInLambdas.ts, 1, 14))
}
declare var window: Window;
>window : Symbol(window, Decl(selfInLambdas.ts, 5, 11))
>Window : Symbol(Window, Decl(selfInLambdas.ts, 5, 27))
interface Window {
>Window : Symbol(Window, Decl(selfInLambdas.ts, 5, 27))
onmousemove: (ev: MouseEvent) => any;
>onmousemove : Symbol(Window.onmousemove, Decl(selfInLambdas.ts, 6, 18))
>ev : Symbol(ev, Decl(selfInLambdas.ts, 7, 18))
>MouseEvent : Symbol(MouseEvent, Decl(selfInLambdas.ts, 0, 0))
}
var o = {
>o : Symbol(o, Decl(selfInLambdas.ts, 10, 3))
counter: 0,
>counter : Symbol(counter, Decl(selfInLambdas.ts, 10, 9))
start: function() {
>start : Symbol(start, Decl(selfInLambdas.ts, 12, 15))
window.onmousemove = () => {
>window.onmousemove : Symbol(Window.onmousemove, Decl(selfInLambdas.ts, 6, 18))
>window : Symbol(window, Decl(selfInLambdas.ts, 5, 11))
>onmousemove : Symbol(Window.onmousemove, Decl(selfInLambdas.ts, 6, 18))
this.counter++
var f = () => this.counter;
>f : Symbol(f, Decl(selfInLambdas.ts, 18, 15))
}
}
}
class X {
>X : Symbol(X, Decl(selfInLambdas.ts, 24, 1))
private value = "value";
>value : Symbol(X.value, Decl(selfInLambdas.ts, 28, 9))
public foo() {
>foo : Symbol(X.foo, Decl(selfInLambdas.ts, 29, 25))
var outer= () => {
>outer : Symbol(outer, Decl(selfInLambdas.ts, 32, 5))
var x = this.value;
>x : Symbol(x, Decl(selfInLambdas.ts, 33, 15))
>this.value : Symbol(X.value, Decl(selfInLambdas.ts, 28, 9))
>this : Symbol(X, Decl(selfInLambdas.ts, 24, 1))
>value : Symbol(X.value, Decl(selfInLambdas.ts, 28, 9))
var inner = () => {
>inner : Symbol(inner, Decl(selfInLambdas.ts, 34, 15))
var y = this.value;
>y : Symbol(y, Decl(selfInLambdas.ts, 35, 19))
>this.value : Symbol(X.value, Decl(selfInLambdas.ts, 28, 9))
>this : Symbol(X, Decl(selfInLambdas.ts, 24, 1))
>value : Symbol(X.value, Decl(selfInLambdas.ts, 28, 9))
}
inner();
>inner : Symbol(inner, Decl(selfInLambdas.ts, 34, 15))
};
outer();
>outer : Symbol(outer, Decl(selfInLambdas.ts, 32, 5))
}
}