| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Unexpected trailing comma after rest element. (1:5)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "ExpressionStatement", |
| 15 |
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, |
| 16 |
"expression": { |
| 17 |
"type": "AssignmentExpression", |
| 18 |
"start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}}, |
| 19 |
"operator": "=", |
| 20 |
"left": { |
| 21 |
"type": "ArrayPattern", |
| 22 |
"start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}, |
| 23 |
"extra": { |
| 24 |
"trailingComma": 5 |
| 25 |
}, |
| 26 |
"elements": [ |
| 27 |
{ |
| 28 |
"type": "RestElement", |
| 29 |
"start":1,"end":5,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":5,"index":5}}, |
| 30 |
"argument": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"}, |
| 33 |
"name": "a" |
| 34 |
} |
| 35 |
} |
| 36 |
] |
| 37 |
}, |
| 38 |
"right": { |
| 39 |
"type": "ArrayExpression", |
| 40 |
"start":10,"end":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12}}, |
| 41 |
"elements": [] |
| 42 |
} |
| 43 |
} |
| 44 |
} |
| 45 |
], |
| 46 |
"directives": [] |
| 47 |
} |
| 48 |
} |