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

70 lines
2.6 KiB
JSON

{
"type": "File",
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
"program": {
"type": "Program",
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
"declarations": [
{
"type": "VariableDeclarator",
"start":6,"end":39,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":39}},
"id": {
"type": "ObjectPattern",
"start":6,"end":13,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":13}},
"properties": [
{
"type": "ObjectProperty",
"start":7,"end":12,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":12}},
"method": false,
"key": {
"type": "Identifier",
"start":7,"end":12,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":12},"identifierName":"async"},
"name": "async"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":7,"end":12,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":12},"identifierName":"async"},
"name": "async"
},
"extra": {
"shorthand": true
}
}
]
},
"init": {
"type": "CallExpression",
"start":16,"end":39,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":39}},
"callee": {
"type": "Identifier",
"start":16,"end":23,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":23},"identifierName":"require"},
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"start":24,"end":38,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":38}},
"extra": {
"rawValue": "../lang/task",
"raw": "'../lang/task'"
},
"value": "../lang/task"
}
]
}
}
],
"kind": "const"
}
],
"directives": []
}
}