Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":27,"index":48}},
4 "errors": [
5 "SyntaxError: Identifier 'Foo' has already been declared. (2:15)",
6 "SyntaxError: `Foo` has already been exported. Exported identifiers must be unique. (2:15)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":27,"index":48}},
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":48,"loc":{"start":{"line":2,"column":0,"index":21},"end":{"line":2,"column":27,"index":48}},
42 "specifiers": [],
43 "source": null,
44 "declaration": {
45 "type": "VariableDeclaration",
46 "start":28,"end":48,"loc":{"start":{"line":2,"column":7,"index":28},"end":{"line":2,"column":27,"index":48}},
47 "declarations": [
48 {
49 "type": "VariableDeclarator",
50 "start":34,"end":47,"loc":{"start":{"line":2,"column":13,"index":34},"end":{"line":2,"column":26,"index":47}},
51 "id": {
52 "type": "ObjectPattern",
53 "start":34,"end":41,"loc":{"start":{"line":2,"column":13,"index":34},"end":{"line":2,"column":20,"index":41}},
54 "properties": [
55 {
56 "type": "ObjectProperty",
57 "start":36,"end":39,"loc":{"start":{"line":2,"column":15,"index":36},"end":{"line":2,"column":18,"index":39}},
58 "key": {
59 "type": "Identifier",
60 "start":36,"end":39,"loc":{"start":{"line":2,"column":15,"index":36},"end":{"line":2,"column":18,"index":39},"identifierName":"Foo"},
61 "name": "Foo"
62 },
63 "computed": false,
64 "method": false,
65 "shorthand": true,
66 "value": {
67 "type": "Identifier",
68 "start":36,"end":39,"loc":{"start":{"line":2,"column":15,"index":36},"end":{"line":2,"column":18,"index":39},"identifierName":"Foo"},
69 "name": "Foo"
70 },
71 "extra": {
72 "shorthand": true
73 }
74 }
75 ]
76 },
77 "init": {
78 "type": "Identifier",
79 "start":44,"end":47,"loc":{"start":{"line":2,"column":23,"index":44},"end":{"line":2,"column":26,"index":47},"identifierName":"bar"},
80 "name": "bar"
81 }
82 }
83 ],
84 "kind": "const"
85 }
86 }
87 ],
88 "directives": []
89 }
90 }