65 lines
2.5 KiB
JSON
65 lines
2.5 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": "FunctionDeclaration",
|
|
"start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":32,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":32},"identifierName":"singleElementWithObject"},
|
|
"name": "singleElementWithObject"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":33,"end":44,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":44}},
|
|
"argument": {
|
|
"type": "ArrayPattern",
|
|
"start":36,"end":44,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":44}},
|
|
"elements": [
|
|
{
|
|
"type": "ObjectPattern",
|
|
"start":37,"end":43,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":43}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":38,"end":42,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":42}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39},"identifierName":"p"},
|
|
"name": "p"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"q"},
|
|
"name": "q"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":46,"end":48,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":48}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |