{ "type": "File", "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}}, "errors": [ "SyntaxError: Invalid parenthesized assignment pattern. (1:22)" ], "program": { "type": "Program", "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "VariableDeclaration", "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}}, "declarations": [ { "type": "VariableDeclarator", "start":4,"end":34,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":34,"index":34}}, "id": { "type": "Identifier", "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"foo"}, "name": "foo" }, "init": { "type": "ArrowFunctionExpression", "start":10,"end":34,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":34,"index":34}}, "id": null, "generator": false, "async": true, "params": [ { "type": "ArrayPattern", "start":17,"end":27,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":27,"index":27}}, "elements": [ { "type": "RestElement", "start":18,"end":26,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":26,"index":26}}, "argument": { "type": "Identifier", "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25},"identifierName":"foo"}, "name": "foo", "extra": { "parenthesized": true, "parenStart": 21 } } } ] } ], "body": { "type": "BlockStatement", "start":32,"end":34,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":34,"index":34}}, "body": [], "directives": [] } } } ], "kind": "var" } ], "directives": [] } }