Debian Codegraph @

packages/babel-parser/test/fixtures/flow/interfaces-module-and-script/3/output.json

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