59 lines
2.1 KiB
JSON
59 lines
2.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":22,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":22},"identifierName":"singleElement"},
|
|
"name": "singleElement"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":23,"end":32,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":32}},
|
|
"argument": {
|
|
"type": "ObjectPattern",
|
|
"start":26,"end":32,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":32}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":27,"end":31,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":31}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":27,"end":28,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":28},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":30,"end":31,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":31},"identifierName":"b"},
|
|
"name": "b"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":34,"end":36,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":36}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |