mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
98 lines
4.1 KiB
JSON
98 lines
4.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":84,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":84}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":84,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":84}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":9,"end":84,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":4,"column":1,"index":84}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":18,"end":46,"loc":{"start":{"line":2,"column":9,"index":18},"end":{"line":2,"column":37,"index":46},"identifierName":"commentsAttachedToIdentifier"},
|
|
"name": "commentsAttachedToIdentifier"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":49,"end":84,"loc":{"start":{"line":2,"column":40,"index":49},"end":{"line":4,"column":1,"index":84}},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":53,"end":82,"loc":{"start":{"line":3,"column":2,"index":53},"end":{"line":3,"column":31,"index":82}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":57,"end":81,"loc":{"start":{"line":3,"column":6,"index":57},"end":{"line":3,"column":30,"index":81}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":57,"end":58,"loc":{"start":{"line":3,"column":6,"index":57},"end":{"line":3,"column":7,"index":58},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":61,"end":81,"loc":{"start":{"line":3,"column":10,"index":61},"end":{"line":3,"column":30,"index":81}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":62,"end":74,"loc":{"start":{"line":3,"column":11,"index":62},"end":{"line":3,"column":23,"index":74}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":65,"end":69,"loc":{"start":{"line":3,"column":14,"index":65},"end":{"line":3,"column":18,"index":69},"identifierName":"args"},
|
|
"name": "args"
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":69,"end":74,"loc":{"start":{"line":3,"column":18,"index":69},"end":{"line":3,"column":23,"index":74}},
|
|
"typeAnnotation": {
|
|
"type": "AnyTypeAnnotation",
|
|
"start":71,"end":74,"loc":{"start":{"line":3,"column":20,"index":71},"end":{"line":3,"column":23,"index":74}}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":79,"end":81,"loc":{"start":{"line":3,"column":28,"index":79},"end":{"line":3,"column":30,"index":81}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " hi ",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " hi ",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}}
|
|
}
|
|
]
|
|
}
|