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":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},
"program": {
"type": "Program",
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},
"id": {
"type": "Identifier",
"start":9,"end":29,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":29},"identifierName":"multiElementWithRest"},
"name": "multiElementWithRest"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":30,"end":45,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":45}},
"argument": {
"type": "ArrayPattern",
"start":33,"end":45,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":45}},
"elements": [
{
"type": "Identifier",
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35},"identifierName":"a"},
"name": "a"
},
{
"type": "Identifier",
"start":37,"end":38,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":38},"identifierName":"b"},
"name": "b"
},
{
"type": "RestElement",
"start":40,"end":44,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":44}},
"argument": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44},"identifierName":"c"},
"name": "c"
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":47,"end":49,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":49}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}