Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-export/export-interface/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
13 "id": {
14 "type": "StringLiteral",
15 "start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}},
16 "extra": {
17 "rawValue": "foo",
18 "raw": "\"foo\""
19 },
20 "value": "foo"
21 },
22 "body": {
23 "type": "BlockStatement",
24 "start":21,"end":56,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":56,"index":56}},
25 "body": [
26 {
27 "type": "DeclareExportDeclaration",
28 "start":23,"end":54,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":54,"index":54}},
29 "specifiers": [],
30 "source": null,
31 "declaration": {
32 "type": "InterfaceDeclaration",
33 "start":38,"end":54,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":1,"column":54,"index":54}},
34 "id": {
35 "type": "Identifier",
36 "start":48,"end":51,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":51,"index":51},"identifierName":"bar"},
37 "name": "bar"
38 },
39 "typeParameters": null,
40 "extends": [],
41 "implements": [],
42 "mixins": [],
43 "body": {
44 "type": "ObjectTypeAnnotation",
45 "start":52,"end":54,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":54,"index":54}},
46 "callProperties": [],
47 "properties": [],
48 "indexers": [],
49 "internalSlots": [],
50 "exact": false
51 }
52 },
53 "default": false
54 }
55 ]
56 },
57 "kind": "CommonJS"
58 }
59 ],
60 "directives": []
61 }
62 }