Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":51}},
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":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":51}},
11 "sourceType": "module",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExportNamedDeclaration",
16 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
17 "specifiers": [],
18 "source": null,
19 "declaration": {
20 "type": "FunctionDeclaration",
21 "start":7,"end":24,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":24,"index":24}},
22 "id": {
23 "type": "Identifier",
24 "start":16,"end":19,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":19,"index":19},"identifierName":"foo"},
25 "name": "foo"
26 },
27 "generator": false,
28 "async": false,
29 "params": [],
30 "body": {
31 "type": "BlockStatement",
32 "start":22,"end":24,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":24,"index":24}},
33 "body": [],
34 "directives": []
35 }
36 }
37 },
38 {
39 "type": "EmptyStatement",
40 "start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25}}
41 },
42 {
43 "type": "ExportNamedDeclaration",
44 "start":26,"end":51,"loc":{"start":{"line":2,"column":0,"index":26},"end":{"line":2,"column":25,"index":51}},
45 "specifiers": [],
46 "source": null,
47 "declaration": {
48 "type": "VariableDeclaration",
49 "start":33,"end":51,"loc":{"start":{"line":2,"column":7,"index":33},"end":{"line":2,"column":25,"index":51}},
50 "declarations": [
51 {
52 "type": "VariableDeclarator",
53 "start":39,"end":50,"loc":{"start":{"line":2,"column":13,"index":39},"end":{"line":2,"column":24,"index":50}},
54 "id": {
55 "type": "ArrayPattern",
56 "start":39,"end":44,"loc":{"start":{"line":2,"column":13,"index":39},"end":{"line":2,"column":18,"index":44}},
57 "elements": [
58 {
59 "type": "Identifier",
60 "start":40,"end":43,"loc":{"start":{"line":2,"column":14,"index":40},"end":{"line":2,"column":17,"index":43},"identifierName":"foo"},
61 "name": "foo"
62 }
63 ]
64 },
65 "init": {
66 "type": "Identifier",
67 "start":47,"end":50,"loc":{"start":{"line":2,"column":21,"index":47},"end":{"line":2,"column":24,"index":50},"identifierName":"bar"},
68 "name": "bar"
69 }
70 }
71 ],
72 "kind": "const"
73 }
74 }
75 ],
76 "directives": []
77 }
78 }