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
65 lines
2.4 KiB
JSON
65 lines
2.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":20,"index":41}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":20,"index":41}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":6,"end":18,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":18,"index":18}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":14,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":14,"index":14},"identifierName":"toString"},
|
|
"name": "toString"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":21,"end":41,"loc":{"start":{"line":3,"column":0,"index":21},"end":{"line":3,"column":20,"index":41}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":30,"end":38,"loc":{"start":{"line":3,"column":9,"index":30},"end":{"line":3,"column":17,"index":38}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":30,"end":38,"loc":{"start":{"line":3,"column":9,"index":30},"end":{"line":3,"column":17,"index":38},"identifierName":"toString"},
|
|
"name": "toString"
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"start":30,"end":38,"loc":{"start":{"line":3,"column":9,"index":30},"end":{"line":3,"column":17,"index":38},"identifierName":"toString"},
|
|
"name": "toString"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"declaration": null,
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|