| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":77}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":77}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "VariableDeclaration", |
| 12 |
"start":0,"end":77,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":77}}, |
| 13 |
"declarations": [ |
| 14 |
{ |
| 15 |
"type": "VariableDeclarator", |
| 16 |
"start":4,"end":76,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":5,"column":1,"index":76}}, |
| 17 |
"id": { |
| 18 |
"type": "Identifier", |
| 19 |
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"}, |
| 20 |
"name": "x" |
| 21 |
}, |
| 22 |
"init": { |
| 23 |
"type": "DoExpression", |
| 24 |
"start":8,"end":76,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":5,"column":1,"index":76}}, |
| 25 |
"async": false, |
| 26 |
"body": { |
| 27 |
"type": "BlockStatement", |
| 28 |
"start":11,"end":76,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":5,"column":1,"index":76}}, |
| 29 |
"body": [ |
| 30 |
{ |
| 31 |
"type": "IfStatement", |
| 32 |
"start":15,"end":74,"loc":{"start":{"line":2,"column":2,"index":15},"end":{"line":4,"column":14,"index":74}}, |
| 33 |
"test": { |
| 34 |
"type": "CallExpression", |
| 35 |
"start":19,"end":24,"loc":{"start":{"line":2,"column":6,"index":19},"end":{"line":2,"column":11,"index":24}}, |
| 36 |
"callee": { |
| 37 |
"type": "Identifier", |
| 38 |
"start":19,"end":22,"loc":{"start":{"line":2,"column":6,"index":19},"end":{"line":2,"column":9,"index":22},"identifierName":"foo"}, |
| 39 |
"name": "foo" |
| 40 |
}, |
| 41 |
"arguments": [] |
| 42 |
}, |
| 43 |
"consequent": { |
| 44 |
"type": "BlockStatement", |
| 45 |
"start":26,"end":33,"loc":{"start":{"line":2,"column":13,"index":26},"end":{"line":2,"column":20,"index":33}}, |
| 46 |
"body": [ |
| 47 |
{ |
| 48 |
"type": "ExpressionStatement", |
| 49 |
"start":28,"end":31,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":18,"index":31}}, |
| 50 |
"expression": { |
| 51 |
"type": "CallExpression", |
| 52 |
"start":28,"end":31,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":18,"index":31}}, |
| 53 |
"callee": { |
| 54 |
"type": "Identifier", |
| 55 |
"start":28,"end":29,"loc":{"start":{"line":2,"column":15,"index":28},"end":{"line":2,"column":16,"index":29},"identifierName":"f"}, |
| 56 |
"name": "f" |
| 57 |
}, |
| 58 |
"arguments": [] |
| 59 |
} |
| 60 |
} |
| 61 |
], |
| 62 |
"directives": [] |
| 63 |
}, |
| 64 |
"alternate": { |
| 65 |
"type": "IfStatement", |
| 66 |
"start":41,"end":74,"loc":{"start":{"line":3,"column":7,"index":41},"end":{"line":4,"column":14,"index":74}}, |
| 67 |
"test": { |
| 68 |
"type": "CallExpression", |
| 69 |
"start":45,"end":50,"loc":{"start":{"line":3,"column":11,"index":45},"end":{"line":3,"column":16,"index":50}}, |
| 70 |
"callee": { |
| 71 |
"type": "Identifier", |
| 72 |
"start":45,"end":48,"loc":{"start":{"line":3,"column":11,"index":45},"end":{"line":3,"column":14,"index":48},"identifierName":"bar"}, |
| 73 |
"name": "bar" |
| 74 |
}, |
| 75 |
"arguments": [] |
| 76 |
}, |
| 77 |
"consequent": { |
| 78 |
"type": "BlockStatement", |
| 79 |
"start":52,"end":59,"loc":{"start":{"line":3,"column":18,"index":52},"end":{"line":3,"column":25,"index":59}}, |
| 80 |
"body": [ |
| 81 |
{ |
| 82 |
"type": "ExpressionStatement", |
| 83 |
"start":54,"end":57,"loc":{"start":{"line":3,"column":20,"index":54},"end":{"line":3,"column":23,"index":57}}, |
| 84 |
"expression": { |
| 85 |
"type": "CallExpression", |
| 86 |
"start":54,"end":57,"loc":{"start":{"line":3,"column":20,"index":54},"end":{"line":3,"column":23,"index":57}}, |
| 87 |
"callee": { |
| 88 |
"type": "Identifier", |
| 89 |
"start":54,"end":55,"loc":{"start":{"line":3,"column":20,"index":54},"end":{"line":3,"column":21,"index":55},"identifierName":"g"}, |
| 90 |
"name": "g" |
| 91 |
}, |
| 92 |
"arguments": [] |
| 93 |
} |
| 94 |
} |
| 95 |
], |
| 96 |
"directives": [] |
| 97 |
}, |
| 98 |
"alternate": { |
| 99 |
"type": "BlockStatement", |
| 100 |
"start":67,"end":74,"loc":{"start":{"line":4,"column":7,"index":67},"end":{"line":4,"column":14,"index":74}}, |
| 101 |
"body": [ |
| 102 |
{ |
| 103 |
"type": "ExpressionStatement", |
| 104 |
"start":69,"end":72,"loc":{"start":{"line":4,"column":9,"index":69},"end":{"line":4,"column":12,"index":72}}, |
| 105 |
"expression": { |
| 106 |
"type": "CallExpression", |
| 107 |
"start":69,"end":72,"loc":{"start":{"line":4,"column":9,"index":69},"end":{"line":4,"column":12,"index":72}}, |
| 108 |
"callee": { |
| 109 |
"type": "Identifier", |
| 110 |
"start":69,"end":70,"loc":{"start":{"line":4,"column":9,"index":69},"end":{"line":4,"column":10,"index":70},"identifierName":"h"}, |
| 111 |
"name": "h" |
| 112 |
}, |
| 113 |
"arguments": [] |
| 114 |
} |
| 115 |
} |
| 116 |
], |
| 117 |
"directives": [] |
| 118 |
} |
| 119 |
} |
| 120 |
} |
| 121 |
], |
| 122 |
"directives": [] |
| 123 |
} |
| 124 |
} |
| 125 |
} |
| 126 |
], |
| 127 |
"kind": "let" |
| 128 |
} |
| 129 |
], |
| 130 |
"directives": [] |
| 131 |
} |
| 132 |
} |