Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":88,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":88,"index":88}},
4 "errors": [
5 "SyntaxError: Duplicate `declare module.exports` statement. (1:55)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":88,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":88,"index":88}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "DeclareModule",
15 "start":0,"end":88,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":88,"index":88}},
16 "id": {
17 "type": "StringLiteral",
18 "start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}},
19 "extra": {
20 "rawValue": "foo",
21 "raw": "\"foo\""
22 },
23 "value": "foo"
24 },
25 "body": {
26 "type": "BlockStatement",
27 "start":21,"end":88,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":88,"index":88}},
28 "body": [
29 {
30 "type": "DeclareModuleExports",
31 "start":23,"end":54,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":54,"index":54}},
32 "typeAnnotation": {
33 "type": "TypeAnnotation",
34 "start":45,"end":53,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":53,"index":53}},
35 "typeAnnotation": {
36 "type": "StringTypeAnnotation",
37 "start":47,"end":53,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":53,"index":53}}
38 }
39 }
40 },
41 {
42 "type": "DeclareModuleExports",
43 "start":55,"end":86,"loc":{"start":{"line":1,"column":55,"index":55},"end":{"line":1,"column":86,"index":86}},
44 "typeAnnotation": {
45 "type": "TypeAnnotation",
46 "start":77,"end":85,"loc":{"start":{"line":1,"column":77,"index":77},"end":{"line":1,"column":85,"index":85}},
47 "typeAnnotation": {
48 "type": "NumberTypeAnnotation",
49 "start":79,"end":85,"loc":{"start":{"line":1,"column":79,"index":79},"end":{"line":1,"column":85,"index":85}}
50 }
51 }
52 }
53 ]
54 },
55 "kind": "CommonJS"
56 }
57 ],
58 "directives": []
59 }
60 }