mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
95 lines
3.8 KiB
JSON
95 lines
3.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":2,"index":51}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":50}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4},"identifierName":"test"},
|
|
"name": "test"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "FunctionExpression",
|
|
"start":5,"end":41,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":4,"column":1,"index":41}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":16,"end":41,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":4,"column":1,"index":41}},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":20,"end":30,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":12,"index":30}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":24,"end":29,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":11,"index":29}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":24,"end":25,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":7,"index":25},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start":28,"end":29,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":11,"index":29}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
],
|
|
"kind": "var",
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " one",
|
|
"start":33,"end":39,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":8,"index":39}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " two",
|
|
"start":42,"end":48,"loc":{"start":{"line":5,"column":0,"index":42},"end":{"line":5,"column":6,"index":48}}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " one",
|
|
"start":33,"end":39,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":8,"index":39}}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " two",
|
|
"start":42,"end":48,"loc":{"start":{"line":5,"column":0,"index":42},"end":{"line":5,"column":6,"index":48}}
|
|
}
|
|
]
|
|
}
|