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
68 lines
2.5 KiB
JSON
68 lines
2.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":22,"index":38}},
|
|
"errors": [
|
|
"SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:9)",
|
|
"SyntaxError: Export 'foo' is not defined. (1:9)",
|
|
"SyntaxError: Export 'bar' is not defined. (2:9)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":22,"index":38}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
|
|
"name": "foo"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"declaration": null,
|
|
"attributes": []
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":16,"end":38,"loc":{"start":{"line":2,"column":0,"index":16},"end":{"line":2,"column":22,"index":38}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":25,"end":35,"loc":{"start":{"line":2,"column":9,"index":25},"end":{"line":2,"column":19,"index":35}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":25,"end":28,"loc":{"start":{"line":2,"column":9,"index":25},"end":{"line":2,"column":12,"index":28},"identifierName":"bar"},
|
|
"name": "bar"
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"start":32,"end":35,"loc":{"start":{"line":2,"column":16,"index":32},"end":{"line":2,"column":19,"index":35},"identifierName":"foo"},
|
|
"name": "foo"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"declaration": null,
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|