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
177 lines
7.7 KiB
JSON
177 lines
7.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":121,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":47,"index":121}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":121,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":47,"index":121}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"attributes": [],
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":7,"end":25,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":25,"index":25}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":13,"end":24,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":24,"index":24}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start":19,"end":24,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":24,"index":24}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":26,"end":73,"loc":{"start":{"line":2,"column":0,"index":26},"end":{"line":2,"column":47,"index":73}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":32,"end":72,"loc":{"start":{"line":2,"column":6,"index":32},"end":{"line":2,"column":46,"index":72}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":32,"end":34,"loc":{"start":{"line":2,"column":6,"index":32},"end":{"line":2,"column":8,"index":34},"identifierName":"m1"},
|
|
"name": "m1"
|
|
},
|
|
"init": {
|
|
"type": "ModuleExpression",
|
|
"start":37,"end":72,"loc":{"start":{"line":2,"column":11,"index":37},"end":{"line":2,"column":46,"index":72}},
|
|
"body": {
|
|
"type": "Program",
|
|
"start":45,"end":71,"loc":{"start":{"line":2,"column":19,"index":45},"end":{"line":2,"column":45,"index":71}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":46,"end":70,"loc":{"start":{"line":2,"column":20,"index":46},"end":{"line":2,"column":44,"index":70}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"attributes": [],
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":53,"end":70,"loc":{"start":{"line":2,"column":27,"index":53},"end":{"line":2,"column":44,"index":70}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":59,"end":70,"loc":{"start":{"line":2,"column":33,"index":59},"end":{"line":2,"column":44,"index":70}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":59,"end":62,"loc":{"start":{"line":2,"column":33,"index":59},"end":{"line":2,"column":36,"index":62},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start":65,"end":70,"loc":{"start":{"line":2,"column":39,"index":65},"end":{"line":2,"column":44,"index":70}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":74,"end":121,"loc":{"start":{"line":3,"column":0,"index":74},"end":{"line":3,"column":47,"index":121}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":80,"end":120,"loc":{"start":{"line":3,"column":6,"index":80},"end":{"line":3,"column":46,"index":120}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":80,"end":82,"loc":{"start":{"line":3,"column":6,"index":80},"end":{"line":3,"column":8,"index":82},"identifierName":"m2"},
|
|
"name": "m2"
|
|
},
|
|
"init": {
|
|
"type": "ModuleExpression",
|
|
"start":85,"end":120,"loc":{"start":{"line":3,"column":11,"index":85},"end":{"line":3,"column":46,"index":120}},
|
|
"body": {
|
|
"type": "Program",
|
|
"start":93,"end":119,"loc":{"start":{"line":3,"column":19,"index":93},"end":{"line":3,"column":45,"index":119}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start":94,"end":118,"loc":{"start":{"line":3,"column":20,"index":94},"end":{"line":3,"column":44,"index":118}},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"attributes": [],
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start":101,"end":118,"loc":{"start":{"line":3,"column":27,"index":101},"end":{"line":3,"column":44,"index":118}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":107,"end":118,"loc":{"start":{"line":3,"column":33,"index":107},"end":{"line":3,"column":44,"index":118}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":107,"end":110,"loc":{"start":{"line":3,"column":33,"index":107},"end":{"line":3,"column":36,"index":110},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start":113,"end":118,"loc":{"start":{"line":3,"column":39,"index":113},"end":{"line":3,"column":44,"index":118}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|