-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
output.json
120 lines (120 loc) 路 5.56 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
{
"type": "File",
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":68,"index":68}},
"program": {
"type": "Program",
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":68,"index":68}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExportDefaultDeclaration",
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":68,"index":68}},
"declaration": {
"type": "FunctionDeclaration",
"start":15,"end":68,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":68,"index":68}},
"id": {
"type": "Identifier",
"start":24,"end":28,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":28,"index":28},"identifierName":"func"},
"name": "func"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":36,"end":37,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":37,"index":37},"identifierName":"x"},
"name": "x",
"decorators": [
{
"type": "Decorator",
"start":29,"end":35,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":35,"index":35}},
"expression": {
"type": "CallExpression",
"start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35}},
"callee": {
"type": "Identifier",
"start":30,"end":33,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":33,"index":33},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
}
]
},
{
"type": "Identifier",
"start":63,"end":64,"loc":{"start":{"line":1,"column":63,"index":63},"end":{"line":1,"column":64,"index":64},"identifierName":"y"},
"name": "y",
"decorators": [
{
"type": "Decorator",
"start":39,"end":55,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":55,"index":55}},
"expression": {
"type": "CallExpression",
"start":40,"end":55,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":55,"index":55}},
"callee": {
"type": "Identifier",
"start":40,"end":43,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":43,"index":43},"identifierName":"bar"},
"name": "bar"
},
"arguments": [
{
"type": "ObjectExpression",
"start":44,"end":54,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":54,"index":54}},
"properties": [
{
"type": "ObjectProperty",
"start":46,"end":52,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":52,"index":52}},
"method": false,
"key": {
"type": "Identifier",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":47,"index":47},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":49,"end":52,"loc":{"start":{"line":1,"column":49,"index":49},"end":{"line":1,"column":52,"index":52}},
"extra": {
"rawValue": 123,
"raw": "123"
},
"value": 123
}
}
]
}
]
}
},
{
"type": "Decorator",
"start":56,"end":62,"loc":{"start":{"line":1,"column":56,"index":56},"end":{"line":1,"column":62,"index":62}},
"expression": {
"type": "CallExpression",
"start":57,"end":62,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":62,"index":62}},
"callee": {
"type": "Identifier",
"start":57,"end":60,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":60,"index":60},"identifierName":"baz"},
"name": "baz"
},
"arguments": []
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":66,"end":68,"loc":{"start":{"line":1,"column":66,"index":66},"end":{"line":1,"column":68,"index":68}},
"body": [],
"directives": []
}
}
}
],
"directives": []
}
}