forked from babel/babel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
output.json
116 lines (116 loc) · 5.17 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
{
"type": "File",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}},
"program": {
"type": "Program",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}},
"id": {
"type": "Identifier",
"start":9,"end":13,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":13,"index":13},"identifierName":"func"},
"name": "func"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22},"identifierName":"x"},
"name": "x",
"decorators": [
{
"type": "Decorator",
"start":14,"end":20,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":20,"index":20}},
"expression": {
"type": "CallExpression",
"start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}},
"callee": {
"type": "Identifier",
"start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
}
]
},
{
"type": "Identifier",
"start":48,"end":49,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":49,"index":49},"identifierName":"y"},
"name": "y",
"decorators": [
{
"type": "Decorator",
"start":24,"end":40,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":40,"index":40}},
"expression": {
"type": "CallExpression",
"start":25,"end":40,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":40,"index":40}},
"callee": {
"type": "Identifier",
"start":25,"end":28,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":28,"index":28},"identifierName":"bar"},
"name": "bar"
},
"arguments": [
{
"type": "ObjectExpression",
"start":29,"end":39,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":39,"index":39}},
"properties": [
{
"type": "ObjectProperty",
"start":31,"end":37,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":37,"index":37}},
"method": false,
"key": {
"type": "Identifier",
"start":31,"end":32,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":32,"index":32},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":34,"end":37,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":37,"index":37}},
"extra": {
"rawValue": 123,
"raw": "123"
},
"value": 123
}
}
]
}
]
}
},
{
"type": "Decorator",
"start":41,"end":47,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":47,"index":47}},
"expression": {
"type": "CallExpression",
"start":42,"end":47,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":47,"index":47}},
"callee": {
"type": "Identifier",
"start":42,"end":45,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":45,"index":45},"identifierName":"baz"},
"name": "baz"
},
"arguments": []
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":51,"end":53,"loc":{"start":{"line":1,"column":51,"index":51},"end":{"line":1,"column":53,"index":53}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}