mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
82 lines
3.5 KiB
JSON
82 lines
3.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
|
|
"errors": [
|
|
"SyntaxError: Rest element must be last element. (1:10)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":24,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":24,"index":24}},
|
|
"id": {
|
|
"type": "ObjectPattern",
|
|
"start":4,"end":18,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":18,"index":18}},
|
|
"properties": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":6,"end":10,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":10,"index":10}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"y"},
|
|
"name": "y"
|
|
},
|
|
"computed": false,
|
|
"method": false,
|
|
"shorthand": true,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"y"},
|
|
"name": "y"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"z"},
|
|
"name": "z"
|
|
},
|
|
"computed": false,
|
|
"method": false,
|
|
"shorthand": true,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"z"},
|
|
"name": "z"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "Identifier",
|
|
"start":21,"end":24,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":24,"index":24},"identifierName":"obj"},
|
|
"name": "obj"
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|