Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-statements/18/output.json

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