Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/modules/duplicate-export-default-and-export-as-default/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":26,"index":56}},
4 "errors": [
5 "SyntaxError: Only one default export allowed per module. (2:9)",
6 "SyntaxError: Export 'foo' is not defined. (2:9)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":26,"index":56}},
11 "sourceType": "module",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExportDefaultDeclaration",
16 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
17 "declaration": {
18 "type": "FunctionDeclaration",
19 "start":15,"end":28,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":28,"index":28}},
20 "id": null,
21 "generator": false,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":26,"end":28,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":28,"index":28}},
27 "body": [],
28 "directives": []
29 }
30 }
31 },
32 {
33 "type": "EmptyStatement",
34 "start":28,"end":29,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":29,"index":29}}
35 },
36 {
37 "type": "ExportNamedDeclaration",
38 "start":30,"end":56,"loc":{"start":{"line":2,"column":0,"index":30},"end":{"line":2,"column":26,"index":56}},
39 "specifiers": [
40 {
41 "type": "ExportSpecifier",
42 "start":39,"end":53,"loc":{"start":{"line":2,"column":9,"index":39},"end":{"line":2,"column":23,"index":53}},
43 "local": {
44 "type": "Identifier",
45 "start":39,"end":42,"loc":{"start":{"line":2,"column":9,"index":39},"end":{"line":2,"column":12,"index":42},"identifierName":"foo"},
46 "name": "foo"
47 },
48 "exported": {
49 "type": "Identifier",
50 "start":46,"end":53,"loc":{"start":{"line":2,"column":16,"index":46},"end":{"line":2,"column":23,"index":53},"identifierName":"default"},
51 "name": "default"
52 }
53 }
54 ],
55 "source": null,
56 "declaration": null
57 }
58 ],
59 "directives": []
60 }
61 }