-
Notifications
You must be signed in to change notification settings - Fork 12.8k
/
Copy paththisInObjectJs.symbols
51 lines (37 loc) · 1.07 KB
/
thisInObjectJs.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
//// [tests/cases/compiler/thisInObjectJs.ts] ////
=== index.js ===
export { }
let obj = {
>obj : Symbol(obj, Decl(index.js, 1, 3))
x: 10,
>x : Symbol(x, Decl(index.js, 1, 11))
y: [1],
>y : Symbol(y, Decl(index.js, 2, 8))
fun: function() {
>fun : Symbol(fun, Decl(index.js, 3, 9))
this.x = 1
>this.x : Symbol(x, Decl(index.js, 1, 11))
>this : Symbol(obj, Decl(index.js, 1, 9))
>x : Symbol(fun.x, Decl(index.js, 4, 19))
this/*1*/
>this : Symbol(obj, Decl(index.js, 1, 9))
},
f2: function() {
>f2 : Symbol(f2, Decl(index.js, 7, 4))
this.x
>this.x : Symbol(x, Decl(index.js, 1, 11))
>this : Symbol(obj, Decl(index.js, 1, 9))
>x : Symbol(x, Decl(index.js, 1, 11))
this/*2*/
>this : Symbol(obj, Decl(index.js, 1, 9))
},
f3: (function() {
>f3 : Symbol(f3, Decl(index.js, 11, 4))
this.x = 1
>this.x : Symbol(x, Decl(index.js, 1, 11))
>this : Symbol(obj, Decl(index.js, 1, 9))
>x : Symbol((Anonymous function).x, Decl(index.js, 12, 19))
this/*3*/
>this : Symbol(obj, Decl(index.js, 1, 9))
}),
}