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
61 lines
2.3 KiB
JSON
61 lines
2.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":24,"index":42}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":24,"index":42}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
|
|
"exportKind": "value",
|
|
"specifiers": [],
|
|
"source": null,
|
|
"attributes": [],
|
|
"declaration": {
|
|
"type": "EnumDeclaration",
|
|
"start":7,"end":16,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":16,"index":16}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"body": {
|
|
"type": "EnumStringBody",
|
|
"start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16}},
|
|
"hasUnknownMembers": false,
|
|
"explicitType": false,
|
|
"members": []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportDefaultDeclaration",
|
|
"start":18,"end":42,"loc":{"start":{"line":3,"column":0,"index":18},"end":{"line":3,"column":24,"index":42}},
|
|
"declaration": {
|
|
"type": "EnumDeclaration",
|
|
"start":33,"end":42,"loc":{"start":{"line":3,"column":15,"index":33},"end":{"line":3,"column":24,"index":42}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":38,"end":39,"loc":{"start":{"line":3,"column":20,"index":38},"end":{"line":3,"column":21,"index":39},"identifierName":"B"},
|
|
"name": "B"
|
|
},
|
|
"body": {
|
|
"type": "EnumStringBody",
|
|
"start":40,"end":42,"loc":{"start":{"line":3,"column":22,"index":40},"end":{"line":3,"column":24,"index":42}},
|
|
"hasUnknownMembers": false,
|
|
"explicitType": false,
|
|
"members": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|