Debian Codegraph @

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

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