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

60 lines
2.2 KiB
JSON

{
"type": "File",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"errors": [
"SyntaxError: Invalid identifier @@asyncIterator (2:17)"
],
"program": {
"type": "Program",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":34,"loc":{"start":{"line":1,"column":4},"end":{"line":3,"column":1}},
"id": {
"type": "Identifier",
"start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"x"},
"name": "x"
},
"init": {
"type": "ObjectExpression",
"start":8,"end":34,"loc":{"start":{"line":1,"column":8},"end":{"line":3,"column":1}},
"properties": [
{
"type": "ObjectMethod",
"start":12,"end":32,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":22}},
"method": true,
"key": {
"type": "Identifier",
"start":12,"end":27,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":17},"identifierName":"@@asyncIterator"},
"name": "@@asyncIterator"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":30,"end":32,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":22}},
"body": [],
"directives": []
}
}
]
}
}
],
"kind": "let"
}
],
"directives": []
}
}