Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/object-method-async-generator/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":117,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":117}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":117,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":117}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":117,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":29,"index":117}},
13 "expression": {
14 "type": "CallExpression",
15 "start":0,"end":116,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":28,"index":116}},
16 "callee": {
17 "type": "ObjectExpression",
18 "start":1,"end":86,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":86,"index":86}},
19 "properties": [
20 {
21 "type": "ObjectMethod",
22 "start":11,"end":84,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":84,"index":84}},
23 "method": true,
24 "key": {
25 "type": "Identifier",
26 "start":35,"end":36,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":36,"index":36},"identifierName":"f"},
27 "name": "f",
28 "trailingComments": [
29 {
30 "type": "CommentBlock",
31 "value": " 4 ",
32 "start":37,"end":44,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":44,"index":44}}
33 }
34 ],
35 "leadingComments": [
36 {
37 "type": "CommentBlock",
38 "value": " 3 ",
39 "start":27,"end":34,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":34,"index":34}}
40 }
41 ]
42 },
43 "computed": false,
44 "kind": "method",
45 "id": null,
46 "generator": true,
47 "async": true,
48 "params": [
49 {
50 "type": "Identifier",
51 "start":54,"end":55,"loc":{"start":{"line":1,"column":54,"index":54},"end":{"line":1,"column":55,"index":55},"identifierName":"a"},
52 "name": "a",
53 "trailingComments": [
54 {
55 "type": "CommentBlock",
56 "value": " 6 ",
57 "start":56,"end":63,"loc":{"start":{"line":1,"column":56,"index":56},"end":{"line":1,"column":63,"index":63}}
58 },
59 {
60 "type": "CommentBlock",
61 "value": " 7 ",
62 "start":65,"end":72,"loc":{"start":{"line":1,"column":65,"index":65},"end":{"line":1,"column":72,"index":72}}
63 }
64 ],
65 "leadingComments": [
66 {
67 "type": "CommentBlock",
68 "value": " 5 ",
69 "start":46,"end":53,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":53,"index":53}}
70 }
71 ]
72 }
73 ],
74 "body": {
75 "type": "BlockStatement",
76 "start":82,"end":84,"loc":{"start":{"line":1,"column":82,"index":82},"end":{"line":1,"column":84,"index":84}},
77 "body": [],
78 "directives": [],
79 "leadingComments": [
80 {
81 "type": "CommentBlock",
82 "value": " 8 ",
83 "start":74,"end":81,"loc":{"start":{"line":1,"column":74,"index":74},"end":{"line":1,"column":81,"index":81}}
84 }
85 ]
86 },
87 "innerComments": [
88 {
89 "type": "CommentBlock",
90 "value": " 2 ",
91 "start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}}
92 }
93 ],
94 "leadingComments": [
95 {
96 "type": "CommentBlock",
97 "value": " 1 ",
98 "start":3,"end":10,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":10,"index":10}}
99 }
100 ]
101 }
102 ],
103 "extra": {
104 "parenthesized": true,
105 "parenStart": 0
106 }
107 },
108 "arguments": [
109 {
110 "type": "ObjectExpression",
111 "start":89,"end":115,"loc":{"start":{"line":2,"column":1,"index":89},"end":{"line":2,"column":27,"index":115}},
112 "properties": [
113 {
114 "type": "ObjectMethod",
115 "start":91,"end":113,"loc":{"start":{"line":2,"column":3,"index":91},"end":{"line":2,"column":25,"index":113}},
116 "method": true,
117 "key": {
118 "type": "Identifier",
119 "start":106,"end":107,"loc":{"start":{"line":2,"column":18,"index":106},"end":{"line":2,"column":19,"index":107},"identifierName":"f"},
120 "name": "f"
121 },
122 "computed": false,
123 "kind": "method",
124 "id": null,
125 "generator": true,
126 "async": true,
127 "params": [],
128 "body": {
129 "type": "BlockStatement",
130 "start":111,"end":113,"loc":{"start":{"line":2,"column":23,"index":111},"end":{"line":2,"column":25,"index":113}},
131 "body": [],
132 "directives": []
133 },
134 "innerComments": [
135 {
136 "type": "CommentBlock",
137 "value": " 1 ",
138 "start":97,"end":104,"loc":{"start":{"line":2,"column":9,"index":97},"end":{"line":2,"column":16,"index":104}}
139 }
140 ]
141 }
142 ]
143 }
144 ]
145 }
146 }
147 ],
148 "directives": []
149 },
150 "comments": [
151 {
152 "type": "CommentBlock",
153 "value": " 1 ",
154 "start":3,"end":10,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":10,"index":10}}
155 },
156 {
157 "type": "CommentBlock",
158 "value": " 2 ",
159 "start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}}
160 },
161 {
162 "type": "CommentBlock",
163 "value": " 3 ",
164 "start":27,"end":34,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":34,"index":34}}
165 },
166 {
167 "type": "CommentBlock",
168 "value": " 4 ",
169 "start":37,"end":44,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":44,"index":44}}
170 },
171 {
172 "type": "CommentBlock",
173 "value": " 5 ",
174 "start":46,"end":53,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":53,"index":53}}
175 },
176 {
177 "type": "CommentBlock",
178 "value": " 6 ",
179 "start":56,"end":63,"loc":{"start":{"line":1,"column":56,"index":56},"end":{"line":1,"column":63,"index":63}}
180 },
181 {
182 "type": "CommentBlock",
183 "value": " 7 ",
184 "start":65,"end":72,"loc":{"start":{"line":1,"column":65,"index":65},"end":{"line":1,"column":72,"index":72}}
185 },
186 {
187 "type": "CommentBlock",
188 "value": " 8 ",
189 "start":74,"end":81,"loc":{"start":{"line":1,"column":74,"index":74},"end":{"line":1,"column":81,"index":81}}
190 },
191 {
192 "type": "CommentBlock",
193 "value": " 1 ",
194 "start":97,"end":104,"loc":{"start":{"line":2,"column":9,"index":97},"end":{"line":2,"column":16,"index":104}}
195 }
196 ]
197 }