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

61 lines
2.3 KiB
JSON

{
"type": "File",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"program": {
"type": "Program",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":27,"loc":{"start":{"line":1,"column":4},"end":{"line":3,"column":1}},
"id": {
"type": "Identifier",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":7},"identifierName":"foo"},
"name": "foo"
},
"init": {
"type": "ObjectExpression",
"start":10,"end":27,"loc":{"start":{"line":1,"column":10},"end":{"line":3,"column":1}},
"properties": [
{
"type": "ObjectProperty",
"start":14,"end":25,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":13}},
"method": false,
"computed": true,
"key": {
"type": "CallExpression",
"start":15,"end":20,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":8}},
"callee": {
"type": "Identifier",
"start":15,"end":18,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":6},"identifierName":"bar"},
"name": "bar"
},
"arguments": []
},
"shorthand": false,
"value": {
"type": "StringLiteral",
"start":23,"end":25,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":13}},
"extra": {
"rawValue": "",
"raw": "\"\""
},
"value": ""
}
}
]
}
}
],
"kind": "var"
}
],
"directives": []
}
}