Debian Codegraph @

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

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