Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":26,"index":54}},
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":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":26,"index":54}},
11 "sourceType": "module",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExportNamedDeclaration",
16 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
17 "specifiers": [],
18 "source": null,
19 "declaration": {
20 "type": "VariableDeclaration",
21 "start":7,"end":27,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":27,"index":27}},
22 "declarations": [
23 {
24 "type": "VariableDeclarator",
25 "start":13,"end":26,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":26,"index":26}},
26 "id": {
27 "type": "ObjectPattern",
28 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20}},
29 "properties": [
30 {
31 "type": "ObjectProperty",
32 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18}},
33 "key": {
34 "type": "Identifier",
35 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"},
36 "name": "foo"
37 },
38 "computed": false,
39 "method": false,
40 "shorthand": true,
41 "value": {
42 "type": "Identifier",
43 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"},
44 "name": "foo"
45 },
46 "extra": {
47 "shorthand": true
48 }
49 }
50 ]
51 },
52 "init": {
53 "type": "Identifier",
54 "start":23,"end":26,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":26,"index":26},"identifierName":"bar"},
55 "name": "bar"
56 }
57 }
58 ],
59 "kind": "const"
60 }
61 },
62 {
63 "type": "ExportNamedDeclaration",
64 "start":28,"end":54,"loc":{"start":{"line":2,"column":0,"index":28},"end":{"line":2,"column":26,"index":54}},
65 "specifiers": [],
66 "source": null,
67 "declaration": {
68 "type": "VariableDeclaration",
69 "start":35,"end":54,"loc":{"start":{"line":2,"column":7,"index":35},"end":{"line":2,"column":26,"index":54}},
70 "declarations": [
71 {
72 "type": "VariableDeclarator",
73 "start":41,"end":53,"loc":{"start":{"line":2,"column":13,"index":41},"end":{"line":2,"column":25,"index":53}},
74 "id": {
75 "type": "ArrayPattern",
76 "start":41,"end":46,"loc":{"start":{"line":2,"column":13,"index":41},"end":{"line":2,"column":18,"index":46}},
77 "elements": [
78 {
79 "type": "Identifier",
80 "start":42,"end":45,"loc":{"start":{"line":2,"column":14,"index":42},"end":{"line":2,"column":17,"index":45},"identifierName":"foo"},
81 "name": "foo"
82 }
83 ]
84 },
85 "init": {
86 "type": "Identifier",
87 "start":49,"end":53,"loc":{"start":{"line":2,"column":21,"index":49},"end":{"line":2,"column":25,"index":53},"identifierName":"bar2"},
88 "name": "bar2"
89 }
90 }
91 ],
92 "kind": "const"
93 }
94 }
95 ],
96 "directives": []
97 }
98 }