Debian Codegraph @

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

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