| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":58,"index":58}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Unexpected reserved word 'yield'. (1:47)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":58,"index":58}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "FunctionDeclaration", |
| 15 |
"start":14,"end":58,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":58,"index":58}}, |
| 16 |
"id": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25},"identifierName":"g"}, |
| 19 |
"name": "g" |
| 20 |
}, |
| 21 |
"generator": true, |
| 22 |
"async": false, |
| 23 |
"params": [], |
| 24 |
"body": { |
| 25 |
"type": "BlockStatement", |
| 26 |
"start":28,"end":58,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":58,"index":58}}, |
| 27 |
"body": [ |
| 28 |
{ |
| 29 |
"type": "VariableDeclaration", |
| 30 |
"start":30,"end":56,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":56,"index":56}}, |
| 31 |
"declarations": [ |
| 32 |
{ |
| 33 |
"type": "VariableDeclarator", |
| 34 |
"start":34,"end":56,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":56,"index":56}}, |
| 35 |
"id": { |
| 36 |
"type": "Identifier", |
| 37 |
"start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35},"identifierName":"z"}, |
| 38 |
"name": "z" |
| 39 |
}, |
| 40 |
"init": { |
| 41 |
"type": "FunctionExpression", |
| 42 |
"start":38,"end":56,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":1,"column":56,"index":56}}, |
| 43 |
"id": null, |
| 44 |
"generator": false, |
| 45 |
"async": false, |
| 46 |
"params": [ |
| 47 |
{ |
| 48 |
"type": "Identifier", |
| 49 |
"start":47,"end":52,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":52,"index":52},"identifierName":"yield"}, |
| 50 |
"name": "yield" |
| 51 |
} |
| 52 |
], |
| 53 |
"body": { |
| 54 |
"type": "BlockStatement", |
| 55 |
"start":54,"end":56,"loc":{"start":{"line":1,"column":54,"index":54},"end":{"line":1,"column":56,"index":56}}, |
| 56 |
"body": [], |
| 57 |
"directives": [] |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
], |
| 62 |
"kind": "var" |
| 63 |
} |
| 64 |
], |
| 65 |
"directives": [] |
| 66 |
} |
| 67 |
} |
| 68 |
], |
| 69 |
"directives": [ |
| 70 |
{ |
| 71 |
"type": "Directive", |
| 72 |
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, |
| 73 |
"value": { |
| 74 |
"type": "DirectiveLiteral", |
| 75 |
"start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}}, |
| 76 |
"extra": { |
| 77 |
"rawValue": "use strict", |
| 78 |
"raw": "\"use strict\"", |
| 79 |
"expressionValue": "use strict" |
| 80 |
}, |
| 81 |
"value": "use strict" |
| 82 |
} |
| 83 |
} |
| 84 |
] |
| 85 |
} |
| 86 |
} |