forked from babel/babel
/
output.json
85 lines (85 loc) 路 3.23 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
{
"type": "File",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"program": {
"type": "Program",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":35,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":35}},
"id": {
"type": "Identifier",
"start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"f"},
"name": "f"
},
"init": {
"type": "ArrowFunctionExpression",
"start":8,"end":35,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":35}},
"predicate": null,
"returnType": {
"type": "TypeAnnotation",
"start":11,"end":28,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":28}},
"typeAnnotation": {
"type": "FunctionTypeAnnotation",
"start":14,"end":27,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":27}},
"params": [
{
"type": "FunctionTypeParam",
"start":14,"end":23,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":23}},
"name": null,
"optional": false,
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start":14,"end":20,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":20}}
}
}
],
"rest": null,
"this": null,
"returnType": {
"type": "NumberLiteralTypeAnnotation",
"start":24,"end":27,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":27}},
"extra": {
"rawValue": 123,
"raw": "123"
},
"value": 123
},
"typeParameters": null
}
},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"x"},
"name": "x"
}
],
"body": {
"type": "NumericLiteral",
"start":32,"end":35,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":35}},
"extra": {
"rawValue": 123,
"raw": "123"
},
"value": 123
}
}
}
],
"kind": "var"
}
],
"directives": []
}
}