Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-module/invalid-module-in-module/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
4 "errors": [
5 "SyntaxError: `declare module` cannot be used inside another `declare module`. (1:27)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "DeclareModule",
15 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
16 "id": {
17 "type": "Identifier",
18 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"A"},
19 "name": "A"
20 },
21 "body": {
22 "type": "BlockStatement",
23 "start":17,"end":40,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":40,"index":40}},
24 "body": [
25 {
26 "type": "DeclareModule",
27 "start":19,"end":38,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":38,"index":38}},
28 "id": {
29 "type": "Identifier",
30 "start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35},"identifierName":"B"},
31 "name": "B"
32 },
33 "body": {
34 "type": "BlockStatement",
35 "start":36,"end":38,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":38,"index":38}},
36 "body": []
37 },
38 "kind": "CommonJS"
39 }
40 ]
41 },
42 "kind": "CommonJS"
43 }
44 ],
45 "directives": []
46 }
47 }