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

87 lines
3.2 KiB
JSON

{
"type": "File",
"start":0,"end":66,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":35}},
"program": {
"type": "Program",
"start":0,"end":66,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":35}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},
"declarations": [
{
"type": "VariableDeclarator",
"start":6,"end":29,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":29}},
"id": {
"type": "Identifier",
"start":6,"end":17,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":17},"identifierName":"testVarible"},
"name": "testVarible"
},
"init": {
"type": "StringLiteral",
"start":20,"end":29,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":29}},
"extra": {
"rawValue": "test.js",
"raw": "'test.js'"
},
"value": "test.js"
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start":31,"end":66,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":35}},
"expression": {
"type": "CallExpression",
"start":31,"end":65,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":34}},
"callee": {
"type": "MemberExpression",
"start":31,"end":55,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":24}},
"object": {
"type": "CallExpression",
"start":31,"end":50,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":19}},
"callee": {
"type": "Import",
"start":31,"end":37,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":6}}
},
"arguments": [
{
"type": "Identifier",
"start":38,"end":49,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":18},"identifierName":"testVarible"},
"name": "testVarible"
}
]
},
"property": {
"type": "Identifier",
"start":51,"end":55,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":24},"identifierName":"then"},
"name": "then"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start":56,"end":64,"loc":{"start":{"line":2,"column":25},"end":{"line":2,"column":33}},
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":62,"end":64,"loc":{"start":{"line":2,"column":31},"end":{"line":2,"column":33}},
"body": [],
"directives": []
}
}
]
}
}
],
"directives": []
}
}