forked from babel/babel
/
output.json
104 lines (104 loc) 路 4.13 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
{
"type": "File",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":11}},
"program": {
"type": "Program",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":11}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":11}},
"expression": {
"type": "ArrowFunctionExpression",
"start":0,"end":27,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":10}},
"returnType": {
"type": "TSTypeAnnotation",
"start":18,"end":21,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":4}},
"typeAnnotation": {
"type": "TSTypeReference",
"start":20,"end":21,"loc":{"start":{"line":3,"column":3},"end":{"line":3,"column":4}},
"typeName": {
"type": "Identifier",
"start":20,"end":21,"loc":{"start":{"line":3,"column":3},"end":{"line":3,"column":4},"identifierName":"T"},
"name": "T"
}
}
},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "ObjectPattern",
"start":4,"end":15,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":13}},
"properties": [
{
"type": "ObjectProperty",
"start":6,"end":7,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":5}},
"extra": {
"shorthand": true
},
"method":false,
"key": {
"type": "Identifier",
"start":6,"end":7,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":5},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":6,"end":7,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":5},"identifierName":"a"},
"name": "a"
}
},
{
"type": "ObjectProperty",
"start":9,"end":10,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":8}},
"extra": {
"shorthand": true
},
"method": false,
"key": {
"type": "Identifier",
"start":9,"end":10,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":8},"identifierName":"b"},
"name": "b"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":9,"end":10,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":8},"identifierName":"b"},
"name": "b"
}
}
],
"typeAnnotation": {
"type": "TSTypeAnnotation",
"start":12,"end":15,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":13}},
"typeAnnotation": {
"type": "TSTypeReference",
"start":14,"end":15,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":13}},
"typeName": {
"type": "Identifier",
"start":14,"end":15,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":13},"identifierName":"T"},
"name": "T"
}
}
}
}
],
"body": {
"type": "BlockStatement",
"start":25,"end":27,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":10}},
"body": [],
"directives": []
}
}
}
],
"directives": []
}
}