Files
Huáng JùnliàngandGitHub 61bea4ddf5 Fix: always initialize ExportDeclaration attributes (#17164)
* 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
2025-03-06 15:29:46 -05:00

87 lines
3.4 KiB
JSON

{
"type": "File",
"start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":27,"index":66}},
"program": {
"type": "Program",
"start":0,"end":66,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":27,"index":66}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
"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":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
"body": [],
"directives": []
}
},
{
"type": "ClassDeclaration",
"start":23,"end":38,"loc":{"start":{"line":2,"column":0,"index":23},"end":{"line":2,"column":15,"index":38}},
"id": {
"type": "Identifier",
"start":29,"end":36,"loc":{"start":{"line":2,"column":6,"index":29},"end":{"line":2,"column":13,"index":36},"identifierName":"decrypt"},
"name": "decrypt"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":36,"end":38,"loc":{"start":{"line":2,"column":13,"index":36},"end":{"line":2,"column":15,"index":38}},
"body": []
}
},
{
"type": "ExportNamedDeclaration",
"start":39,"end":66,"loc":{"start":{"line":3,"column":0,"index":39},"end":{"line":3,"column":27,"index":66}},
"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":64,"loc":{"start":{"line":3,"column":18,"index":57},"end":{"line":3,"column":25,"index":64}},
"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":57,"end":64,"loc":{"start":{"line":3,"column":18,"index":57},"end":{"line":3,"column":25,"index":64},"identifierName":"decrypt"},
"name": "decrypt"
}
}
],
"source": null,
"declaration": null,
"attributes": []
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}