Debian Codegraph @

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

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