Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-blocks/valid-duplicated-exports-between-other-modules/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":121,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":47,"index":121}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":121,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":47,"index":121}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExportNamedDeclaration",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
13 "specifiers": [],
14 "source": null,
15 "declaration": {
16 "type": "VariableDeclaration",
17 "start":7,"end":25,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":25,"index":25}},
18 "declarations": [
19 {
20 "type": "VariableDeclarator",
21 "start":13,"end":24,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":24,"index":24}},
22 "id": {
23 "type": "Identifier",
24 "start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16},"identifierName":"foo"},
25 "name": "foo"
26 },
27 "init": {
28 "type": "StringLiteral",
29 "start":19,"end":24,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":24,"index":24}},
30 "extra": {
31 "rawValue": "foo",
32 "raw": "\"foo\""
33 },
34 "value": "foo"
35 }
36 }
37 ],
38 "kind": "const"
39 }
40 },
41 {
42 "type": "VariableDeclaration",
43 "start":26,"end":73,"loc":{"start":{"line":2,"column":0,"index":26},"end":{"line":2,"column":47,"index":73}},
44 "declarations": [
45 {
46 "type": "VariableDeclarator",
47 "start":32,"end":72,"loc":{"start":{"line":2,"column":6,"index":32},"end":{"line":2,"column":46,"index":72}},
48 "id": {
49 "type": "Identifier",
50 "start":32,"end":34,"loc":{"start":{"line":2,"column":6,"index":32},"end":{"line":2,"column":8,"index":34},"identifierName":"m1"},
51 "name": "m1"
52 },
53 "init": {
54 "type": "ModuleExpression",
55 "start":37,"end":72,"loc":{"start":{"line":2,"column":11,"index":37},"end":{"line":2,"column":46,"index":72}},
56 "body": {
57 "type": "Program",
58 "start":45,"end":71,"loc":{"start":{"line":2,"column":19,"index":45},"end":{"line":2,"column":45,"index":71}},
59 "sourceType": "module",
60 "interpreter": null,
61 "body": [
62 {
63 "type": "ExportNamedDeclaration",
64 "start":46,"end":70,"loc":{"start":{"line":2,"column":20,"index":46},"end":{"line":2,"column":44,"index":70}},
65 "specifiers": [],
66 "source": null,
67 "declaration": {
68 "type": "VariableDeclaration",
69 "start":53,"end":70,"loc":{"start":{"line":2,"column":27,"index":53},"end":{"line":2,"column":44,"index":70}},
70 "declarations": [
71 {
72 "type": "VariableDeclarator",
73 "start":59,"end":70,"loc":{"start":{"line":2,"column":33,"index":59},"end":{"line":2,"column":44,"index":70}},
74 "id": {
75 "type": "Identifier",
76 "start":59,"end":62,"loc":{"start":{"line":2,"column":33,"index":59},"end":{"line":2,"column":36,"index":62},"identifierName":"foo"},
77 "name": "foo"
78 },
79 "init": {
80 "type": "StringLiteral",
81 "start":65,"end":70,"loc":{"start":{"line":2,"column":39,"index":65},"end":{"line":2,"column":44,"index":70}},
82 "extra": {
83 "rawValue": "foo",
84 "raw": "\"foo\""
85 },
86 "value": "foo"
87 }
88 }
89 ],
90 "kind": "const"
91 }
92 }
93 ],
94 "directives": []
95 }
96 }
97 }
98 ],
99 "kind": "const"
100 },
101 {
102 "type": "VariableDeclaration",
103 "start":74,"end":121,"loc":{"start":{"line":3,"column":0,"index":74},"end":{"line":3,"column":47,"index":121}},
104 "declarations": [
105 {
106 "type": "VariableDeclarator",
107 "start":80,"end":120,"loc":{"start":{"line":3,"column":6,"index":80},"end":{"line":3,"column":46,"index":120}},
108 "id": {
109 "type": "Identifier",
110 "start":80,"end":82,"loc":{"start":{"line":3,"column":6,"index":80},"end":{"line":3,"column":8,"index":82},"identifierName":"m2"},
111 "name": "m2"
112 },
113 "init": {
114 "type": "ModuleExpression",
115 "start":85,"end":120,"loc":{"start":{"line":3,"column":11,"index":85},"end":{"line":3,"column":46,"index":120}},
116 "body": {
117 "type": "Program",
118 "start":93,"end":119,"loc":{"start":{"line":3,"column":19,"index":93},"end":{"line":3,"column":45,"index":119}},
119 "sourceType": "module",
120 "interpreter": null,
121 "body": [
122 {
123 "type": "ExportNamedDeclaration",
124 "start":94,"end":118,"loc":{"start":{"line":3,"column":20,"index":94},"end":{"line":3,"column":44,"index":118}},
125 "specifiers": [],
126 "source": null,
127 "declaration": {
128 "type": "VariableDeclaration",
129 "start":101,"end":118,"loc":{"start":{"line":3,"column":27,"index":101},"end":{"line":3,"column":44,"index":118}},
130 "declarations": [
131 {
132 "type": "VariableDeclarator",
133 "start":107,"end":118,"loc":{"start":{"line":3,"column":33,"index":107},"end":{"line":3,"column":44,"index":118}},
134 "id": {
135 "type": "Identifier",
136 "start":107,"end":110,"loc":{"start":{"line":3,"column":33,"index":107},"end":{"line":3,"column":36,"index":110},"identifierName":"foo"},
137 "name": "foo"
138 },
139 "init": {
140 "type": "StringLiteral",
141 "start":113,"end":118,"loc":{"start":{"line":3,"column":39,"index":113},"end":{"line":3,"column":44,"index":118}},
142 "extra": {
143 "rawValue": "foo",
144 "raw": "\"foo\""
145 },
146 "value": "foo"
147 }
148 }
149 ],
150 "kind": "const"
151 }
152 }
153 ],
154 "directives": []
155 }
156 }
157 }
158 ],
159 "kind": "const"
160 }
161 ],
162 "directives": []
163 }
164 }