Debian Codegraph @

packages/babel-parser/test/fixtures/es2018/async-generators/object-method/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":133,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":2,"index":133}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":133,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":2,"index":133}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":133,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":2,"index":133}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":132,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":7,"column":1,"index":132}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11},"identifierName":"query"},
20 "name": "query"
21 },
22 "init": {
23 "type": "ObjectExpression",
24 "start":14,"end":132,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":7,"column":1,"index":132}},
25 "properties": [
26 {
27 "type": "ObjectMethod",
28 "start":20,"end":130,"loc":{"start":{"line":2,"column":4,"index":20},"end":{"line":6,"column":5,"index":130}},
29 "method": true,
30 "key": {
31 "type": "Identifier",
32 "start":27,"end":35,"loc":{"start":{"line":2,"column":11,"index":27},"end":{"line":2,"column":19,"index":35},"identifierName":"queryAll"},
33 "name": "queryAll"
34 },
35 "computed": false,
36 "kind": "method",
37 "id": null,
38 "generator": true,
39 "async": true,
40 "params": [
41 {
42 "type": "Identifier",
43 "start":36,"end":39,"loc":{"start":{"line":2,"column":20,"index":36},"end":{"line":2,"column":23,"index":39},"identifierName":"ids"},
44 "name": "ids"
45 }
46 ],
47 "body": {
48 "type": "BlockStatement",
49 "start":41,"end":130,"loc":{"start":{"line":2,"column":25,"index":41},"end":{"line":6,"column":5,"index":130}},
50 "body": [
51 {
52 "type": "ForOfStatement",
53 "start":51,"end":124,"loc":{"start":{"line":3,"column":8,"index":51},"end":{"line":5,"column":9,"index":124}},
54 "await": false,
55 "left": {
56 "type": "VariableDeclaration",
57 "start":56,"end":64,"loc":{"start":{"line":3,"column":13,"index":56},"end":{"line":3,"column":21,"index":64}},
58 "declarations": [
59 {
60 "type": "VariableDeclarator",
61 "start":62,"end":64,"loc":{"start":{"line":3,"column":19,"index":62},"end":{"line":3,"column":21,"index":64}},
62 "id": {
63 "type": "Identifier",
64 "start":62,"end":64,"loc":{"start":{"line":3,"column":19,"index":62},"end":{"line":3,"column":21,"index":64},"identifierName":"id"},
65 "name": "id"
66 },
67 "init": null
68 }
69 ],
70 "kind": "const"
71 },
72 "right": {
73 "type": "Identifier",
74 "start":68,"end":71,"loc":{"start":{"line":3,"column":25,"index":68},"end":{"line":3,"column":28,"index":71},"identifierName":"ids"},
75 "name": "ids"
76 },
77 "body": {
78 "type": "BlockStatement",
79 "start":73,"end":124,"loc":{"start":{"line":3,"column":30,"index":73},"end":{"line":5,"column":9,"index":124}},
80 "body": [
81 {
82 "type": "ExpressionStatement",
83 "start":87,"end":114,"loc":{"start":{"line":4,"column":12,"index":87},"end":{"line":4,"column":39,"index":114}},
84 "expression": {
85 "type": "YieldExpression",
86 "start":87,"end":113,"loc":{"start":{"line":4,"column":12,"index":87},"end":{"line":4,"column":38,"index":113}},
87 "delegate": false,
88 "argument": {
89 "type": "AwaitExpression",
90 "start":93,"end":113,"loc":{"start":{"line":4,"column":18,"index":93},"end":{"line":4,"column":38,"index":113}},
91 "argument": {
92 "type": "CallExpression",
93 "start":99,"end":113,"loc":{"start":{"line":4,"column":24,"index":99},"end":{"line":4,"column":38,"index":113}},
94 "callee": {
95 "type": "MemberExpression",
96 "start":99,"end":109,"loc":{"start":{"line":4,"column":24,"index":99},"end":{"line":4,"column":34,"index":109}},
97 "object": {
98 "type": "ThisExpression",
99 "start":99,"end":103,"loc":{"start":{"line":4,"column":24,"index":99},"end":{"line":4,"column":28,"index":103}}
100 },
101 "computed": false,
102 "property": {
103 "type": "Identifier",
104 "start":104,"end":109,"loc":{"start":{"line":4,"column":29,"index":104},"end":{"line":4,"column":34,"index":109},"identifierName":"query"},
105 "name": "query"
106 }
107 },
108 "arguments": [
109 {
110 "type": "Identifier",
111 "start":110,"end":112,"loc":{"start":{"line":4,"column":35,"index":110},"end":{"line":4,"column":37,"index":112},"identifierName":"id"},
112 "name": "id"
113 }
114 ]
115 }
116 }
117 }
118 }
119 ],
120 "directives": []
121 }
122 }
123 ],
124 "directives": []
125 }
126 }
127 ]
128 }
129 }
130 ],
131 "kind": "const"
132 }
133 ],
134 "directives": []
135 }
136 }