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
87 lines
3.2 KiB
JSON
87 lines
3.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":49}},
|
|
"errors": [
|
|
"SyntaxError: Unexpected keyword 'export'. (1:4)",
|
|
"SyntaxError: Escape sequence in keyword export. (1:4)",
|
|
"SyntaxError: Escape sequence in keyword export. (4:0)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":49}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":21,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":21,"index":21}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":15,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":15,"index":15},"identifierName":"export"},
|
|
"name": "export"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21}},
|
|
"extra": {
|
|
"rawValue": 123,
|
|
"raw": "123"
|
|
},
|
|
"value": 123
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":24,"end":30,"loc":{"start":{"line":3,"column":0,"index":24},"end":{"line":3,"column":6,"index":30}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":28,"end":29,"loc":{"start":{"line":3,"column":4,"index":28},"end":{"line":3,"column":5,"index":29}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":28,"end":29,"loc":{"start":{"line":3,"column":4,"index":28},"end":{"line":3,"column":5,"index":29},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":31,"end":49,"loc":{"start":{"line":4,"column":0,"index":31},"end":{"line":4,"column":18,"index":49}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":45,"end":46,"loc":{"start":{"line":4,"column":14,"index":45},"end":{"line":4,"column":15,"index":46}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":45,"end":46,"loc":{"start":{"line":4,"column":14,"index":45},"end":{"line":4,"column":15,"index":46},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"start":45,"end":46,"loc":{"start":{"line":4,"column":14,"index":45},"end":{"line":4,"column":15,"index":46},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"declaration": null,
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|