Files

86 lines
3.3 KiB
JSON

{
"type": "File",
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":24,"index":67}},
"errors": [
"SyntaxError: Binding invalid left-hand side in function parameter list. (2:11)"
],
"program": {
"type": "Program",
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":24,"index":67}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":43,"end":67,"loc":{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":24,"index":67}},
"expression": {
"type": "ConditionalExpression",
"start":43,"end":66,"loc":{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":23,"index":66}},
"test": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":1,"index":44},"identifierName":"a"},
"name": "a"
},
"consequent": {
"type": "Identifier",
"start":48,"end":49,"loc":{"start":{"line":2,"column":5,"index":48},"end":{"line":2,"column":6,"index":49},"identifierName":"b"},
"name": "b",
"extra": {
"parenthesized": true,
"parenStart": 47
}
},
"alternate": {
"type": "ArrowFunctionExpression",
"start":53,"end":66,"loc":{"start":{"line":2,"column":10,"index":53},"end":{"line":2,"column":23,"index":66}},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "ArrowFunctionExpression",
"start":54,"end":60,"loc":{"start":{"line":2,"column":11,"index":54},"end":{"line":2,"column":17,"index":60}},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":54,"end":55,"loc":{"start":{"line":2,"column":11,"index":54},"end":{"line":2,"column":12,"index":55},"identifierName":"c"},
"name": "c"
}
],
"body": {
"type": "Identifier",
"start":59,"end":60,"loc":{"start":{"line":2,"column":16,"index":59},"end":{"line":2,"column":17,"index":60},"identifierName":"d"},
"name": "d"
}
}
],
"body": {
"type": "Identifier",
"start":65,"end":66,"loc":{"start":{"line":2,"column":22,"index":65},"end":{"line":2,"column":23,"index":66},"identifierName":"e"},
"name": "e"
}
}
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Function which looks like a return type",
"start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": " Function which looks like a return type",
"start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}
}
]
}