Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":72,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":72}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":72,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":72}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":72,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":72}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
16 "name": "foo"
17 },
18 "generator": false,
19 "async": false,
20 "params": [],
21 "predicate": null,
22 "returnType": {
23 "type": "TypeAnnotation",
24 "start":14,"end":49,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":49,"index":49}},
25 "typeAnnotation": {
26 "type": "ObjectTypeAnnotation",
27 "start":16,"end":49,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":49,"index":49}},
28 "callProperties": [],
29 "properties": [
30 {
31 "type": "ObjectTypeProperty",
32 "start":18,"end":47,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":47,"index":47}},
33 "key": {
34 "type": "Identifier",
35 "start":18,"end":33,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":33,"index":33},"identifierName":"@@asyncIterator"},
36 "name": "@@asyncIterator"
37 },
38 "static": false,
39 "proto": false,
40 "kind": "init",
41 "method": false,
42 "value": {
43 "type": "FunctionTypeAnnotation",
44 "start":35,"end":47,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":47,"index":47}},
45 "params": [],
46 "rest": null,
47 "this": null,
48 "returnType": {
49 "type": "StringTypeAnnotation",
50 "start":41,"end":47,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":47,"index":47}}
51 },
52 "typeParameters": null
53 },
54 "variance": null,
55 "optional": false
56 }
57 ],
58 "indexers": [],
59 "internalSlots": [],
60 "exact": false,
61 "inexact": false
62 }
63 },
64 "body": {
65 "type": "BlockStatement",
66 "start":50,"end":72,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":3,"column":1,"index":72}},
67 "body": [
68 {
69 "type": "ReturnStatement",
70 "start":54,"end":70,"loc":{"start":{"line":2,"column":2,"index":54},"end":{"line":2,"column":18,"index":70}},
71 "argument": {
72 "type": "TypeCastExpression",
73 "start":62,"end":68,"loc":{"start":{"line":2,"column":10,"index":62},"end":{"line":2,"column":16,"index":68}},
74 "expression": {
75 "type": "NumericLiteral",
76 "start":62,"end":63,"loc":{"start":{"line":2,"column":10,"index":62},"end":{"line":2,"column":11,"index":63}},
77 "extra": {
78 "rawValue": 0,
79 "raw": "0"
80 },
81 "value": 0
82 },
83 "typeAnnotation": {
84 "type": "TypeAnnotation",
85 "start":63,"end":68,"loc":{"start":{"line":2,"column":11,"index":63},"end":{"line":2,"column":16,"index":68}},
86 "typeAnnotation": {
87 "type": "AnyTypeAnnotation",
88 "start":65,"end":68,"loc":{"start":{"line":2,"column":13,"index":65},"end":{"line":2,"column":16,"index":68}}
89 }
90 },
91 "extra": {
92 "parenthesized": true,
93 "parenStart": 61
94 }
95 }
96 }
97 ],
98 "directives": []
99 }
100 }
101 ],
102 "directives": []
103 }
104 }