mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* chore: bump eslint and espree * fix: always initialize ExportDeclaration attributes * update AST fixtures * fix: initialize attributes when importAssertions is not enabled * update AST fixtures * update test snapshot * update Makefile.js * update Babel 8 AST fixtures
81 lines
3.1 KiB
JSON
81 lines
3.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":46}},
|
|
"errors": [
|
|
"SyntaxError: Identifier 'Foo' has already been declared. (2:14)",
|
|
"SyntaxError: `Foo` has already been exported. Exported identifiers must be unique. (2:14)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":46}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"attributes": [],
|
|
"declaration": {
|
|
"type": "ClassDeclaration",
|
|
"start":7,"end":19,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":19,"index":19}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16},"identifierName":"Foo"},
|
|
"name": "Foo"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":17,"end":19,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":19,"index":19}},
|
|
"body": []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "EmptyStatement",
|
|
"start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20}}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":21,"end":46,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":25,"index":46}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"attributes": [],
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":28,"end":46,"loc":{"start":{"line":2,"column":7,"index":28},"end":{"line":2,"column":25,"index":46}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":34,"end":45,"loc":{"start":{"line":2,"column":13,"index":34},"end":{"line":2,"column":24,"index":45}},
|
|
"id": {
|
|
"type": "ArrayPattern",
|
|
"start":34,"end":39,"loc":{"start":{"line":2,"column":13,"index":34},"end":{"line":2,"column":18,"index":39}},
|
|
"elements": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":35,"end":38,"loc":{"start":{"line":2,"column":14,"index":35},"end":{"line":2,"column":17,"index":38},"identifierName":"Foo"},
|
|
"name": "Foo"
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "Identifier",
|
|
"start":42,"end":45,"loc":{"start":{"line":2,"column":21,"index":42},"end":{"line":2,"column":24,"index":45},"identifierName":"bar"},
|
|
"name": "bar"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|