Debian Codegraph @

packages/babel-parser/test/fixtures/flow/proto-props/declare-class/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":102,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":1,"index":102}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":102,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":1,"index":102}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareClass",
12 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
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":31,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":31}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":20,"end":28,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":10,"index":28}},
30 "key": {
31 "type": "Identifier",
32 "start":20,"end":25,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":7,"index":25},"identifierName":"proto"},
33 "name": "proto"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "init",
38 "method": false,
39 "value": {
40 "type": "GenericTypeAnnotation",
41 "start":27,"end":28,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":10,"index":28}},
42 "typeParameters": null,
43 "id": {
44 "type": "Identifier",
45 "start":27,"end":28,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":10,"index":28},"identifierName":"T"},
46 "name": "T"
47 }
48 },
49 "variance": null,
50 "optional": false
51 }
52 ],
53 "indexers": [],
54 "internalSlots": [],
55 "exact": false
56 }
57 },
58 {
59 "type": "DeclareClass",
60 "start":33,"end":66,"loc":{"start":{"line":5,"column":0,"index":33},"end":{"line":7,"column":1,"index":66}},
61 "id": {
62 "type": "Identifier",
63 "start":47,"end":48,"loc":{"start":{"line":5,"column":14,"index":47},"end":{"line":5,"column":15,"index":48},"identifierName":"B"},
64 "name": "B"
65 },
66 "typeParameters": null,
67 "extends": [],
68 "implements": [],
69 "mixins": [],
70 "body": {
71 "type": "ObjectTypeAnnotation",
72 "start":49,"end":66,"loc":{"start":{"line":5,"column":16,"index":49},"end":{"line":7,"column":1,"index":66}},
73 "callProperties": [],
74 "properties": [
75 {
76 "type": "ObjectTypeProperty",
77 "start":53,"end":63,"loc":{"start":{"line":6,"column":2,"index":53},"end":{"line":6,"column":12,"index":63}},
78 "key": {
79 "type": "Identifier",
80 "start":59,"end":60,"loc":{"start":{"line":6,"column":8,"index":59},"end":{"line":6,"column":9,"index":60},"identifierName":"x"},
81 "name": "x"
82 },
83 "static": false,
84 "proto": true,
85 "kind": "init",
86 "method": false,
87 "value": {
88 "type": "GenericTypeAnnotation",
89 "start":62,"end":63,"loc":{"start":{"line":6,"column":11,"index":62},"end":{"line":6,"column":12,"index":63}},
90 "typeParameters": null,
91 "id": {
92 "type": "Identifier",
93 "start":62,"end":63,"loc":{"start":{"line":6,"column":11,"index":62},"end":{"line":6,"column":12,"index":63},"identifierName":"T"},
94 "name": "T"
95 }
96 },
97 "variance": null,
98 "optional": false
99 }
100 ],
101 "indexers": [],
102 "internalSlots": [],
103 "exact": false
104 }
105 },
106 {
107 "type": "DeclareClass",
108 "start":68,"end":102,"loc":{"start":{"line":9,"column":0,"index":68},"end":{"line":11,"column":1,"index":102}},
109 "id": {
110 "type": "Identifier",
111 "start":82,"end":83,"loc":{"start":{"line":9,"column":14,"index":82},"end":{"line":9,"column":15,"index":83},"identifierName":"C"},
112 "name": "C"
113 },
114 "typeParameters": null,
115 "extends": [],
116 "implements": [],
117 "mixins": [],
118 "body": {
119 "type": "ObjectTypeAnnotation",
120 "start":84,"end":102,"loc":{"start":{"line":9,"column":16,"index":84},"end":{"line":11,"column":1,"index":102}},
121 "callProperties": [],
122 "properties": [
123 {
124 "type": "ObjectTypeProperty",
125 "start":88,"end":99,"loc":{"start":{"line":10,"column":2,"index":88},"end":{"line":10,"column":13,"index":99}},
126 "key": {
127 "type": "Identifier",
128 "start":95,"end":96,"loc":{"start":{"line":10,"column":9,"index":95},"end":{"line":10,"column":10,"index":96},"identifierName":"x"},
129 "name": "x"
130 },
131 "static": false,
132 "proto": true,
133 "kind": "init",
134 "method": false,
135 "value": {
136 "type": "GenericTypeAnnotation",
137 "start":98,"end":99,"loc":{"start":{"line":10,"column":12,"index":98},"end":{"line":10,"column":13,"index":99}},
138 "typeParameters": null,
139 "id": {
140 "type": "Identifier",
141 "start":98,"end":99,"loc":{"start":{"line":10,"column":12,"index":98},"end":{"line":10,"column":13,"index":99},"identifierName":"T"},
142 "name": "T"
143 }
144 },
145 "variance": {
146 "type": "Variance",
147 "start":94,"end":95,"loc":{"start":{"line":10,"column":8,"index":94},"end":{"line":10,"column":9,"index":95}},
148 "kind": "plus"
149 },
150 "optional": false
151 }
152 ],
153 "indexers": [],
154 "internalSlots": [],
155 "exact": false
156 }
157 }
158 ],
159 "directives": []
160 }
161 }