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

57 lines
2.1 KiB
JSON

{
"type": "File",
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},
"program": {
"type": "Program",
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":24,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":24}},
"id": {
"type": "Identifier",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":7},"identifierName":"obj"},
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"start":10,"end":24,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":24}},
"properties": [
{
"type": "ObjectMethod",
"start":12,"end":22,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":22}},
"method": true,
"key": {
"type": "Identifier",
"start":12,"end":17,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":17},"identifierName":"async"},
"name": "async"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":20,"end":22,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":22}},
"body": [],
"directives": []
}
}
]
}
}
],
"kind": "var"
}
],
"directives": []
}
}