123 lines
5.1 KiB
JSON
123 lines
5.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":66,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":44}},
|
|
"errors": [
|
|
"SyntaxError: Identifier 'foo' has already been declared (2:30)",
|
|
"SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:30)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":66,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":44}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":7,"end":21,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":21}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":13,"end":16,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":16},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start":19,"end":20,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":20}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":22,"end":66,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":44}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":29,"end":66,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":44}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":35,"end":65,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":43}},
|
|
"id": {
|
|
"type": "ObjectPattern",
|
|
"start":35,"end":59,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":37}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":37,"end":57,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":35}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":37,"end":40,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":18},"identifierName":"bar"},
|
|
"name": "bar"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "ObjectPattern",
|
|
"start":42,"end":57,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":35}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":44,"end":47,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":44,"end":47,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25},"identifierName":"baz"},
|
|
"name": "baz"
|
|
},
|
|
"computed": false,
|
|
"shorthand": true,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":44,"end":47,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25},"identifierName":"baz"},
|
|
"name": "baz"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "RestElement",
|
|
"start":49,"end":55,"loc":{"start":{"line":2,"column":27},"end":{"line":2,"column":33}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":52,"end":55,"loc":{"start":{"line":2,"column":30},"end":{"line":2,"column":33},"identifierName":"foo"},
|
|
"name": "foo"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "Identifier",
|
|
"start":62,"end":65,"loc":{"start":{"line":2,"column":40},"end":{"line":2,"column":43},"identifierName":"qux"},
|
|
"name": "qux"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |