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
74 lines
3.1 KiB
JSON
74 lines
3.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":45,"index":45}},
|
|
"errors": [
|
|
"SyntaxError: A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '學而時習之,不亦說乎?' as '學而時習之,不亦說乎?' } from 'some-module'`? (1:9)",
|
|
"SyntaxError: A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '吾道一以貫之。' as '忠恕。' } from 'some-module'`? (1:24)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":45,"index":45}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":45,"index":45}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
|
|
"local": {
|
|
"type": "StringLiteral",
|
|
"start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
|
|
"extra": {
|
|
"rawValue": "學而時習之,不亦說乎?",
|
|
"raw": "\"學而時習之,不亦說乎?\""
|
|
},
|
|
"value": "學而時習之,不亦說乎?"
|
|
},
|
|
"exported": {
|
|
"type": "StringLiteral",
|
|
"start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
|
|
"extra": {
|
|
"rawValue": "學而時習之,不亦說乎?",
|
|
"raw": "\"學而時習之,不亦說乎?\""
|
|
},
|
|
"value": "學而時習之,不亦說乎?"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":24,"end":42,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":42,"index":42}},
|
|
"local": {
|
|
"type": "StringLiteral",
|
|
"start":24,"end":33,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":33,"index":33}},
|
|
"extra": {
|
|
"rawValue": "吾道一以貫之。",
|
|
"raw": "\"吾道一以貫之。\""
|
|
},
|
|
"value": "吾道一以貫之。"
|
|
},
|
|
"exported": {
|
|
"type": "StringLiteral",
|
|
"start":37,"end":42,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":42,"index":42}},
|
|
"extra": {
|
|
"rawValue": "忠恕。",
|
|
"raw": "\"忠恕。\""
|
|
},
|
|
"value": "忠恕。"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"declaration": null,
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|