Debian Codegraph @

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

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