Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/export-extensions/invalid-default-from-identifier/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
4 "errors": [
5 "SyntaxError: 'from' is not allowed as an identifier after 'export default'. (1:15)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExportDefaultDeclaration",
15 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
16 "declaration": {
17 "type": "Identifier",
18 "start":15,"end":19,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":19,"index":19},"identifierName":"from"},
19 "name": "from"
20 }
21 }
22 ],
23 "directives": []
24 }
25 }