Huáng Jùnliàng dc7c5640e9
Compact parser fixture loc info (#11322)
* chore: compact loc information in parser fixtures

* chore: update test fixtures
2020-03-23 20:10:29 -04:00

63 lines
2.1 KiB
JSON

{
"type": "File",
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"errors": [
"SyntaxError: Argument name clash (2:11)"
],
"program": {
"type": "Program",
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":22,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"expression": {
"type": "ObjectExpression",
"start":1,"end":21,"loc":{"start":{"line":1,"column":1},"end":{"line":3,"column":1}},
"properties": [
{
"type": "ObjectMethod",
"start":7,"end":19,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}},
"method": true,
"key": {
"type": "Identifier",
"start":7,"end":10,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":7},"identifierName":"bar"},
"name": "bar"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":11,"end":12,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":9},"identifierName":"a"},
"name": "a"
},
{
"type": "Identifier",
"start":14,"end":15,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":12},"identifierName":"a"},
"name": "a"
}
],
"body": {
"type": "BlockStatement",
"start":17,"end":19,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":16}},
"body": [],
"directives": []
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
}
}
}
],
"directives": []
}
}