| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":96,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":69,"index":96}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Identifier 'foo4' has already been declared. (2:50)", |
| 6 |
"SyntaxError: `foo4` has already been exported. Exported identifiers must be unique. (2:50)" |
| 7 |
], |
| 8 |
"program": { |
| 9 |
"type": "Program", |
| 10 |
"start":0,"end":96,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":69,"index":96}}, |
| 11 |
"sourceType": "module", |
| 12 |
"interpreter": null, |
| 13 |
"body": [ |
| 14 |
{ |
| 15 |
"type": "ExportNamedDeclaration", |
| 16 |
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}}, |
| 17 |
"specifiers": [], |
| 18 |
"source": null, |
| 19 |
"declaration": { |
| 20 |
"type": "FunctionDeclaration", |
| 21 |
"start":7,"end":25,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":25,"index":25}}, |
| 22 |
"id": { |
| 23 |
"type": "Identifier", |
| 24 |
"start":16,"end":20,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":20,"index":20},"identifierName":"foo4"}, |
| 25 |
"name": "foo4" |
| 26 |
}, |
| 27 |
"generator": false, |
| 28 |
"async": false, |
| 29 |
"params": [], |
| 30 |
"body": { |
| 31 |
"type": "BlockStatement", |
| 32 |
"start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}}, |
| 33 |
"body": [], |
| 34 |
"directives": [] |
| 35 |
} |
| 36 |
} |
| 37 |
}, |
| 38 |
{ |
| 39 |
"type": "EmptyStatement", |
| 40 |
"start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26}} |
| 41 |
}, |
| 42 |
{ |
| 43 |
"type": "ExportNamedDeclaration", |
| 44 |
"start":27,"end":96,"loc":{"start":{"line":2,"column":0,"index":27},"end":{"line":2,"column":69,"index":96}}, |
| 45 |
"specifiers": [], |
| 46 |
"source": null, |
| 47 |
"declaration": { |
| 48 |
"type": "VariableDeclaration", |
| 49 |
"start":34,"end":96,"loc":{"start":{"line":2,"column":7,"index":34},"end":{"line":2,"column":69,"index":96}}, |
| 50 |
"declarations": [ |
| 51 |
{ |
| 52 |
"type": "VariableDeclarator", |
| 53 |
"start":40,"end":95,"loc":{"start":{"line":2,"column":13,"index":40},"end":{"line":2,"column":68,"index":95}}, |
| 54 |
"id": { |
| 55 |
"type": "ArrayPattern", |
| 56 |
"start":40,"end":89,"loc":{"start":{"line":2,"column":13,"index":40},"end":{"line":2,"column":62,"index":89}}, |
| 57 |
"elements": [ |
| 58 |
{ |
| 59 |
"type": "ObjectPattern", |
| 60 |
"start":41,"end":88,"loc":{"start":{"line":2,"column":14,"index":41},"end":{"line":2,"column":61,"index":88}}, |
| 61 |
"properties": [ |
| 62 |
{ |
| 63 |
"type": "ObjectProperty", |
| 64 |
"start":43,"end":55,"loc":{"start":{"line":2,"column":16,"index":43},"end":{"line":2,"column":28,"index":55}}, |
| 65 |
"key": { |
| 66 |
"type": "Identifier", |
| 67 |
"start":43,"end":44,"loc":{"start":{"line":2,"column":16,"index":43},"end":{"line":2,"column":17,"index":44},"identifierName":"a"}, |
| 68 |
"name": "a" |
| 69 |
}, |
| 70 |
"computed": false, |
| 71 |
"method": false, |
| 72 |
"shorthand": false, |
| 73 |
"value": { |
| 74 |
"type": "ArrayPattern", |
| 75 |
"start":46,"end":55,"loc":{"start":{"line":2,"column":19,"index":46},"end":{"line":2,"column":28,"index":55}}, |
| 76 |
"elements": [ |
| 77 |
{ |
| 78 |
"type": "ObjectPattern", |
| 79 |
"start":47,"end":54,"loc":{"start":{"line":2,"column":20,"index":47},"end":{"line":2,"column":27,"index":54}}, |
| 80 |
"properties": [ |
| 81 |
{ |
| 82 |
"type": "ObjectProperty", |
| 83 |
"start":49,"end":52,"loc":{"start":{"line":2,"column":22,"index":49},"end":{"line":2,"column":25,"index":52}}, |
| 84 |
"key": { |
| 85 |
"type": "Identifier", |
| 86 |
"start":49,"end":52,"loc":{"start":{"line":2,"column":22,"index":49},"end":{"line":2,"column":25,"index":52},"identifierName":"foo"}, |
| 87 |
"name": "foo" |
| 88 |
}, |
| 89 |
"computed": false, |
| 90 |
"method": false, |
| 91 |
"shorthand": true, |
| 92 |
"value": { |
| 93 |
"type": "Identifier", |
| 94 |
"start":49,"end":52,"loc":{"start":{"line":2,"column":22,"index":49},"end":{"line":2,"column":25,"index":52},"identifierName":"foo"}, |
| 95 |
"name": "foo" |
| 96 |
}, |
| 97 |
"extra": { |
| 98 |
"shorthand": true |
| 99 |
} |
| 100 |
} |
| 101 |
] |
| 102 |
} |
| 103 |
] |
| 104 |
} |
| 105 |
}, |
| 106 |
{ |
| 107 |
"type": "ObjectProperty", |
| 108 |
"start":57,"end":86,"loc":{"start":{"line":2,"column":30,"index":57},"end":{"line":2,"column":59,"index":86}}, |
| 109 |
"key": { |
| 110 |
"type": "Identifier", |
| 111 |
"start":57,"end":58,"loc":{"start":{"line":2,"column":30,"index":57},"end":{"line":2,"column":31,"index":58},"identifierName":"b"}, |
| 112 |
"name": "b" |
| 113 |
}, |
| 114 |
"computed": false, |
| 115 |
"method": false, |
| 116 |
"shorthand": false, |
| 117 |
"value": { |
| 118 |
"type": "ObjectPattern", |
| 119 |
"start":60,"end":86,"loc":{"start":{"line":2,"column":33,"index":60},"end":{"line":2,"column":59,"index":86}}, |
| 120 |
"properties": [ |
| 121 |
{ |
| 122 |
"type": "ObjectProperty", |
| 123 |
"start":62,"end":84,"loc":{"start":{"line":2,"column":35,"index":62},"end":{"line":2,"column":57,"index":84}}, |
| 124 |
"key": { |
| 125 |
"type": "Identifier", |
| 126 |
"start":62,"end":66,"loc":{"start":{"line":2,"column":35,"index":62},"end":{"line":2,"column":39,"index":66},"identifierName":"foo2"}, |
| 127 |
"name": "foo2" |
| 128 |
}, |
| 129 |
"computed": false, |
| 130 |
"method": false, |
| 131 |
"shorthand": false, |
| 132 |
"value": { |
| 133 |
"type": "ArrayPattern", |
| 134 |
"start":68,"end":84,"loc":{"start":{"line":2,"column":41,"index":68},"end":{"line":2,"column":57,"index":84}}, |
| 135 |
"elements": [ |
| 136 |
{ |
| 137 |
"type": "ObjectPattern", |
| 138 |
"start":69,"end":83,"loc":{"start":{"line":2,"column":42,"index":69},"end":{"line":2,"column":56,"index":83}}, |
| 139 |
"properties": [ |
| 140 |
{ |
| 141 |
"type": "ObjectProperty", |
| 142 |
"start":71,"end":81,"loc":{"start":{"line":2,"column":44,"index":71},"end":{"line":2,"column":54,"index":81}}, |
| 143 |
"key": { |
| 144 |
"type": "Identifier", |
| 145 |
"start":71,"end":75,"loc":{"start":{"line":2,"column":44,"index":71},"end":{"line":2,"column":48,"index":75},"identifierName":"foo3"}, |
| 146 |
"name": "foo3" |
| 147 |
}, |
| 148 |
"computed": false, |
| 149 |
"method": false, |
| 150 |
"shorthand": false, |
| 151 |
"value": { |
| 152 |
"type": "Identifier", |
| 153 |
"start":77,"end":81,"loc":{"start":{"line":2,"column":50,"index":77},"end":{"line":2,"column":54,"index":81},"identifierName":"foo4"}, |
| 154 |
"name": "foo4" |
| 155 |
} |
| 156 |
} |
| 157 |
] |
| 158 |
} |
| 159 |
] |
| 160 |
} |
| 161 |
} |
| 162 |
] |
| 163 |
} |
| 164 |
} |
| 165 |
] |
| 166 |
} |
| 167 |
] |
| 168 |
}, |
| 169 |
"init": { |
| 170 |
"type": "Identifier", |
| 171 |
"start":92,"end":95,"loc":{"start":{"line":2,"column":65,"index":92},"end":{"line":2,"column":68,"index":95},"identifierName":"bar"}, |
| 172 |
"name": "bar" |
| 173 |
} |
| 174 |
} |
| 175 |
], |
| 176 |
"kind": "const" |
| 177 |
} |
| 178 |
} |
| 179 |
], |
| 180 |
"directives": [] |
| 181 |
} |
| 182 |
} |