| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":50}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":50}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "TryStatement", |
| 12 |
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":50}}, |
| 13 |
"block": { |
| 14 |
"type": "BlockStatement", |
| 15 |
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":2,"column":1,"index":7}}, |
| 16 |
"body": [], |
| 17 |
"directives": [] |
| 18 |
}, |
| 19 |
"handler": { |
| 20 |
"type": "CatchClause", |
| 21 |
"start":8,"end":50,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":4,"column":1,"index":50}}, |
| 22 |
"param": { |
| 23 |
"type": "Identifier", |
| 24 |
"start":15,"end":18,"loc":{"start":{"line":2,"column":9,"index":15},"end":{"line":2,"column":12,"index":18},"identifierName":"foo"}, |
| 25 |
"name": "foo" |
| 26 |
}, |
| 27 |
"body": { |
| 28 |
"type": "BlockStatement", |
| 29 |
"start":20,"end":50,"loc":{"start":{"line":2,"column":14,"index":20},"end":{"line":4,"column":1,"index":50}}, |
| 30 |
"body": [ |
| 31 |
{ |
| 32 |
"type": "IfStatement", |
| 33 |
"start":24,"end":48,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":3,"column":26,"index":48}}, |
| 34 |
"test": { |
| 35 |
"type": "NumericLiteral", |
| 36 |
"start":28,"end":29,"loc":{"start":{"line":3,"column":6,"index":28},"end":{"line":3,"column":7,"index":29}}, |
| 37 |
"extra": { |
| 38 |
"rawValue": 1, |
| 39 |
"raw": "1" |
| 40 |
}, |
| 41 |
"value": 1 |
| 42 |
}, |
| 43 |
"consequent": { |
| 44 |
"type": "FunctionDeclaration", |
| 45 |
"start":31,"end":48,"loc":{"start":{"line":3,"column":9,"index":31},"end":{"line":3,"column":26,"index":48}}, |
| 46 |
"id": { |
| 47 |
"type": "Identifier", |
| 48 |
"start":40,"end":43,"loc":{"start":{"line":3,"column":18,"index":40},"end":{"line":3,"column":21,"index":43},"identifierName":"foo"}, |
| 49 |
"name": "foo" |
| 50 |
}, |
| 51 |
"generator": false, |
| 52 |
"async": false, |
| 53 |
"params": [], |
| 54 |
"body": { |
| 55 |
"type": "BlockStatement", |
| 56 |
"start":46,"end":48,"loc":{"start":{"line":3,"column":24,"index":46},"end":{"line":3,"column":26,"index":48}}, |
| 57 |
"body": [], |
| 58 |
"directives": [] |
| 59 |
} |
| 60 |
}, |
| 61 |
"alternate": null |
| 62 |
} |
| 63 |
], |
| 64 |
"directives": [] |
| 65 |
} |
| 66 |
}, |
| 67 |
"finalizer": null |
| 68 |
} |
| 69 |
], |
| 70 |
"directives": [] |
| 71 |
} |
| 72 |
} |