Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
13 "id": {
14 "type": "Identifier",
15 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"A"},
16 "name": "A"
17 },
18 "body": {
19 "type": "BlockStatement",
20 "start":17,"end":55,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":55,"index":55}},
21 "body": [
22 {
23 "type": "DeclareClass",
24 "start":19,"end":53,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":53,"index":53}},
25 "id": {
26 "type": "Identifier",
27 "start":33,"end":34,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":34,"index":34},"identifierName":"B"},
28 "name": "B"
29 },
30 "typeParameters": null,
31 "extends": [],
32 "implements": [],
33 "mixins": [],
34 "body": {
35 "type": "ObjectTypeAnnotation",
36 "start":35,"end":53,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":53,"index":53}},
37 "callProperties": [],
38 "properties": [
39 {
40 "type": "ObjectTypeProperty",
41 "start":37,"end":50,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":50,"index":50}},
42 "key": {
43 "type": "Identifier",
44 "start":37,"end":40,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":40,"index":40},"identifierName":"foo"},
45 "name": "foo"
46 },
47 "static": false,
48 "proto": false,
49 "kind": "init",
50 "method": true,
51 "value": {
52 "type": "FunctionTypeAnnotation",
53 "start":37,"end":50,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":50,"index":50}},
54 "params": [],
55 "rest": null,
56 "typeParameters": null,
57 "this": null,
58 "returnType": {
59 "type": "NumberTypeAnnotation",
60 "start":44,"end":50,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":50,"index":50}}
61 }
62 },
63 "optional": false
64 }
65 ],
66 "indexers": [],
67 "internalSlots": [],
68 "exact": false
69 }
70 }
71 ]
72 },
73 "kind": "CommonJS"
74 }
75 ],
76 "directives": []
77 }
78 }