-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
output.json
136 lines (136 loc) 路 6.52 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
{
"type": "File",
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}},
"program": {
"type": "Program",
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}},
"id": {
"type": "Identifier",
"start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
"name": "Foo"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":10,"end":67,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":67}},
"body": [
{
"type": "ClassMethod",
"start":14,"end":65,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":53,"index":65}},
"static": false,
"key": {
"type": "Identifier",
"start":14,"end":25,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":13,"index":25},"identifierName":"constructor"},
"name": "constructor"
},
"computed": false,
"kind": "constructor",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":33,"end":34,"loc":{"start":{"line":2,"column":21,"index":33},"end":{"line":2,"column":22,"index":34},"identifierName":"x"},
"name": "x",
"decorators": [
{
"type": "Decorator",
"start":26,"end":32,"loc":{"start":{"line":2,"column":14,"index":26},"end":{"line":2,"column":20,"index":32}},
"expression": {
"type": "CallExpression",
"start":27,"end":32,"loc":{"start":{"line":2,"column":15,"index":27},"end":{"line":2,"column":20,"index":32}},
"callee": {
"type": "Identifier",
"start":27,"end":30,"loc":{"start":{"line":2,"column":15,"index":27},"end":{"line":2,"column":18,"index":30},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
}
]
},
{
"type": "Identifier",
"start":60,"end":61,"loc":{"start":{"line":2,"column":48,"index":60},"end":{"line":2,"column":49,"index":61},"identifierName":"y"},
"name": "y",
"decorators": [
{
"type": "Decorator",
"start":36,"end":52,"loc":{"start":{"line":2,"column":24,"index":36},"end":{"line":2,"column":40,"index":52}},
"expression": {
"type": "CallExpression",
"start":37,"end":52,"loc":{"start":{"line":2,"column":25,"index":37},"end":{"line":2,"column":40,"index":52}},
"callee": {
"type": "Identifier",
"start":37,"end":40,"loc":{"start":{"line":2,"column":25,"index":37},"end":{"line":2,"column":28,"index":40},"identifierName":"bar"},
"name": "bar"
},
"arguments": [
{
"type": "ObjectExpression",
"start":41,"end":51,"loc":{"start":{"line":2,"column":29,"index":41},"end":{"line":2,"column":39,"index":51}},
"properties": [
{
"type": "ObjectProperty",
"start":43,"end":49,"loc":{"start":{"line":2,"column":31,"index":43},"end":{"line":2,"column":37,"index":49}},
"method": false,
"key": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":2,"column":31,"index":43},"end":{"line":2,"column":32,"index":44},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":46,"end":49,"loc":{"start":{"line":2,"column":34,"index":46},"end":{"line":2,"column":37,"index":49}},
"extra": {
"rawValue": 123,
"raw": "123"
},
"value": 123
}
}
]
}
]
}
},
{
"type": "Decorator",
"start":53,"end":59,"loc":{"start":{"line":2,"column":41,"index":53},"end":{"line":2,"column":47,"index":59}},
"expression": {
"type": "CallExpression",
"start":54,"end":59,"loc":{"start":{"line":2,"column":42,"index":54},"end":{"line":2,"column":47,"index":59}},
"callee": {
"type": "Identifier",
"start":54,"end":57,"loc":{"start":{"line":2,"column":42,"index":54},"end":{"line":2,"column":45,"index":57},"identifierName":"baz"},
"name": "baz"
},
"arguments": []
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":63,"end":65,"loc":{"start":{"line":2,"column":51,"index":63},"end":{"line":2,"column":53,"index":65}},
"body": [],
"directives": []
}
}
]
}
}
],
"directives": []
}
}