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

61 lines
2.2 KiB
JSON

{
"type": "File",
"start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":19,"index":37}},
"program": {
"type": "Program",
"start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":19,"index":37}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "InterfaceDeclaration",
"start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
"id": {
"type": "Identifier",
"start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"Foo"},
"name": "Foo"
},
"typeParameters": null,
"extends": [],
"body": {
"type": "ObjectTypeAnnotation",
"start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16}},
"callProperties": [],
"properties": [],
"indexers": [],
"internalSlots": [],
"exact": false
}
},
{
"type": "ExportNamedDeclaration",
"start":18,"end":37,"loc":{"start":{"line":3,"column":0,"index":18},"end":{"line":3,"column":19,"index":37}},
"exportKind": "type",
"specifiers": [
{
"type": "ExportSpecifier",
"start":32,"end":35,"loc":{"start":{"line":3,"column":14,"index":32},"end":{"line":3,"column":17,"index":35}},
"local": {
"type": "Identifier",
"start":32,"end":35,"loc":{"start":{"line":3,"column":14,"index":32},"end":{"line":3,"column":17,"index":35},"identifierName":"Foo"},
"name": "Foo"
},
"exported": {
"type": "Identifier",
"start":32,"end":35,"loc":{"start":{"line":3,"column":14,"index":32},"end":{"line":3,"column":17,"index":35},"identifierName":"Foo"},
"name": "Foo"
}
}
],
"source": null,
"declaration": null,
"attributes": []
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}