mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
61 lines
2.1 KiB
JSON
61 lines
2.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
|
|
"expression": {
|
|
"type": "OptionalCallExpression",
|
|
"start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"optional": true,
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"x"},
|
|
"name": "x",
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " 1 ",
|
|
"start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16}}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " 2 ",
|
|
"start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " 1 ",
|
|
"start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16}}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " 2 ",
|
|
"start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}}
|
|
}
|
|
]
|
|
}
|