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

54 lines
2.0 KiB
JSON

{
"type": "File",
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
"program": {
"type": "Program",
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
"expression": {
"type": "CallExpression",
"start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":14}},
"callee": {
"type": "Identifier",
"start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3},"identifierName":"foo"},
"name": "foo"
},
"arguments": [
{
"type": "ObjectExpression",
"start":4,"end":13,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":13}},
"properties": [
{
"type": "ObjectProperty",
"start":6,"end":11,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":11}},
"method": false,
"key": {
"type": "Identifier",
"start":6,"end":11,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":11},"identifierName":"async"},
"name": "async"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":6,"end":11,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":11},"identifierName":"async"},
"name": "async"
},
"extra": {
"shorthand": true
}
}
]
}
]
}
}
],
"directives": []
}
}