Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-module/10/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModuleExports",
12 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}},
13 "typeAnnotation": {
14 "type": "TypeAnnotation",
15 "start":22,"end":42,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":42,"index":42}},
16 "typeAnnotation": {
17 "type": "ObjectTypeAnnotation",
18 "start":24,"end":42,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":42,"index":42}},
19 "callProperties": [],
20 "properties": [
21 {
22 "type": "ObjectTypeProperty",
23 "start":26,"end":39,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":39,"index":39}},
24 "key": {
25 "type": "Identifier",
26 "start":26,"end":29,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":29,"index":29},"identifierName":"foo"},
27 "name": "foo"
28 },
29 "static": false,
30 "proto": false,
31 "kind": "init",
32 "method": true,
33 "value": {
34 "type": "FunctionTypeAnnotation",
35 "start":26,"end":39,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":39,"index":39}},
36 "params": [],
37 "rest": null,
38 "typeParameters": null,
39 "this": null,
40 "returnType": {
41 "type": "NumberTypeAnnotation",
42 "start":33,"end":39,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":39,"index":39}}
43 }
44 },
45 "optional": false
46 }
47 ],
48 "indexers": [],
49 "internalSlots": [],
50 "exact": false,
51 "inexact": false
52 }
53 }
54 }
55 ],
56 "directives": []
57 }
58 }