Debian Codegraph @

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

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