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

90 lines
3.7 KiB
JSON

{
"type": "File",
"start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}},
"program": {
"type": "Program",
"start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":24,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":24}},
"id": {
"type": "ArrayPattern",
"start":4,"end":20,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":20}},
"elements": [
{
"type": "ObjectPattern",
"start":5,"end":13,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":13}},
"properties": [
{
"type": "ObjectProperty",
"start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8}},
"method": false,
"key": {
"type": "Identifier",
"start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8},"identifierName":"a"},
"name": "a"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11}},
"method": false,
"key": {
"type": "Identifier",
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"b"},
"name": "b"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"b"},
"name": "b"
},
"extra": {
"shorthand": true
}
}
]
},
{
"type": "RestElement",
"start":15,"end":19,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":19}},
"argument": {
"type": "Identifier",
"start":18,"end":19,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":19},"identifierName":"c"},
"name": "c"
}
}
]
},
"init": {
"type": "Identifier",
"start":23,"end":24,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":24},"identifierName":"d"},
"name": "d"
}
}
],
"kind": "var"
}
],
"directives": []
}
}