mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
49 lines
1.8 KiB
JSON
49 lines
1.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
|
|
"errors": [
|
|
"SyntaxError: Unexpected trailing comma after rest element. (1:5)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "ArrayPattern",
|
|
"start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}},
|
|
"extra": {
|
|
"trailingComma": 5
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":1,"end":5,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":5,"index":5}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
|
|
"name": "a"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"start":10,"end":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12}},
|
|
"elements": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|