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
69 lines
2.5 KiB
JSON
69 lines
2.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":38,"index":60}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":38,"index":60}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":6,"end":20,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":20,"index":20}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":15,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":15,"index":15},"identifierName":"quotation"},
|
|
"name": "quotation"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
|
|
"extra": {
|
|
"rawValue": "",
|
|
"raw": "\"\""
|
|
},
|
|
"value": ""
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":22,"end":60,"loc":{"start":{"line":2,"column":0,"index":22},"end":{"line":2,"column":38,"index":60}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":31,"end":57,"loc":{"start":{"line":2,"column":9,"index":31},"end":{"line":2,"column":35,"index":57}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":31,"end":40,"loc":{"start":{"line":2,"column":9,"index":31},"end":{"line":2,"column":18,"index":40},"identifierName":"quotation"},
|
|
"name": "quotation"
|
|
},
|
|
"exported": {
|
|
"type": "StringLiteral",
|
|
"start":44,"end":57,"loc":{"start":{"line":2,"column":22,"index":44},"end":{"line":2,"column":35,"index":57}},
|
|
"extra": {
|
|
"rawValue": "學而時習之,不亦說乎?",
|
|
"raw": "\"學而時習之,不亦說乎?\""
|
|
},
|
|
"value": "學而時習之,不亦說乎?"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"declaration": null,
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|