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

84 lines
3.0 KiB
JSON

{
"type": "File",
"start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},
"program": {
"type": "Program",
"start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},
"expression": {
"type": "ObjectExpression",
"start":1,"end":47,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":47}},
"properties": [
{
"type": "ObjectMethod",
"start":3,"end":31,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":31}},
"method": false,
"key": {
"type": "Identifier",
"start":7,"end":16,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":16},"identifierName":"__proto__"},
"name": "__proto__"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}},
"body": [
{
"type": "ReturnStatement",
"start":21,"end":29,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":29}},
"argument": {
"type": "NumericLiteral",
"start":28,"end":29,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":29}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
],
"directives": []
}
},
{
"type": "ObjectProperty",
"start":33,"end":45,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":45}},
"method": false,
"key": {
"type": "Identifier",
"start":33,"end":42,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":42},"identifierName":"__proto__"},
"name": "__proto__"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45}},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
}
}
}
],
"directives": []
}
}