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.4 KiB
JSON
87 lines
3.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":34,"index":73}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":34,"index":73}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16},"identifierName":"encrypt"},
|
|
"name": "encrypt"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":19,"end":21,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":21,"index":21}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":22,"end":38,"loc":{"start":{"line":2,"column":0,"index":22},"end":{"line":2,"column":16,"index":38}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":28,"end":35,"loc":{"start":{"line":2,"column":6,"index":28},"end":{"line":2,"column":13,"index":35},"identifierName":"decrypt"},
|
|
"name": "decrypt"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":36,"end":38,"loc":{"start":{"line":2,"column":14,"index":36},"end":{"line":2,"column":16,"index":38}},
|
|
"body": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":39,"end":73,"loc":{"start":{"line":3,"column":0,"index":39},"end":{"line":3,"column":34,"index":73}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":48,"end":55,"loc":{"start":{"line":3,"column":9,"index":48},"end":{"line":3,"column":16,"index":55}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":48,"end":55,"loc":{"start":{"line":3,"column":9,"index":48},"end":{"line":3,"column":16,"index":55},"identifierName":"encrypt"},
|
|
"name": "encrypt"
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"start":48,"end":55,"loc":{"start":{"line":3,"column":9,"index":48},"end":{"line":3,"column":16,"index":55},"identifierName":"encrypt"},
|
|
"name": "encrypt"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"start":57,"end":71,"loc":{"start":{"line":3,"column":18,"index":57},"end":{"line":3,"column":32,"index":71}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":57,"end":64,"loc":{"start":{"line":3,"column":18,"index":57},"end":{"line":3,"column":25,"index":64},"identifierName":"decrypt"},
|
|
"name": "decrypt"
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"start":68,"end":71,"loc":{"start":{"line":3,"column":29,"index":68},"end":{"line":3,"column":32,"index":71},"identifierName":"dec"},
|
|
"name": "dec"
|
|
}
|
|
}
|
|
],
|
|
"source": null,
|
|
"declaration": null,
|
|
"attributes": []
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|