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

65 lines
2.3 KiB
JSON

{
"type": "File",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":53}},
"program": {
"type": "Program",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":53}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ImportDeclaration",
"start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}},
"local": {
"type": "Identifier",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14},"identifierName":"encrypt"},
"name": "encrypt"
}
}
],
"source": {
"type": "StringLiteral",
"start":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
"extra": {
"rawValue": "",
"raw": "\"\""
},
"value": ""
},
"attributes": []
},
{
"type": "ExportNamedDeclaration",
"start":24,"end":53,"loc":{"start":{"line":2,"column":0,"index":24},"end":{"line":2,"column":29,"index":53}},
"specifiers": [
{
"type": "ExportSpecifier",
"start":33,"end":51,"loc":{"start":{"line":2,"column":9,"index":33},"end":{"line":2,"column":27,"index":51}},
"local": {
"type": "Identifier",
"start":33,"end":40,"loc":{"start":{"line":2,"column":9,"index":33},"end":{"line":2,"column":16,"index":40},"identifierName":"encrypt"},
"name": "encrypt"
},
"exported": {
"type": "Identifier",
"start":44,"end":51,"loc":{"start":{"line":2,"column":20,"index":44},"end":{"line":2,"column":27,"index":51},"identifierName":"default"},
"name": "default"
}
}
],
"source": null,
"declaration": null,
"attributes": []
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}