Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-duplicated-exports-in-blocks/output.json

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