-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
output.json
142 lines (142 loc) 路 7.19 KB
/
output.json
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
{
"type": "File",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":63}},
"program": {
"type": "Program",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":63}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":63}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":62,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":3,"column":1,"index":62}},
"id": {
"type": "Identifier",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"obj"},
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"start":10,"end":62,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":62}},
"properties": [
{
"type": "ObjectMethod",
"start":14,"end":60,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":48,"index":60}},
"method": true,
"key": {
"type": "Identifier",
"start":14,"end":20,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":8,"index":20},"identifierName":"method"},
"name": "method"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":28,"end":29,"loc":{"start":{"line":2,"column":16,"index":28},"end":{"line":2,"column":17,"index":29},"identifierName":"x"},
"name": "x",
"decorators": [
{
"type": "Decorator",
"start":21,"end":27,"loc":{"start":{"line":2,"column":9,"index":21},"end":{"line":2,"column":15,"index":27}},
"expression": {
"type": "CallExpression",
"start":22,"end":27,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":15,"index":27}},
"callee": {
"type": "Identifier",
"start":22,"end":25,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":13,"index":25},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
}
]
},
{
"type": "Identifier",
"start":55,"end":56,"loc":{"start":{"line":2,"column":43,"index":55},"end":{"line":2,"column":44,"index":56},"identifierName":"y"},
"name": "y",
"decorators": [
{
"type": "Decorator",
"start":31,"end":47,"loc":{"start":{"line":2,"column":19,"index":31},"end":{"line":2,"column":35,"index":47}},
"expression": {
"type": "CallExpression",
"start":32,"end":47,"loc":{"start":{"line":2,"column":20,"index":32},"end":{"line":2,"column":35,"index":47}},
"callee": {
"type": "Identifier",
"start":32,"end":35,"loc":{"start":{"line":2,"column":20,"index":32},"end":{"line":2,"column":23,"index":35},"identifierName":"bar"},
"name": "bar"
},
"arguments": [
{
"type": "ObjectExpression",
"start":36,"end":46,"loc":{"start":{"line":2,"column":24,"index":36},"end":{"line":2,"column":34,"index":46}},
"properties": [
{
"type": "ObjectProperty",
"start":38,"end":44,"loc":{"start":{"line":2,"column":26,"index":38},"end":{"line":2,"column":32,"index":44}},
"method": false,
"key": {
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":2,"column":26,"index":38},"end":{"line":2,"column":27,"index":39},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":41,"end":44,"loc":{"start":{"line":2,"column":29,"index":41},"end":{"line":2,"column":32,"index":44}},
"extra": {
"rawValue": 123,
"raw": "123"
},
"value": 123
}
}
]
}
]
}
},
{
"type": "Decorator",
"start":48,"end":54,"loc":{"start":{"line":2,"column":36,"index":48},"end":{"line":2,"column":42,"index":54}},
"expression": {
"type": "CallExpression",
"start":49,"end":54,"loc":{"start":{"line":2,"column":37,"index":49},"end":{"line":2,"column":42,"index":54}},
"callee": {
"type": "Identifier",
"start":49,"end":52,"loc":{"start":{"line":2,"column":37,"index":49},"end":{"line":2,"column":40,"index":52},"identifierName":"baz"},
"name": "baz"
},
"arguments": []
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":58,"end":60,"loc":{"start":{"line":2,"column":46,"index":58},"end":{"line":2,"column":48,"index":60}},
"body": [],
"directives": []
}
}
]
}
}
],
"kind": "var"
}
],
"directives": []
}
}