Debian Codegraph @

packages/babel-parser/test/fixtures/flow/iterator/15/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "InterfaceDeclaration",
12 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
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":52,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":3,"column":1,"index":52}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":16,"end":49,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":35,"index":49}},
30 "key": {
31 "type": "Identifier",
32 "start":16,"end":31,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":17,"index":31},"identifierName":"@@asyncIterator"},
33 "name": "@@asyncIterator"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "init",
38 "method": true,
39 "value": {
40 "type": "FunctionTypeAnnotation",
41 "start":16,"end":49,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":35,"index":49}},
42 "params": [],
43 "rest": null,
44 "typeParameters": null,
45 "this": null,
46 "returnType": {
47 "type": "GenericTypeAnnotation",
48 "start":35,"end":49,"loc":{"start":{"line":2,"column":21,"index":35},"end":{"line":2,"column":35,"index":49}},
49 "typeParameters": {
50 "type": "TypeParameterInstantiation",
51 "start":43,"end":49,"loc":{"start":{"line":2,"column":29,"index":43},"end":{"line":2,"column":35,"index":49}},
52 "params": [
53 {
54 "type": "GenericTypeAnnotation",
55 "start":44,"end":48,"loc":{"start":{"line":2,"column":30,"index":44},"end":{"line":2,"column":34,"index":48}},
56 "typeParameters": null,
57 "id": {
58 "type": "Identifier",
59 "start":44,"end":48,"loc":{"start":{"line":2,"column":30,"index":44},"end":{"line":2,"column":34,"index":48},"identifierName":"File"},
60 "name": "File"
61 }
62 }
63 ]
64 },
65 "id": {
66 "type": "Identifier",
67 "start":35,"end":43,"loc":{"start":{"line":2,"column":21,"index":35},"end":{"line":2,"column":29,"index":43},"identifierName":"Iterator"},
68 "name": "Iterator"
69 }
70 }
71 },
72 "optional": false
73 }
74 ],
75 "indexers": [],
76 "internalSlots": [],
77 "exact": false
78 }
79 }
80 ],
81 "directives": []
82 }
83 }