Debian Codegraph @

packages/babel-parser/test/fixtures/flow/classes/good_01/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"},
16 "name": "C"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":24,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":24,"index":24}},
22 "body": [
23 {
24 "type": "ClassProperty",
25 "start":10,"end":22,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":22,"index":22}},
26 "static": false,
27 "variance": null,
28 "key": {
29 "type": "Identifier",
30 "start":10,"end":15,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":15,"index":15},"identifierName":"field"},
31 "name": "field"
32 },
33 "computed": false,
34 "typeAnnotation": {
35 "type": "TypeAnnotation",
36 "start":15,"end":17,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":17,"index":17}},
37 "typeAnnotation": {
38 "type": "ExistsTypeAnnotation",
39 "start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17}}
40 }
41 },
42 "value": {
43 "type": "NullLiteral",
44 "start":18,"end":22,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":22,"index":22}}
45 }
46 }
47 ]
48 }
49 }
50 ],
51 "directives": []
52 }
53 }