Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":56}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":56}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareClass",
12 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":56}},
13 "id": {
14 "type": "Identifier",
15 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"A"},
16 "name": "A"
17 },
18 "typeParameters": null,
19 "extends": [],
20 "implements": [],
21 "mixins": [],
22 "body": {
23 "type": "ObjectTypeAnnotation",
24 "start":16,"end":56,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":56}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":20,"end":53,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":35,"index":53}},
30 "key": {
31 "type": "Identifier",
32 "start":20,"end":35,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":17,"index":35},"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":20,"end":53,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":35,"index":53}},
42 "params": [],
43 "rest": null,
44 "typeParameters": null,
45 "this": null,
46 "returnType": {
47 "type": "GenericTypeAnnotation",
48 "start":39,"end":53,"loc":{"start":{"line":2,"column":21,"index":39},"end":{"line":2,"column":35,"index":53}},
49 "typeParameters": {
50 "type": "TypeParameterInstantiation",
51 "start":47,"end":53,"loc":{"start":{"line":2,"column":29,"index":47},"end":{"line":2,"column":35,"index":53}},
52 "params": [
53 {
54 "type": "GenericTypeAnnotation",
55 "start":48,"end":52,"loc":{"start":{"line":2,"column":30,"index":48},"end":{"line":2,"column":34,"index":52}},
56 "typeParameters": null,
57 "id": {
58 "type": "Identifier",
59 "start":48,"end":52,"loc":{"start":{"line":2,"column":30,"index":48},"end":{"line":2,"column":34,"index":52},"identifierName":"File"},
60 "name": "File"
61 }
62 }
63 ]
64 },
65 "id": {
66 "type": "Identifier",
67 "start":39,"end":47,"loc":{"start":{"line":2,"column":21,"index":39},"end":{"line":2,"column":29,"index":47},"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 }