65 lines
2.4 KiB
JSON
65 lines
2.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":31,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":31},"identifierName":"singleElementWithArray"},
|
|
"name": "singleElementWithArray"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":32,"end":43,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":43}},
|
|
"argument": {
|
|
"type": "ObjectPattern",
|
|
"start":35,"end":43,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":43}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":36,"end":42,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":42}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":36,"end":37,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":37},"identifierName":"p"},
|
|
"name": "p"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "ArrayPattern",
|
|
"start":39,"end":42,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":42}},
|
|
"elements": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":40,"end":41,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":41},"identifierName":"a"},
|
|
"name": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":45,"end":47,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":47}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |