| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":99,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":2,"index":99}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Unsyntactic break. (5:8)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":99,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":2,"index":99}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "FunctionDeclaration", |
| 15 |
"start":0,"end":98,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":98}}, |
| 16 |
"id": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":9,"end":13,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":13,"index":13},"identifierName":"iter"}, |
| 19 |
"name": "iter" |
| 20 |
}, |
| 21 |
"generator": false, |
| 22 |
"async": false, |
| 23 |
"params": [], |
| 24 |
"body": { |
| 25 |
"type": "BlockStatement", |
| 26 |
"start":16,"end":98,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":8,"column":1,"index":98}}, |
| 27 |
"body": [ |
| 28 |
{ |
| 29 |
"type": "SwitchStatement", |
| 30 |
"start":20,"end":96,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":7,"column":3,"index":96}}, |
| 31 |
"discriminant": { |
| 32 |
"type": "NumericLiteral", |
| 33 |
"start":27,"end":28,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":10,"index":28}}, |
| 34 |
"extra": { |
| 35 |
"rawValue": 1, |
| 36 |
"raw": "1" |
| 37 |
}, |
| 38 |
"value": 1 |
| 39 |
}, |
| 40 |
"cases": [ |
| 41 |
{ |
| 42 |
"type": "SwitchCase", |
| 43 |
"start":36,"end":92,"loc":{"start":{"line":3,"column":4,"index":36},"end":{"line":6,"column":7,"index":92}}, |
| 44 |
"consequent": [ |
| 45 |
{ |
| 46 |
"type": "VariableDeclaration", |
| 47 |
"start":51,"end":92,"loc":{"start":{"line":4,"column":6,"index":51},"end":{"line":6,"column":7,"index":92}}, |
| 48 |
"declarations": [ |
| 49 |
{ |
| 50 |
"type": "VariableDeclarator", |
| 51 |
"start":55,"end":92,"loc":{"start":{"line":4,"column":10,"index":55},"end":{"line":6,"column":7,"index":92}}, |
| 52 |
"id": { |
| 53 |
"type": "Identifier", |
| 54 |
"start":55,"end":56,"loc":{"start":{"line":4,"column":10,"index":55},"end":{"line":4,"column":11,"index":56},"identifierName":"x"}, |
| 55 |
"name": "x" |
| 56 |
}, |
| 57 |
"init": { |
| 58 |
"type": "DoExpression", |
| 59 |
"start":59,"end":92,"loc":{"start":{"line":4,"column":14,"index":59},"end":{"line":6,"column":7,"index":92}}, |
| 60 |
"async": true, |
| 61 |
"body": { |
| 62 |
"type": "BlockStatement", |
| 63 |
"start":68,"end":92,"loc":{"start":{"line":4,"column":23,"index":68},"end":{"line":6,"column":7,"index":92}}, |
| 64 |
"body": [ |
| 65 |
{ |
| 66 |
"type": "BreakStatement", |
| 67 |
"start":78,"end":84,"loc":{"start":{"line":5,"column":8,"index":78},"end":{"line":5,"column":14,"index":84}}, |
| 68 |
"label": null |
| 69 |
} |
| 70 |
], |
| 71 |
"directives": [] |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
], |
| 76 |
"kind": "var" |
| 77 |
} |
| 78 |
], |
| 79 |
"test": null |
| 80 |
} |
| 81 |
] |
| 82 |
} |
| 83 |
], |
| 84 |
"directives": [] |
| 85 |
} |
| 86 |
}, |
| 87 |
{ |
| 88 |
"type": "EmptyStatement", |
| 89 |
"start":98,"end":99,"loc":{"start":{"line":8,"column":1,"index":98},"end":{"line":8,"column":2,"index":99}} |
| 90 |
} |
| 91 |
], |
| 92 |
"directives": [] |
| 93 |
} |
| 94 |
} |