Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":88,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":88,"index":88}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":88,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":88,"index":88}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":88,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":88,"index":88}},
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":88,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":88,"index":88}},
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 "type": "DeclareExportDeclaration",
57 "start":55,"end":86,"loc":{"start":{"line":1,"column":55,"index":55},"end":{"line":1,"column":86,"index":86}},
58 "declaration": {
59 "type": "DeclareVariable",
60 "start":70,"end":86,"loc":{"start":{"line":1,"column":70,"index":70},"end":{"line":1,"column":86,"index":86}},
61 "id": {
62 "type": "Identifier",
63 "start":74,"end":85,"loc":{"start":{"line":1,"column":74,"index":74},"end":{"line":1,"column":85,"index":85},"identifierName":"baz"},
64 "name": "baz",
65 "typeAnnotation": {
66 "type": "TypeAnnotation",
67 "start":77,"end":85,"loc":{"start":{"line":1,"column":77,"index":77},"end":{"line":1,"column":85,"index":85}},
68 "typeAnnotation": {
69 "type": "NumberTypeAnnotation",
70 "start":79,"end":85,"loc":{"start":{"line":1,"column":79,"index":79},"end":{"line":1,"column":85,"index":85}}
71 }
72 }
73 }
74 },
75 "default": false
76 }
77 ]
78 },
79 "kind": "ES"
80 }
81 ],
82 "directives": []
83 }
84 }