Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":41}},
4 "errors": [
5 "SyntaxError: `foo` has already been exported. Exported identifiers must be unique. (2:0)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":41}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExportNamedDeclaration",
15 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
16 "specifiers": [
17 {
18 "type": "ExportSpecifier",
19 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12}},
20 "local": {
21 "type": "Identifier",
22 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
23 "name": "foo"
24 },
25 "exported": {
26 "type": "Identifier",
27 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
28 "name": "foo"
29 }
30 }
31 ],
32 "source": null,
33 "declaration": null
34 },
35 {
36 "type": "ExportNamedDeclaration",
37 "start":16,"end":40,"loc":{"start":{"line":2,"column":0,"index":16},"end":{"line":2,"column":24,"index":40}},
38 "specifiers": [],
39 "source": null,
40 "declaration": {
41 "type": "FunctionDeclaration",
42 "start":23,"end":40,"loc":{"start":{"line":2,"column":7,"index":23},"end":{"line":2,"column":24,"index":40}},
43 "id": {
44 "type": "Identifier",
45 "start":32,"end":35,"loc":{"start":{"line":2,"column":16,"index":32},"end":{"line":2,"column":19,"index":35},"identifierName":"foo"},
46 "name": "foo"
47 },
48 "generator": false,
49 "async": false,
50 "params": [],
51 "body": {
52 "type": "BlockStatement",
53 "start":38,"end":40,"loc":{"start":{"line":2,"column":22,"index":38},"end":{"line":2,"column":24,"index":40}},
54 "body": [],
55 "directives": []
56 }
57 }
58 },
59 {
60 "type": "EmptyStatement",
61 "start":40,"end":41,"loc":{"start":{"line":2,"column":24,"index":40},"end":{"line":2,"column":25,"index":41}}
62 }
63 ],
64 "directives": []
65 }
66 }