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