Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/export-extensions/export-with-ts/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":164,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":27,"index":164}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":164,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":27,"index":164}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExportNamedDeclaration",
12 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
13 "exportKind": "value",
14 "specifiers": [],
15 "source": null,
16 "declaration": {
17 "type": "ClassDeclaration",
18 "start":7,"end":26,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":26,"index":26}},
19 "abstract": true,
20 "id": {
21 "type": "Identifier",
22 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"A"},
23 "name": "A"
24 },
25 "superClass": null,
26 "body": {
27 "type": "ClassBody",
28 "start":24,"end":26,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":26,"index":26}},
29 "body": []
30 }
31 }
32 },
33 {
34 "type": "ExportNamedDeclaration",
35 "start":27,"end":56,"loc":{"start":{"line":2,"column":0,"index":27},"end":{"line":2,"column":29,"index":56}},
36 "exportKind": "type",
37 "specifiers": [],
38 "source": null,
39 "declaration": {
40 "type": "TSInterfaceDeclaration",
41 "start":34,"end":56,"loc":{"start":{"line":2,"column":7,"index":34},"end":{"line":2,"column":29,"index":56}},
42 "id": {
43 "type": "Identifier",
44 "start":52,"end":53,"loc":{"start":{"line":2,"column":25,"index":52},"end":{"line":2,"column":26,"index":53},"identifierName":"B"},
45 "name": "B"
46 },
47 "body": {
48 "type": "TSInterfaceBody",
49 "start":54,"end":56,"loc":{"start":{"line":2,"column":27,"index":54},"end":{"line":2,"column":29,"index":56}},
50 "body": []
51 },
52 "declare": true
53 }
54 },
55 {
56 "type": "ExportNamedDeclaration",
57 "start":57,"end":73,"loc":{"start":{"line":3,"column":0,"index":57},"end":{"line":3,"column":16,"index":73}},
58 "exportKind": "value",
59 "specifiers": [],
60 "source": null,
61 "declaration": {
62 "type": "TSEnumDeclaration",
63 "start":64,"end":73,"loc":{"start":{"line":3,"column":7,"index":64},"end":{"line":3,"column":16,"index":73}},
64 "id": {
65 "type": "Identifier",
66 "start":69,"end":70,"loc":{"start":{"line":3,"column":12,"index":69},"end":{"line":3,"column":13,"index":70},"identifierName":"C"},
67 "name": "C"
68 },
69 "members": []
70 }
71 },
72 {
73 "type": "ExportNamedDeclaration",
74 "start":74,"end":95,"loc":{"start":{"line":4,"column":0,"index":74},"end":{"line":4,"column":21,"index":95}},
75 "exportKind": "type",
76 "specifiers": [],
77 "source": null,
78 "declaration": {
79 "type": "TSInterfaceDeclaration",
80 "start":81,"end":95,"loc":{"start":{"line":4,"column":7,"index":81},"end":{"line":4,"column":21,"index":95}},
81 "id": {
82 "type": "Identifier",
83 "start":91,"end":92,"loc":{"start":{"line":4,"column":17,"index":91},"end":{"line":4,"column":18,"index":92},"identifierName":"D"},
84 "name": "D"
85 },
86 "body": {
87 "type": "TSInterfaceBody",
88 "start":93,"end":95,"loc":{"start":{"line":4,"column":19,"index":93},"end":{"line":4,"column":21,"index":95}},
89 "body": []
90 }
91 }
92 },
93 {
94 "type": "ExportNamedDeclaration",
95 "start":96,"end":114,"loc":{"start":{"line":5,"column":0,"index":96},"end":{"line":5,"column":18,"index":114}},
96 "exportKind": "value",
97 "specifiers": [],
98 "source": null,
99 "declaration": {
100 "type": "TSModuleDeclaration",
101 "start":103,"end":114,"loc":{"start":{"line":5,"column":7,"index":103},"end":{"line":5,"column":18,"index":114}},
102 "id": {
103 "type": "Identifier",
104 "start":110,"end":111,"loc":{"start":{"line":5,"column":14,"index":110},"end":{"line":5,"column":15,"index":111},"identifierName":"E"},
105 "name": "E"
106 },
107 "body": {
108 "type": "TSModuleBlock",
109 "start":112,"end":114,"loc":{"start":{"line":5,"column":16,"index":112},"end":{"line":5,"column":18,"index":114}},
110 "body": []
111 }
112 }
113 },
114 {
115 "type": "ExportNamedDeclaration",
116 "start":115,"end":136,"loc":{"start":{"line":6,"column":0,"index":115},"end":{"line":6,"column":21,"index":136}},
117 "exportKind": "value",
118 "specifiers": [],
119 "source": null,
120 "declaration": {
121 "type": "TSModuleDeclaration",
122 "start":122,"end":136,"loc":{"start":{"line":6,"column":7,"index":122},"end":{"line":6,"column":21,"index":136}},
123 "id": {
124 "type": "Identifier",
125 "start":132,"end":133,"loc":{"start":{"line":6,"column":17,"index":132},"end":{"line":6,"column":18,"index":133},"identifierName":"F"},
126 "name": "F"
127 },
128 "body": {
129 "type": "TSModuleBlock",
130 "start":134,"end":136,"loc":{"start":{"line":6,"column":19,"index":134},"end":{"line":6,"column":21,"index":136}},
131 "body": []
132 }
133 }
134 },
135 {
136 "type": "ExportNamedDeclaration",
137 "start":137,"end":164,"loc":{"start":{"line":7,"column":0,"index":137},"end":{"line":7,"column":27,"index":164}},
138 "exportKind": "type",
139 "specifiers": [],
140 "source": null,
141 "declaration": {
142 "type": "TSTypeAliasDeclaration",
143 "start":144,"end":164,"loc":{"start":{"line":7,"column":7,"index":144},"end":{"line":7,"column":27,"index":164}},
144 "id": {
145 "type": "Identifier",
146 "start":149,"end":150,"loc":{"start":{"line":7,"column":12,"index":149},"end":{"line":7,"column":13,"index":150},"identifierName":"G"},
147 "name": "G"
148 },
149 "typeAnnotation": {
150 "type": "TSTypeQuery",
151 "start":153,"end":163,"loc":{"start":{"line":7,"column":16,"index":153},"end":{"line":7,"column":26,"index":163}},
152 "exprName": {
153 "type": "Identifier",
154 "start":160,"end":163,"loc":{"start":{"line":7,"column":23,"index":160},"end":{"line":7,"column":26,"index":163},"identifierName":"foo"},
155 "name": "foo"
156 }
157 }
158 }
159 }
160 ],
161 "directives": []
162 }
163 }