Debian Codegraph @

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

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