| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":39}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":39}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "FunctionDeclaration", |
| 12 |
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":39}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14},"identifierName":"test"}, |
| 16 |
"name": "test" |
| 17 |
}, |
| 18 |
"generator": true, |
| 19 |
"async": false, |
| 20 |
"params": [], |
| 21 |
"body": { |
| 22 |
"type": "BlockStatement", |
| 23 |
"start":17,"end":39,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":3,"column":1,"index":39}}, |
| 24 |
"body": [ |
| 25 |
{ |
| 26 |
"type": "ExpressionStatement", |
| 27 |
"start":21,"end":37,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":18,"index":37}}, |
| 28 |
"expression": { |
| 29 |
"type": "YieldExpression", |
| 30 |
"start":21,"end":36,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":17,"index":36}}, |
| 31 |
"delegate": false, |
| 32 |
"argument": { |
| 33 |
"type": "NewExpression", |
| 34 |
"start":27,"end":36,"loc":{"start":{"line":2,"column":8,"index":27},"end":{"line":2,"column":17,"index":36}}, |
| 35 |
"callee": { |
| 36 |
"type": "Identifier", |
| 37 |
"start":31,"end":34,"loc":{"start":{"line":2,"column":12,"index":31},"end":{"line":2,"column":15,"index":34},"identifierName":"Foo"}, |
| 38 |
"name": "Foo" |
| 39 |
}, |
| 40 |
"arguments": [] |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
], |
| 45 |
"directives": [] |
| 46 |
} |
| 47 |
} |
| 48 |
], |
| 49 |
"directives": [] |
| 50 |
} |
| 51 |
} |