mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
69 lines
2.8 KiB
JSON
69 lines
2.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
|
|
"errors": [
|
|
"SyntaxError: Invalid optional chaining in the left-hand side of object destructuring pattern. (1:9)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":1,"end":20,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":20,"index":20}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "ObjectPattern",
|
|
"start":1,"end":15,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":15,"index":15}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":3,"end":13,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":13,"index":13}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":3,"end":7,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":7,"index":7},"identifierName":"prop"},
|
|
"name": "prop"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "OptionalMemberExpression",
|
|
"start":9,"end":13,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":13,"index":13}},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"b"},
|
|
"name": "b"
|
|
},
|
|
"optional": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
|
|
"properties": []
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|