72 lines
2.9 KiB
JSON
72 lines
2.9 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":33,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":33}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"start":8,"end":33,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":33}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectMethod",
|
|
"start":10,"end":31,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":31}},
|
|
"method": true,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":11,"end":15,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":15},"identifierName":"test"},
|
|
"name": "test"
|
|
},
|
|
"computed": false,
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":21,"end":29,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":29}},
|
|
"expression": {
|
|
"type": "YieldExpression",
|
|
"start":21,"end":29,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":29}},
|
|
"delegate": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":28,"end":29,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":29},"identifierName":"v"},
|
|
"name": "v"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |