Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":48}},
4 "errors": [
5 "SyntaxError: Only one default export allowed per module. (2:0)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":48}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExportDefaultDeclaration",
15 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
16 "declaration": {
17 "type": "ObjectExpression",
18 "start":15,"end":17,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":17,"index":17}},
19 "properties": []
20 }
21 },
22 {
23 "type": "ExportDefaultDeclaration",
24 "start":19,"end":47,"loc":{"start":{"line":2,"column":0,"index":19},"end":{"line":2,"column":28,"index":47}},
25 "declaration": {
26 "type": "FunctionDeclaration",
27 "start":34,"end":47,"loc":{"start":{"line":2,"column":15,"index":34},"end":{"line":2,"column":28,"index":47}},
28 "id": null,
29 "generator": false,
30 "async": false,
31 "params": [],
32 "body": {
33 "type": "BlockStatement",
34 "start":45,"end":47,"loc":{"start":{"line":2,"column":26,"index":45},"end":{"line":2,"column":28,"index":47}},
35 "body": [],
36 "directives": []
37 }
38 }
39 },
40 {
41 "type": "EmptyStatement",
42 "start":47,"end":48,"loc":{"start":{"line":2,"column":28,"index":47},"end":{"line":2,"column":29,"index":48}}
43 }
44 ],
45 "directives": []
46 }
47 }