Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":65,"index":65}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":65,"index":65}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "InterfaceDeclaration",
12 "start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":65,"index":65}},
13 "id": {
14 "type": "Identifier",
15 "start":10,"end":20,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":20,"index":20},"identifierName":"Dictionary"},
16 "name": "Dictionary"
17 },
18 "typeParameters": null,
19 "extends": [],
20 "implements": [],
21 "mixins": [],
22 "body": {
23 "type": "ObjectTypeAnnotation",
24 "start":21,"end":65,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":65,"index":65}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":48,"end":62,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":62,"index":62}},
30 "key": {
31 "type": "Identifier",
32 "start":48,"end":54,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":54,"index":54},"identifierName":"length"},
33 "name": "length"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "init",
38 "method": false,
39 "value": {
40 "type": "NumberTypeAnnotation",
41 "start":56,"end":62,"loc":{"start":{"line":1,"column":56,"index":56},"end":{"line":1,"column":62,"index":62}}
42 },
43 "variance": null,
44 "optional": false
45 }
46 ],
47 "indexers": [
48 {
49 "type": "ObjectTypeIndexer",
50 "start":23,"end":46,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":46,"index":46}},
51 "static": false,
52 "id": {
53 "type": "Identifier",
54 "start":24,"end":29,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":29,"index":29},"identifierName":"index"},
55 "name": "index"
56 },
57 "key": {
58 "type": "StringTypeAnnotation",
59 "start":31,"end":37,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":37,"index":37}}
60 },
61 "value": {
62 "type": "StringTypeAnnotation",
63 "start":40,"end":46,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":46,"index":46}}
64 },
65 "variance": null
66 }
67 ],
68 "internalSlots": [],
69 "exact": false
70 }
71 }
72 ],
73 "directives": []
74 }
75 }