105 lines
4.1 KiB
JSON
105 lines
4.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":21}},
|
|
"errors": [
|
|
"SyntaxError: Identifier 'bar' has already been declared (2:13)",
|
|
"SyntaxError: `bar` has already been exported. Exported identifiers must be unique. (2:13)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":21}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":7,"end":35,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":35}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":13,"end":34,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":34}},
|
|
"id": {
|
|
"type": "ObjectPattern",
|
|
"start":13,"end":28,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":28}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"computed": false,
|
|
"shorthand": true,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":15,"end":18,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":18},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "RestElement",
|
|
"start":20,"end":26,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":26}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":23,"end":26,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":26},"identifierName":"bar"},
|
|
"name": "bar"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "Identifier",
|
|
"start":31,"end":34,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":34},"identifierName":"baz"},
|
|
"name": "baz"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":36,"end":57,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":21}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":43,"end":57,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":21}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":49,"end":56,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":20}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":49,"end":52,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":16},"identifierName":"bar"},
|
|
"name": "bar"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start":55,"end":56,"loc":{"start":{"line":2,"column":19},"end":{"line":2,"column":20}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |