mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
103 lines
4.0 KiB
JSON
103 lines
4.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":76}},
|
|
"errors": [
|
|
"SyntaxError: Binding invalid left-hand side in function parameter list. (2:5)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":76}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":47,"end":76,"loc":{"start":{"line":2,"column":0,"index":47},"end":{"line":2,"column":29,"index":76}},
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"start":47,"end":75,"loc":{"start":{"line":2,"column":0,"index":47},"end":{"line":2,"column":28,"index":75}},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"start":47,"end":48,"loc":{"start":{"line":2,"column":0,"index":47},"end":{"line":2,"column":1,"index":48},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"consequent": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":51,"end":66,"loc":{"start":{"line":2,"column":4,"index":51},"end":{"line":2,"column":19,"index":66}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start":52,"end":58,"loc":{"start":{"line":2,"column":5,"index":52},"end":{"line":2,"column":11,"index":58}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":52,"end":53,"loc":{"start":{"line":2,"column":5,"index":52},"end":{"line":2,"column":6,"index":53},"identifierName":"b"},
|
|
"name": "b"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"start":57,"end":58,"loc":{"start":{"line":2,"column":10,"index":57},"end":{"line":2,"column":11,"index":58},"identifierName":"c"},
|
|
"name": "c"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"start":64,"end":65,"loc":{"start":{"line":2,"column":17,"index":64},"end":{"line":2,"column":18,"index":65},"identifierName":"e"},
|
|
"name": "e",
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 63
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":69,"end":75,"loc":{"start":{"line":2,"column":22,"index":69},"end":{"line":2,"column":28,"index":75}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":69,"end":70,"loc":{"start":{"line":2,"column":22,"index":69},"end":{"line":2,"column":23,"index":70},"identifierName":"f"},
|
|
"name": "f"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"start":74,"end":75,"loc":{"start":{"line":2,"column":27,"index":74},"end":{"line":2,"column":28,"index":75},"identifierName":"g"},
|
|
"name": "g"
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Invalid LHS parameter after type parameters",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Invalid LHS parameter after type parameters",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}
|
|
}
|
|
]
|
|
}
|