Debian Codegraph @

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

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