Debian Codegraph @

test/prism/snapshots/unparser/corpus/literal/def.txt

raw
1 @ ProgramNode (location: (1,0)-(134,3))
2 ├── locals: []
3 └── statements:
4 @ StatementsNode (location: (1,0)-(134,3))
5 └── body: (length: 30)
6 ├── @ DefNode (location: (1,0)-(9,3))
7 │ ├── name: :foo
8 │ ├── name_loc: (1,4)-(1,7) = "foo"
9 │ ├── receiver: ∅
10 │ ├── parameters: ∅
11 │ ├── body:
12 │ │ @ BeginNode (location: (2,2)-(9,3))
13 │ │ ├── begin_keyword_loc: ∅
14 │ │ ├── statements:
15 │ │ │ @ StatementsNode (location: (2,2)-(2,3))
16 │ │ │ └── body: (length: 1)
17 │ │ │ └── @ CallNode (location: (2,2)-(2,3))
18 │ │ │ ├── flags: variable_call
19 │ │ │ ├── receiver: ∅
20 │ │ │ ├── call_operator_loc: ∅
21 │ │ │ ├── name: :a
22 │ │ │ ├── message_loc: (2,2)-(2,3) = "a"
23 │ │ │ ├── opening_loc: ∅
24 │ │ │ ├── arguments: ∅
25 │ │ │ ├── closing_loc: ∅
26 │ │ │ └── block: ∅
27 │ │ ├── rescue_clause:
28 │ │ │ @ RescueNode (location: (3,0)-(4,3))
29 │ │ │ ├── keyword_loc: (3,0)-(3,6) = "rescue"
30 │ │ │ ├── exceptions: (length: 0)
31 │ │ │ ├── operator_loc: ∅
32 │ │ │ ├── reference: ∅
33 │ │ │ ├── statements:
34 │ │ │ │ @ StatementsNode (location: (4,2)-(4,3))
35 │ │ │ │ └── body: (length: 1)
36 │ │ │ │ └── @ CallNode (location: (4,2)-(4,3))
37 │ │ │ │ ├── flags: variable_call
38 │ │ │ │ ├── receiver: ∅
39 │ │ │ │ ├── call_operator_loc: ∅
40 │ │ │ │ ├── name: :b
41 │ │ │ │ ├── message_loc: (4,2)-(4,3) = "b"
42 │ │ │ │ ├── opening_loc: ∅
43 │ │ │ │ ├── arguments: ∅
44 │ │ │ │ ├── closing_loc: ∅
45 │ │ │ │ └── block: ∅
46 │ │ │ └── consequent: ∅
47 │ │ ├── else_clause:
48 │ │ │ @ ElseNode (location: (5,0)-(7,6))
49 │ │ │ ├── else_keyword_loc: (5,0)-(5,4) = "else"
50 │ │ │ ├── statements:
51 │ │ │ │ @ StatementsNode (location: (6,2)-(6,3))
52 │ │ │ │ └── body: (length: 1)
53 │ │ │ │ └── @ CallNode (location: (6,2)-(6,3))
54 │ │ │ │ ├── flags: variable_call
55 │ │ │ │ ├── receiver: ∅
56 │ │ │ │ ├── call_operator_loc: ∅
57 │ │ │ │ ├── name: :c
58 │ │ │ │ ├── message_loc: (6,2)-(6,3) = "c"
59 │ │ │ │ ├── opening_loc: ∅
60 │ │ │ │ ├── arguments: ∅
61 │ │ │ │ ├── closing_loc: ∅
62 │ │ │ │ └── block: ∅
63 │ │ │ └── end_keyword_loc: (7,0)-(7,6) = "ensure"
64 │ │ ├── ensure_clause:
65 │ │ │ @ EnsureNode (location: (7,0)-(9,3))
66 │ │ │ ├── ensure_keyword_loc: (7,0)-(7,6) = "ensure"
67 │ │ │ ├── statements:
68 │ │ │ │ @ StatementsNode (location: (8,2)-(8,3))
69 │ │ │ │ └── body: (length: 1)
70 │ │ │ │ └── @ CallNode (location: (8,2)-(8,3))
71 │ │ │ │ ├── flags: variable_call
72 │ │ │ │ ├── receiver: ∅
73 │ │ │ │ ├── call_operator_loc: ∅
74 │ │ │ │ ├── name: :d
75 │ │ │ │ ├── message_loc: (8,2)-(8,3) = "d"
76 │ │ │ │ ├── opening_loc: ∅
77 │ │ │ │ ├── arguments: ∅
78 │ │ │ │ ├── closing_loc: ∅
79 │ │ │ │ └── block: ∅
80 │ │ │ └── end_keyword_loc: (9,0)-(9,3) = "end"
81 │ │ └── end_keyword_loc: (9,0)-(9,3) = "end"
82 │ ├── locals: []
83 │ ├── locals_body_index: 0
84 │ ├── def_keyword_loc: (1,0)-(1,3) = "def"
85 │ ├── operator_loc: ∅
86 │ ├── lparen_loc: ∅
87 │ ├── rparen_loc: ∅
88 │ ├── equal_loc: ∅
89 │ └── end_keyword_loc: (9,0)-(9,3) = "end"
90 ├── @ DefNode (location: (11,0)-(19,3))
91 │ ├── name: :foo
92 │ ├── name_loc: (11,4)-(11,7) = "foo"
93 │ ├── receiver: ∅
94 │ ├── parameters: ∅
95 │ ├── body:
96 │ │ @ BeginNode (location: (12,2)-(19,3))
97 │ │ ├── begin_keyword_loc: ∅
98 │ │ ├── statements:
99 │ │ │ @ StatementsNode (location: (12,2)-(12,12))
100 │ │ │ └── body: (length: 1)
101 │ │ │ └── @ RescueModifierNode (location: (12,2)-(12,12))
102 │ │ │ ├── expression:
103 │ │ │ │ @ CallNode (location: (12,2)-(12,3))
104 │ │ │ │ ├── flags: variable_call
105 │ │ │ │ ├── receiver: ∅
106 │ │ │ │ ├── call_operator_loc: ∅
107 │ │ │ │ ├── name: :a
108 │ │ │ │ ├── message_loc: (12,2)-(12,3) = "a"
109 │ │ │ │ ├── opening_loc: ∅
110 │ │ │ │ ├── arguments: ∅
111 │ │ │ │ ├── closing_loc: ∅
112 │ │ │ │ └── block: ∅
113 │ │ │ ├── keyword_loc: (12,4)-(12,10) = "rescue"
114 │ │ │ └── rescue_expression:
115 │ │ │ @ CallNode (location: (12,11)-(12,12))
116 │ │ │ ├── flags: variable_call
117 │ │ │ ├── receiver: ∅
118 │ │ │ ├── call_operator_loc: ∅
119 │ │ │ ├── name: :b
120 │ │ │ ├── message_loc: (12,11)-(12,12) = "b"
121 │ │ │ ├── opening_loc: ∅
122 │ │ │ ├── arguments: ∅
123 │ │ │ ├── closing_loc: ∅
124 │ │ │ └── block: ∅
125 │ │ ├── rescue_clause:
126 │ │ │ @ RescueNode (location: (13,0)-(14,3))
127 │ │ │ ├── keyword_loc: (13,0)-(13,6) = "rescue"
128 │ │ │ ├── exceptions: (length: 0)
129 │ │ │ ├── operator_loc: ∅
130 │ │ │ ├── reference: ∅
131 │ │ │ ├── statements:
132 │ │ │ │ @ StatementsNode (location: (14,2)-(14,3))
133 │ │ │ │ └── body: (length: 1)
134 │ │ │ │ └── @ CallNode (location: (14,2)-(14,3))
135 │ │ │ │ ├── flags: variable_call
136 │ │ │ │ ├── receiver: ∅
137 │ │ │ │ ├── call_operator_loc: ∅
138 │ │ │ │ ├── name: :b
139 │ │ │ │ ├── message_loc: (14,2)-(14,3) = "b"
140 │ │ │ │ ├── opening_loc: ∅
141 │ │ │ │ ├── arguments: ∅
142 │ │ │ │ ├── closing_loc: ∅
143 │ │ │ │ └── block: ∅
144 │ │ │ └── consequent: ∅
145 │ │ ├── else_clause:
146 │ │ │ @ ElseNode (location: (15,0)-(17,6))
147 │ │ │ ├── else_keyword_loc: (15,0)-(15,4) = "else"
148 │ │ │ ├── statements:
149 │ │ │ │ @ StatementsNode (location: (16,2)-(16,3))
150 │ │ │ │ └── body: (length: 1)
151 │ │ │ │ └── @ CallNode (location: (16,2)-(16,3))
152 │ │ │ │ ├── flags: variable_call
153 │ │ │ │ ├── receiver: ∅
154 │ │ │ │ ├── call_operator_loc: ∅
155 │ │ │ │ ├── name: :c
156 │ │ │ │ ├── message_loc: (16,2)-(16,3) = "c"
157 │ │ │ │ ├── opening_loc: ∅
158 │ │ │ │ ├── arguments: ∅
159 │ │ │ │ ├── closing_loc: ∅
160 │ │ │ │ └── block: ∅
161 │ │ │ └── end_keyword_loc: (17,0)-(17,6) = "ensure"
162 │ │ ├── ensure_clause:
163 │ │ │ @ EnsureNode (location: (17,0)-(19,3))
164 │ │ │ ├── ensure_keyword_loc: (17,0)-(17,6) = "ensure"
165 │ │ │ ├── statements:
166 │ │ │ │ @ StatementsNode (location: (18,2)-(18,3))
167 │ │ │ │ └── body: (length: 1)
168 │ │ │ │ └── @ CallNode (location: (18,2)-(18,3))
169 │ │ │ │ ├── flags: variable_call
170 │ │ │ │ ├── receiver: ∅
171 │ │ │ │ ├── call_operator_loc: ∅
172 │ │ │ │ ├── name: :d
173 │ │ │ │ ├── message_loc: (18,2)-(18,3) = "d"
174 │ │ │ │ ├── opening_loc: ∅
175 │ │ │ │ ├── arguments: ∅
176 │ │ │ │ ├── closing_loc: ∅
177 │ │ │ │ └── block: ∅
178 │ │ │ └── end_keyword_loc: (19,0)-(19,3) = "end"
179 │ │ └── end_keyword_loc: (19,0)-(19,3) = "end"
180 │ ├── locals: []
181 │ ├── locals_body_index: 0
182 │ ├── def_keyword_loc: (11,0)-(11,3) = "def"
183 │ ├── operator_loc: ∅
184 │ ├── lparen_loc: ∅
185 │ ├── rparen_loc: ∅
186 │ ├── equal_loc: ∅
187 │ └── end_keyword_loc: (19,0)-(19,3) = "end"
188 ├── @ DefNode (location: (21,0)-(22,3))
189 │ ├── name: :foo
190 │ ├── name_loc: (21,4)-(21,7) = "foo"
191 │ ├── receiver: ∅
192 │ ├── parameters:
193 │ │ @ ParametersNode (location: (21,8)-(21,18))
194 │ │ ├── requireds: (length: 0)
195 │ │ ├── optionals: (length: 0)
196 │ │ ├── rest: ∅
197 │ │ ├── posts: (length: 0)
198 │ │ ├── keywords: (length: 2)
199 │ │ │ ├── @ RequiredKeywordParameterNode (location: (21,8)-(21,12))
200 │ │ │ │ ├── name: :bar
201 │ │ │ │ └── name_loc: (21,8)-(21,12) = "bar:"
202 │ │ │ └── @ RequiredKeywordParameterNode (location: (21,14)-(21,18))
203 │ │ │ ├── name: :baz
204 │ │ │ └── name_loc: (21,14)-(21,18) = "baz:"
205 │ │ ├── keyword_rest: ∅
206 │ │ └── block: ∅
207 │ ├── body: ∅
208 │ ├── locals: [:bar, :baz]
209 │ ├── locals_body_index: 2
210 │ ├── def_keyword_loc: (21,0)-(21,3) = "def"
211 │ ├── operator_loc: ∅
212 │ ├── lparen_loc: (21,7)-(21,8) = "("
213 │ ├── rparen_loc: (21,18)-(21,19) = ")"
214 │ ├── equal_loc: ∅
215 │ └── end_keyword_loc: (22,0)-(22,3) = "end"
216 ├── @ DefNode (location: (24,0)-(25,3))
217 │ ├── name: :foo
218 │ ├── name_loc: (24,4)-(24,7) = "foo"
219 │ ├── receiver: ∅
220 │ ├── parameters: ∅
221 │ ├── body: ∅
222 │ ├── locals: []
223 │ ├── locals_body_index: 0
224 │ ├── def_keyword_loc: (24,0)-(24,3) = "def"
225 │ ├── operator_loc: ∅
226 │ ├── lparen_loc: ∅
227 │ ├── rparen_loc: ∅
228 │ ├── equal_loc: ∅
229 │ └── end_keyword_loc: (25,0)-(25,3) = "end"
230 ├── @ DefNode (location: (27,0)-(29,3))
231 │ ├── name: :foo
232 │ ├── name_loc: (27,4)-(27,7) = "foo"
233 │ ├── receiver: ∅
234 │ ├── parameters: ∅
235 │ ├── body:
236 │ │ @ StatementsNode (location: (28,2)-(28,5))
237 │ │ └── body: (length: 1)
238 │ │ └── @ CallNode (location: (28,2)-(28,5))
239 │ │ ├── flags: variable_call
240 │ │ ├── receiver: ∅
241 │ │ ├── call_operator_loc: ∅
242 │ │ ├── name: :bar
243 │ │ ├── message_loc: (28,2)-(28,5) = "bar"
244 │ │ ├── opening_loc: ∅
245 │ │ ├── arguments: ∅
246 │ │ ├── closing_loc: ∅
247 │ │ └── block: ∅
248 │ ├── locals: []
249 │ ├── locals_body_index: 0
250 │ ├── def_keyword_loc: (27,0)-(27,3) = "def"
251 │ ├── operator_loc: ∅
252 │ ├── lparen_loc: ∅
253 │ ├── rparen_loc: ∅
254 │ ├── equal_loc: ∅
255 │ └── end_keyword_loc: (29,0)-(29,3) = "end"
256 ├── @ DefNode (location: (31,0)-(37,3))
257 │ ├── name: :foo
258 │ ├── name_loc: (31,4)-(31,7) = "foo"
259 │ ├── receiver: ∅
260 │ ├── parameters: ∅
261 │ ├── body:
262 │ │ @ BeginNode (location: (32,2)-(37,3))
263 │ │ ├── begin_keyword_loc: ∅
264 │ │ ├── statements:
265 │ │ │ @ StatementsNode (location: (32,2)-(32,5))
266 │ │ │ └── body: (length: 1)
267 │ │ │ └── @ CallNode (location: (32,2)-(32,5))
268 │ │ │ ├── flags: variable_call
269 │ │ │ ├── receiver: ∅
270 │ │ │ ├── call_operator_loc: ∅
271 │ │ │ ├── name: :foo
272 │ │ │ ├── message_loc: (32,2)-(32,5) = "foo"
273 │ │ │ ├── opening_loc: ∅
274 │ │ │ ├── arguments: ∅
275 │ │ │ ├── closing_loc: ∅
276 │ │ │ └── block: ∅
277 │ │ ├── rescue_clause:
278 │ │ │ @ RescueNode (location: (33,0)-(34,5))
279 │ │ │ ├── keyword_loc: (33,0)-(33,6) = "rescue"
280 │ │ │ ├── exceptions: (length: 0)
281 │ │ │ ├── operator_loc: ∅
282 │ │ │ ├── reference: ∅
283 │ │ │ ├── statements:
284 │ │ │ │ @ StatementsNode (location: (34,2)-(34,5))
285 │ │ │ │ └── body: (length: 1)
286 │ │ │ │ └── @ CallNode (location: (34,2)-(34,5))
287 │ │ │ │ ├── flags: variable_call
288 │ │ │ │ ├── receiver: ∅
289 │ │ │ │ ├── call_operator_loc: ∅
290 │ │ │ │ ├── name: :bar
291 │ │ │ │ ├── message_loc: (34,2)-(34,5) = "bar"
292 │ │ │ │ ├── opening_loc: ∅
293 │ │ │ │ ├── arguments: ∅
294 │ │ │ │ ├── closing_loc: ∅
295 │ │ │ │ └── block: ∅
296 │ │ │ └── consequent: ∅
297 │ │ ├── else_clause: ∅
298 │ │ ├── ensure_clause:
299 │ │ │ @ EnsureNode (location: (35,0)-(37,3))
300 │ │ │ ├── ensure_keyword_loc: (35,0)-(35,6) = "ensure"
301 │ │ │ ├── statements:
302 │ │ │ │ @ StatementsNode (location: (36,2)-(36,5))
303 │ │ │ │ └── body: (length: 1)
304 │ │ │ │ └── @ CallNode (location: (36,2)-(36,5))
305 │ │ │ │ ├── flags: variable_call
306 │ │ │ │ ├── receiver: ∅
307 │ │ │ │ ├── call_operator_loc: ∅
308 │ │ │ │ ├── name: :baz
309 │ │ │ │ ├── message_loc: (36,2)-(36,5) = "baz"
310 │ │ │ │ ├── opening_loc: ∅
311 │ │ │ │ ├── arguments: ∅
312 │ │ │ │ ├── closing_loc: ∅
313 │ │ │ │ └── block: ∅
314 │ │ │ └── end_keyword_loc: (37,0)-(37,3) = "end"
315 │ │ └── end_keyword_loc: (37,0)-(37,3) = "end"
316 │ ├── locals: []
317 │ ├── locals_body_index: 0
318 │ ├── def_keyword_loc: (31,0)-(31,3) = "def"
319 │ ├── operator_loc: ∅
320 │ ├── lparen_loc: ∅
321 │ ├── rparen_loc: ∅
322 │ ├── equal_loc: ∅
323 │ └── end_keyword_loc: (37,0)-(37,3) = "end"
324 ├── @ DefNode (location: (39,0)-(43,3))
325 │ ├── name: :foo
326 │ ├── name_loc: (39,4)-(39,7) = "foo"
327 │ ├── receiver: ∅
328 │ ├── parameters: ∅
329 │ ├── body:
330 │ │ @ BeginNode (location: (40,2)-(43,3))
331 │ │ ├── begin_keyword_loc: ∅
332 │ │ ├── statements:
333 │ │ │ @ StatementsNode (location: (40,2)-(40,5))
334 │ │ │ └── body: (length: 1)
335 │ │ │ └── @ CallNode (location: (40,2)-(40,5))
336 │ │ │ ├── flags: variable_call
337 │ │ │ ├── receiver: ∅
338 │ │ │ ├── call_operator_loc: ∅
339 │ │ │ ├── name: :bar
340 │ │ │ ├── message_loc: (40,2)-(40,5) = "bar"
341 │ │ │ ├── opening_loc: ∅
342 │ │ │ ├── arguments: ∅
343 │ │ │ ├── closing_loc: ∅
344 │ │ │ └── block: ∅
345 │ │ ├── rescue_clause: ∅
346 │ │ ├── else_clause: ∅
347 │ │ ├── ensure_clause:
348 │ │ │ @ EnsureNode (location: (41,0)-(43,3))
349 │ │ │ ├── ensure_keyword_loc: (41,0)-(41,6) = "ensure"
350 │ │ │ ├── statements:
351 │ │ │ │ @ StatementsNode (location: (42,2)-(42,5))
352 │ │ │ │ └── body: (length: 1)
353 │ │ │ │ └── @ CallNode (location: (42,2)-(42,5))
354 │ │ │ │ ├── flags: variable_call
355 │ │ │ │ ├── receiver: ∅
356 │ │ │ │ ├── call_operator_loc: ∅
357 │ │ │ │ ├── name: :baz
358 │ │ │ │ ├── message_loc: (42,2)-(42,5) = "baz"
359 │ │ │ │ ├── opening_loc: ∅
360 │ │ │ │ ├── arguments: ∅
361 │ │ │ │ ├── closing_loc: ∅
362 │ │ │ │ └── block: ∅
363 │ │ │ └── end_keyword_loc: (43,0)-(43,3) = "end"
364 │ │ └── end_keyword_loc: (43,0)-(43,3) = "end"
365 │ ├── locals: []
366 │ ├── locals_body_index: 0
367 │ ├── def_keyword_loc: (39,0)-(39,3) = "def"
368 │ ├── operator_loc: ∅
369 │ ├── lparen_loc: ∅
370 │ ├── rparen_loc: ∅
371 │ ├── equal_loc: ∅
372 │ └── end_keyword_loc: (43,0)-(43,3) = "end"
373 ├── @ DefNode (location: (45,0)-(49,3))
374 │ ├── name: :foo
375 │ ├── name_loc: (45,4)-(45,7) = "foo"
376 │ ├── receiver: ∅
377 │ ├── parameters: ∅
378 │ ├── body:
379 │ │ @ BeginNode (location: (46,2)-(49,3))
380 │ │ ├── begin_keyword_loc: ∅
381 │ │ ├── statements:
382 │ │ │ @ StatementsNode (location: (46,2)-(46,5))
383 │ │ │ └── body: (length: 1)
384 │ │ │ └── @ CallNode (location: (46,2)-(46,5))
385 │ │ │ ├── flags: variable_call
386 │ │ │ ├── receiver: ∅
387 │ │ │ ├── call_operator_loc: ∅
388 │ │ │ ├── name: :bar
389 │ │ │ ├── message_loc: (46,2)-(46,5) = "bar"
390 │ │ │ ├── opening_loc: ∅
391 │ │ │ ├── arguments: ∅
392 │ │ │ ├── closing_loc: ∅
393 │ │ │ └── block: ∅
394 │ │ ├── rescue_clause:
395 │ │ │ @ RescueNode (location: (47,0)-(48,5))
396 │ │ │ ├── keyword_loc: (47,0)-(47,6) = "rescue"
397 │ │ │ ├── exceptions: (length: 0)
398 │ │ │ ├── operator_loc: ∅
399 │ │ │ ├── reference: ∅
400 │ │ │ ├── statements:
401 │ │ │ │ @ StatementsNode (location: (48,2)-(48,5))
402 │ │ │ │ └── body: (length: 1)
403 │ │ │ │ └── @ CallNode (location: (48,2)-(48,5))
404 │ │ │ │ ├── flags: variable_call
405 │ │ │ │ ├── receiver: ∅
406 │ │ │ │ ├── call_operator_loc: ∅
407 │ │ │ │ ├── name: :baz
408 │ │ │ │ ├── message_loc: (48,2)-(48,5) = "baz"
409 │ │ │ │ ├── opening_loc: ∅
410 │ │ │ │ ├── arguments: ∅
411 │ │ │ │ ├── closing_loc: ∅
412 │ │ │ │ └── block: ∅
413 │ │ │ └── consequent: ∅
414 │ │ ├── else_clause: ∅
415 │ │ ├── ensure_clause: ∅
416 │ │ └── end_keyword_loc: (49,0)-(49,3) = "end"
417 │ ├── locals: []
418 │ ├── locals_body_index: 0
419 │ ├── def_keyword_loc: (45,0)-(45,3) = "def"
420 │ ├── operator_loc: ∅
421 │ ├── lparen_loc: ∅
422 │ ├── rparen_loc: ∅
423 │ ├── equal_loc: ∅
424 │ └── end_keyword_loc: (49,0)-(49,3) = "end"
425 ├── @ DefNode (location: (51,0)-(53,3))
426 │ ├── name: :foo
427 │ ├── name_loc: (51,4)-(51,7) = "foo"
428 │ ├── receiver: ∅
429 │ ├── parameters:
430 │ │ @ ParametersNode (location: (51,8)-(51,11))
431 │ │ ├── requireds: (length: 1)
432 │ │ │ └── @ RequiredParameterNode (location: (51,8)-(51,11))
433 │ │ │ └── name: :bar
434 │ │ ├── optionals: (length: 0)
435 │ │ ├── rest: ∅
436 │ │ ├── posts: (length: 0)
437 │ │ ├── keywords: (length: 0)
438 │ │ ├── keyword_rest: ∅
439 │ │ └── block: ∅
440 │ ├── body:
441 │ │ @ StatementsNode (location: (52,2)-(52,5))
442 │ │ └── body: (length: 1)
443 │ │ └── @ LocalVariableReadNode (location: (52,2)-(52,5))
444 │ │ ├── name: :bar
445 │ │ └── depth: 0
446 │ ├── locals: [:bar]
447 │ ├── locals_body_index: 1
448 │ ├── def_keyword_loc: (51,0)-(51,3) = "def"
449 │ ├── operator_loc: ∅
450 │ ├── lparen_loc: (51,7)-(51,8) = "("
451 │ ├── rparen_loc: (51,11)-(51,12) = ")"
452 │ ├── equal_loc: ∅
453 │ └── end_keyword_loc: (53,0)-(53,3) = "end"
454 ├── @ DefNode (location: (55,0)-(57,3))
455 │ ├── name: :foo
456 │ ├── name_loc: (55,4)-(55,7) = "foo"
457 │ ├── receiver: ∅
458 │ ├── parameters:
459 │ │ @ ParametersNode (location: (55,8)-(55,16))
460 │ │ ├── requireds: (length: 2)
461 │ │ │ ├── @ RequiredParameterNode (location: (55,8)-(55,11))
462 │ │ │ │ └── name: :bar
463 │ │ │ └── @ RequiredParameterNode (location: (55,13)-(55,16))
464 │ │ │ └── name: :baz
465 │ │ ├── optionals: (length: 0)
466 │ │ ├── rest: ∅
467 │ │ ├── posts: (length: 0)
468 │ │ ├── keywords: (length: 0)
469 │ │ ├── keyword_rest: ∅
470 │ │ └── block: ∅
471 │ ├── body:
472 │ │ @ StatementsNode (location: (56,2)-(56,5))
473 │ │ └── body: (length: 1)
474 │ │ └── @ LocalVariableReadNode (location: (56,2)-(56,5))
475 │ │ ├── name: :bar
476 │ │ └── depth: 0
477 │ ├── locals: [:bar, :baz]
478 │ ├── locals_body_index: 2
479 │ ├── def_keyword_loc: (55,0)-(55,3) = "def"
480 │ ├── operator_loc: ∅
481 │ ├── lparen_loc: (55,7)-(55,8) = "("
482 │ ├── rparen_loc: (55,16)-(55,17) = ")"
483 │ ├── equal_loc: ∅
484 │ └── end_keyword_loc: (57,0)-(57,3) = "end"
485 ├── @ DefNode (location: (59,0)-(61,3))
486 │ ├── name: :foo
487 │ ├── name_loc: (59,4)-(59,7) = "foo"
488 │ ├── receiver: ∅
489 │ ├── parameters:
490 │ │ @ ParametersNode (location: (59,8)-(59,16))
491 │ │ ├── requireds: (length: 0)
492 │ │ ├── optionals: (length: 1)
493 │ │ │ └── @ OptionalParameterNode (location: (59,8)-(59,16))
494 │ │ │ ├── name: :bar
495 │ │ │ ├── name_loc: (59,8)-(59,11) = "bar"
496 │ │ │ ├── operator_loc: (59,12)-(59,13) = "="
497 │ │ │ └── value:
498 │ │ │ @ ParenthesesNode (location: (59,14)-(59,16))
499 │ │ │ ├── body: ∅
500 │ │ │ ├── opening_loc: (59,14)-(59,15) = "("
501 │ │ │ └── closing_loc: (59,15)-(59,16) = ")"
502 │ │ ├── rest: ∅
503 │ │ ├── posts: (length: 0)
504 │ │ ├── keywords: (length: 0)
505 │ │ ├── keyword_rest: ∅
506 │ │ └── block: ∅
507 │ ├── body:
508 │ │ @ StatementsNode (location: (60,2)-(60,5))
509 │ │ └── body: (length: 1)
510 │ │ └── @ LocalVariableReadNode (location: (60,2)-(60,5))
511 │ │ ├── name: :bar
512 │ │ └── depth: 0
513 │ ├── locals: [:bar]
514 │ ├── locals_body_index: 1
515 │ ├── def_keyword_loc: (59,0)-(59,3) = "def"
516 │ ├── operator_loc: ∅
517 │ ├── lparen_loc: (59,7)-(59,8) = "("
518 │ ├── rparen_loc: (59,16)-(59,17) = ")"
519 │ ├── equal_loc: ∅
520 │ └── end_keyword_loc: (61,0)-(61,3) = "end"
521 ├── @ DefNode (location: (63,0)-(64,3))
522 │ ├── name: :foo
523 │ ├── name_loc: (63,4)-(63,7) = "foo"
524 │ ├── receiver: ∅
525 │ ├── parameters:
526 │ │ @ ParametersNode (location: (63,8)-(63,24))
527 │ │ ├── requireds: (length: 0)
528 │ │ ├── optionals: (length: 1)
529 │ │ │ └── @ OptionalParameterNode (location: (63,8)-(63,24))
530 │ │ │ ├── name: :bar
531 │ │ │ ├── name_loc: (63,8)-(63,11) = "bar"
532 │ │ │ ├── operator_loc: (63,12)-(63,13) = "="
533 │ │ │ └── value:
534 │ │ │ @ ParenthesesNode (location: (63,14)-(63,24))
535 │ │ │ ├── body:
536 │ │ │ │ @ StatementsNode (location: (63,15)-(63,23))
537 │ │ │ │ └── body: (length: 2)
538 │ │ │ │ ├── @ CallNode (location: (63,15)-(63,18))
539 │ │ │ │ │ ├── flags: variable_call
540 │ │ │ │ │ ├── receiver: ∅
541 │ │ │ │ │ ├── call_operator_loc: ∅
542 │ │ │ │ │ ├── name: :baz
543 │ │ │ │ │ ├── message_loc: (63,15)-(63,18) = "baz"
544 │ │ │ │ │ ├── opening_loc: ∅
545 │ │ │ │ │ ├── arguments: ∅
546 │ │ │ │ │ ├── closing_loc: ∅
547 │ │ │ │ │ └── block: ∅
548 │ │ │ │ └── @ NilNode (location: (63,20)-(63,23))
549 │ │ │ ├── opening_loc: (63,14)-(63,15) = "("
550 │ │ │ └── closing_loc: (63,23)-(63,24) = ")"
551 │ │ ├── rest: ∅
552 │ │ ├── posts: (length: 0)
553 │ │ ├── keywords: (length: 0)
554 │ │ ├── keyword_rest: ∅
555 │ │ └── block: ∅
556 │ ├── body: ∅
557 │ ├── locals: [:bar]
558 │ ├── locals_body_index: 1
559 │ ├── def_keyword_loc: (63,0)-(63,3) = "def"
560 │ ├── operator_loc: ∅
561 │ ├── lparen_loc: (63,7)-(63,8) = "("
562 │ ├── rparen_loc: (63,24)-(63,25) = ")"
563 │ ├── equal_loc: ∅
564 │ └── end_keyword_loc: (64,0)-(64,3) = "end"
565 ├── @ DefNode (location: (66,0)-(68,3))
566 │ ├── name: :foo
567 │ ├── name_loc: (66,4)-(66,7) = "foo"
568 │ ├── receiver: ∅
569 │ ├── parameters:
570 │ │ @ ParametersNode (location: (66,8)-(66,18))
571 │ │ ├── requireds: (length: 0)
572 │ │ ├── optionals: (length: 1)
573 │ │ │ └── @ OptionalParameterNode (location: (66,8)-(66,18))
574 │ │ │ ├── name: :bar
575 │ │ │ ├── name_loc: (66,8)-(66,11) = "bar"
576 │ │ │ ├── operator_loc: (66,12)-(66,13) = "="
577 │ │ │ └── value:
578 │ │ │ @ TrueNode (location: (66,14)-(66,18))
579 │ │ ├── rest: ∅
580 │ │ ├── posts: (length: 0)
581 │ │ ├── keywords: (length: 0)
582 │ │ ├── keyword_rest: ∅
583 │ │ └── block: ∅
584 │ ├── body:
585 │ │ @ StatementsNode (location: (67,2)-(67,5))
586 │ │ └── body: (length: 1)
587 │ │ └── @ LocalVariableReadNode (location: (67,2)-(67,5))
588 │ │ ├── name: :bar
589 │ │ └── depth: 0
590 │ ├── locals: [:bar]
591 │ ├── locals_body_index: 1
592 │ ├── def_keyword_loc: (66,0)-(66,3) = "def"
593 │ ├── operator_loc: ∅
594 │ ├── lparen_loc: (66,7)-(66,8) = "("
595 │ ├── rparen_loc: (66,18)-(66,19) = ")"
596 │ ├── equal_loc: ∅
597 │ └── end_keyword_loc: (68,0)-(68,3) = "end"
598 ├── @ DefNode (location: (70,0)-(72,3))
599 │ ├── name: :foo
600 │ ├── name_loc: (70,4)-(70,7) = "foo"
601 │ ├── receiver: ∅
602 │ ├── parameters:
603 │ │ @ ParametersNode (location: (70,8)-(70,23))
604 │ │ ├── requireds: (length: 1)
605 │ │ │ └── @ RequiredParameterNode (location: (70,8)-(70,11))
606 │ │ │ └── name: :bar
607 │ │ ├── optionals: (length: 1)
608 │ │ │ └── @ OptionalParameterNode (location: (70,13)-(70,23))
609 │ │ │ ├── name: :baz
610 │ │ │ ├── name_loc: (70,13)-(70,16) = "baz"
611 │ │ │ ├── operator_loc: (70,17)-(70,18) = "="
612 │ │ │ └── value:
613 │ │ │ @ TrueNode (location: (70,19)-(70,23))
614 │ │ ├── rest: ∅
615 │ │ ├── posts: (length: 0)
616 │ │ ├── keywords: (length: 0)
617 │ │ ├── keyword_rest: ∅
618 │ │ └── block: ∅
619 │ ├── body:
620 │ │ @ StatementsNode (location: (71,2)-(71,5))
621 │ │ └── body: (length: 1)
622 │ │ └── @ LocalVariableReadNode (location: (71,2)-(71,5))
623 │ │ ├── name: :bar
624 │ │ └── depth: 0
625 │ ├── locals: [:bar, :baz]
626 │ ├── locals_body_index: 2
627 │ ├── def_keyword_loc: (70,0)-(70,3) = "def"
628 │ ├── operator_loc: ∅
629 │ ├── lparen_loc: (70,7)-(70,8) = "("
630 │ ├── rparen_loc: (70,23)-(70,24) = ")"
631 │ ├── equal_loc: ∅
632 │ └── end_keyword_loc: (72,0)-(72,3) = "end"
633 ├── @ DefNode (location: (74,0)-(75,3))
634 │ ├── name: :foo
635 │ ├── name_loc: (74,4)-(74,7) = "foo"
636 │ ├── receiver: ∅
637 │ ├── parameters:
638 │ │ @ ParametersNode (location: (74,8)-(74,14))
639 │ │ ├── requireds: (length: 0)
640 │ │ ├── optionals: (length: 0)
641 │ │ ├── rest: ∅
642 │ │ ├── posts: (length: 0)
643 │ │ ├── keywords: (length: 1)
644 │ │ │ └── @ OptionalKeywordParameterNode (location: (74,8)-(74,14))
645 │ │ │ ├── name: :bar
646 │ │ │ ├── name_loc: (74,8)-(74,12) = "bar:"
647 │ │ │ └── value:
648 │ │ │ @ IntegerNode (location: (74,13)-(74,14))
649 │ │ │ └── flags: decimal
650 │ │ ├── keyword_rest: ∅
651 │ │ └── block: ∅
652 │ ├── body: ∅
653 │ ├── locals: [:bar]
654 │ ├── locals_body_index: 1
655 │ ├── def_keyword_loc: (74,0)-(74,3) = "def"
656 │ ├── operator_loc: ∅
657 │ ├── lparen_loc: (74,7)-(74,8) = "("
658 │ ├── rparen_loc: (74,14)-(74,15) = ")"
659 │ ├── equal_loc: ∅
660 │ └── end_keyword_loc: (75,0)-(75,3) = "end"
661 ├── @ DefNode (location: (77,0)-(78,3))
662 │ ├── name: :foo
663 │ ├── name_loc: (77,4)-(77,7) = "foo"
664 │ ├── receiver: ∅
665 │ ├── parameters:
666 │ │ @ ParametersNode (location: (77,8)-(77,16))
667 │ │ ├── requireds: (length: 0)
668 │ │ ├── optionals: (length: 0)
669 │ │ ├── rest: ∅
670 │ │ ├── posts: (length: 0)
671 │ │ ├── keywords: (length: 1)
672 │ │ │ └── @ OptionalKeywordParameterNode (location: (77,8)-(77,16))
673 │ │ │ ├── name: :bar
674 │ │ │ ├── name_loc: (77,8)-(77,12) = "bar:"
675 │ │ │ └── value:
676 │ │ │ @ CallNode (location: (77,13)-(77,16))
677 │ │ │ ├── flags: variable_call
678 │ │ │ ├── receiver: ∅
679 │ │ │ ├── call_operator_loc: ∅
680 │ │ │ ├── name: :baz
681 │ │ │ ├── message_loc: (77,13)-(77,16) = "baz"
682 │ │ │ ├── opening_loc: ∅
683 │ │ │ ├── arguments: ∅
684 │ │ │ ├── closing_loc: ∅
685 │ │ │ └── block: ∅
686 │ │ ├── keyword_rest: ∅
687 │ │ └── block: ∅
688 │ ├── body: ∅
689 │ ├── locals: [:bar]
690 │ ├── locals_body_index: 1
691 │ ├── def_keyword_loc: (77,0)-(77,3) = "def"
692 │ ├── operator_loc: ∅
693 │ ├── lparen_loc: (77,7)-(77,8) = "("
694 │ ├── rparen_loc: (77,16)-(77,17) = ")"
695 │ ├── equal_loc: ∅
696 │ └── end_keyword_loc: (78,0)-(78,3) = "end"
697 ├── @ DefNode (location: (80,0)-(81,3))
698 │ ├── name: :foo
699 │ ├── name_loc: (80,4)-(80,7) = "foo"
700 │ ├── receiver: ∅
701 │ ├── parameters:
702 │ │ @ ParametersNode (location: (80,8)-(80,18))
703 │ │ ├── requireds: (length: 0)
704 │ │ ├── optionals: (length: 0)
705 │ │ ├── rest: ∅
706 │ │ ├── posts: (length: 0)
707 │ │ ├── keywords: (length: 1)
708 │ │ │ └── @ OptionalKeywordParameterNode (location: (80,8)-(80,18))
709 │ │ │ ├── name: :bar
710 │ │ │ ├── name_loc: (80,8)-(80,12) = "bar:"
711 │ │ │ └── value:
712 │ │ │ @ CallNode (location: (80,13)-(80,18))
713 │ │ │ ├── flags: ∅
714 │ │ │ ├── receiver: ∅
715 │ │ │ ├── call_operator_loc: ∅
716 │ │ │ ├── name: :bar
717 │ │ │ ├── message_loc: (80,13)-(80,16) = "bar"
718 │ │ │ ├── opening_loc: (80,16)-(80,17) = "("
719 │ │ │ ├── arguments: ∅
720 │ │ │ ├── closing_loc: (80,17)-(80,18) = ")"
721 │ │ │ └── block: ∅
722 │ │ ├── keyword_rest: ∅
723 │ │ └── block: ∅
724 │ ├── body: ∅
725 │ ├── locals: [:bar]
726 │ ├── locals_body_index: 1
727 │ ├── def_keyword_loc: (80,0)-(80,3) = "def"
728 │ ├── operator_loc: ∅
729 │ ├── lparen_loc: (80,7)-(80,8) = "("
730 │ ├── rparen_loc: (80,18)-(80,19) = ")"
731 │ ├── equal_loc: ∅
732 │ └── end_keyword_loc: (81,0)-(81,3) = "end"
733 ├── @ DefNode (location: (83,0)-(85,3))
734 │ ├── name: :foo
735 │ ├── name_loc: (83,4)-(83,7) = "foo"
736 │ ├── receiver: ∅
737 │ ├── parameters:
738 │ │ @ ParametersNode (location: (83,8)-(83,9))
739 │ │ ├── requireds: (length: 0)
740 │ │ ├── optionals: (length: 0)
741 │ │ ├── rest:
742 │ │ │ @ RestParameterNode (location: (83,8)-(83,9))
743 │ │ │ ├── name: ∅
744 │ │ │ ├── name_loc: ∅
745 │ │ │ └── operator_loc: (83,8)-(83,9) = "*"
746 │ │ ├── posts: (length: 0)
747 │ │ ├── keywords: (length: 0)
748 │ │ ├── keyword_rest: ∅
749 │ │ └── block: ∅
750 │ ├── body:
751 │ │ @ StatementsNode (location: (84,2)-(84,5))
752 │ │ └── body: (length: 1)
753 │ │ └── @ CallNode (location: (84,2)-(84,5))
754 │ │ ├── flags: variable_call
755 │ │ ├── receiver: ∅
756 │ │ ├── call_operator_loc: ∅
757 │ │ ├── name: :bar
758 │ │ ├── message_loc: (84,2)-(84,5) = "bar"
759 │ │ ├── opening_loc: ∅
760 │ │ ├── arguments: ∅
761 │ │ ├── closing_loc: ∅
762 │ │ └── block: ∅
763 │ ├── locals: [:*]
764 │ ├── locals_body_index: 1
765 │ ├── def_keyword_loc: (83,0)-(83,3) = "def"
766 │ ├── operator_loc: ∅
767 │ ├── lparen_loc: (83,7)-(83,8) = "("
768 │ ├── rparen_loc: (83,9)-(83,10) = ")"
769 │ ├── equal_loc: ∅
770 │ └── end_keyword_loc: (85,0)-(85,3) = "end"
771 ├── @ DefNode (location: (87,0)-(89,3))
772 │ ├── name: :foo
773 │ ├── name_loc: (87,4)-(87,7) = "foo"
774 │ ├── receiver: ∅
775 │ ├── parameters:
776 │ │ @ ParametersNode (location: (87,8)-(87,12))
777 │ │ ├── requireds: (length: 0)
778 │ │ ├── optionals: (length: 0)
779 │ │ ├── rest:
780 │ │ │ @ RestParameterNode (location: (87,8)-(87,12))
781 │ │ │ ├── name: :bar
782 │ │ │ ├── name_loc: (87,9)-(87,12) = "bar"
783 │ │ │ └── operator_loc: (87,8)-(87,9) = "*"
784 │ │ ├── posts: (length: 0)
785 │ │ ├── keywords: (length: 0)
786 │ │ ├── keyword_rest: ∅
787 │ │ └── block: ∅
788 │ ├── body:
789 │ │ @ StatementsNode (location: (88,2)-(88,5))
790 │ │ └── body: (length: 1)
791 │ │ └── @ LocalVariableReadNode (location: (88,2)-(88,5))
792 │ │ ├── name: :bar
793 │ │ └── depth: 0
794 │ ├── locals: [:bar]
795 │ ├── locals_body_index: 1
796 │ ├── def_keyword_loc: (87,0)-(87,3) = "def"
797 │ ├── operator_loc: ∅
798 │ ├── lparen_loc: (87,7)-(87,8) = "("
799 │ ├── rparen_loc: (87,12)-(87,13) = ")"
800 │ ├── equal_loc: ∅
801 │ └── end_keyword_loc: (89,0)-(89,3) = "end"
802 ├── @ DefNode (location: (91,0)-(93,3))
803 │ ├── name: :foo
804 │ ├── name_loc: (91,4)-(91,7) = "foo"
805 │ ├── receiver: ∅
806 │ ├── parameters:
807 │ │ @ ParametersNode (location: (91,8)-(91,17))
808 │ │ ├── requireds: (length: 1)
809 │ │ │ └── @ RequiredParameterNode (location: (91,8)-(91,11))
810 │ │ │ └── name: :bar
811 │ │ ├── optionals: (length: 0)
812 │ │ ├── rest:
813 │ │ │ @ RestParameterNode (location: (91,13)-(91,17))
814 │ │ │ ├── name: :baz
815 │ │ │ ├── name_loc: (91,14)-(91,17) = "baz"
816 │ │ │ └── operator_loc: (91,13)-(91,14) = "*"
817 │ │ ├── posts: (length: 0)
818 │ │ ├── keywords: (length: 0)
819 │ │ ├── keyword_rest: ∅
820 │ │ └── block: ∅
821 │ ├── body:
822 │ │ @ StatementsNode (location: (92,2)-(92,5))
823 │ │ └── body: (length: 1)
824 │ │ └── @ LocalVariableReadNode (location: (92,2)-(92,5))
825 │ │ ├── name: :bar
826 │ │ └── depth: 0
827 │ ├── locals: [:bar, :baz]
828 │ ├── locals_body_index: 2
829 │ ├── def_keyword_loc: (91,0)-(91,3) = "def"
830 │ ├── operator_loc: ∅
831 │ ├── lparen_loc: (91,7)-(91,8) = "("
832 │ ├── rparen_loc: (91,17)-(91,18) = ")"
833 │ ├── equal_loc: ∅
834 │ └── end_keyword_loc: (93,0)-(93,3) = "end"
835 ├── @ DefNode (location: (95,0)-(97,3))
836 │ ├── name: :foo
837 │ ├── name_loc: (95,4)-(95,7) = "foo"
838 │ ├── receiver: ∅
839 │ ├── parameters:
840 │ │ @ ParametersNode (location: (95,8)-(95,24))
841 │ │ ├── requireds: (length: 0)
842 │ │ ├── optionals: (length: 1)
843 │ │ │ └── @ OptionalParameterNode (location: (95,8)-(95,18))
844 │ │ │ ├── name: :baz
845 │ │ │ ├── name_loc: (95,8)-(95,11) = "baz"
846 │ │ │ ├── operator_loc: (95,12)-(95,13) = "="
847 │ │ │ └── value:
848 │ │ │ @ TrueNode (location: (95,14)-(95,18))
849 │ │ ├── rest:
850 │ │ │ @ RestParameterNode (location: (95,20)-(95,24))
851 │ │ │ ├── name: :bor
852 │ │ │ ├── name_loc: (95,21)-(95,24) = "bor"
853 │ │ │ └── operator_loc: (95,20)-(95,21) = "*"
854 │ │ ├── posts: (length: 0)
855 │ │ ├── keywords: (length: 0)
856 │ │ ├── keyword_rest: ∅
857 │ │ └── block: ∅
858 │ ├── body:
859 │ │ @ StatementsNode (location: (96,2)-(96,5))
860 │ │ └── body: (length: 1)
861 │ │ └── @ CallNode (location: (96,2)-(96,5))
862 │ │ ├── flags: variable_call
863 │ │ ├── receiver: ∅
864 │ │ ├── call_operator_loc: ∅
865 │ │ ├── name: :bar
866 │ │ ├── message_loc: (96,2)-(96,5) = "bar"
867 │ │ ├── opening_loc: ∅
868 │ │ ├── arguments: ∅
869 │ │ ├── closing_loc: ∅
870 │ │ └── block: ∅
871 │ ├── locals: [:baz, :bor]
872 │ ├── locals_body_index: 2
873 │ ├── def_keyword_loc: (95,0)-(95,3) = "def"
874 │ ├── operator_loc: ∅
875 │ ├── lparen_loc: (95,7)-(95,8) = "("
876 │ ├── rparen_loc: (95,24)-(95,25) = ")"
877 │ ├── equal_loc: ∅
878 │ └── end_keyword_loc: (97,0)-(97,3) = "end"
879 ├── @ DefNode (location: (99,0)-(101,3))
880 │ ├── name: :foo
881 │ ├── name_loc: (99,4)-(99,7) = "foo"
882 │ ├── receiver: ∅
883 │ ├── parameters:
884 │ │ @ ParametersNode (location: (99,8)-(99,32))
885 │ │ ├── requireds: (length: 0)
886 │ │ ├── optionals: (length: 1)
887 │ │ │ └── @ OptionalParameterNode (location: (99,8)-(99,18))
888 │ │ │ ├── name: :baz
889 │ │ │ ├── name_loc: (99,8)-(99,11) = "baz"
890 │ │ │ ├── operator_loc: (99,12)-(99,13) = "="
891 │ │ │ └── value:
892 │ │ │ @ TrueNode (location: (99,14)-(99,18))
893 │ │ ├── rest:
894 │ │ │ @ RestParameterNode (location: (99,20)-(99,24))
895 │ │ │ ├── name: :bor
896 │ │ │ ├── name_loc: (99,21)-(99,24) = "bor"
897 │ │ │ └── operator_loc: (99,20)-(99,21) = "*"
898 │ │ ├── posts: (length: 0)
899 │ │ ├── keywords: (length: 0)
900 │ │ ├── keyword_rest: ∅
901 │ │ └── block:
902 │ │ @ BlockParameterNode (location: (99,26)-(99,32))
903 │ │ ├── name: :block
904 │ │ ├── name_loc: (99,27)-(99,32) = "block"
905 │ │ └── operator_loc: (99,26)-(99,27) = "&"
906 │ ├── body:
907 │ │ @ StatementsNode (location: (100,2)-(100,5))
908 │ │ └── body: (length: 1)
909 │ │ └── @ CallNode (location: (100,2)-(100,5))
910 │ │ ├── flags: variable_call
911 │ │ ├── receiver: ∅
912 │ │ ├── call_operator_loc: ∅
913 │ │ ├── name: :bar
914 │ │ ├── message_loc: (100,2)-(100,5) = "bar"
915 │ │ ├── opening_loc: ∅
916 │ │ ├── arguments: ∅
917 │ │ ├── closing_loc: ∅
918 │ │ └── block: ∅
919 │ ├── locals: [:baz, :bor, :block]
920 │ ├── locals_body_index: 3
921 │ ├── def_keyword_loc: (99,0)-(99,3) = "def"
922 │ ├── operator_loc: ∅
923 │ ├── lparen_loc: (99,7)-(99,8) = "("
924 │ ├── rparen_loc: (99,32)-(99,33) = ")"
925 │ ├── equal_loc: ∅
926 │ └── end_keyword_loc: (101,0)-(101,3) = "end"
927 ├── @ DefNode (location: (103,0)-(105,3))
928 │ ├── name: :foo
929 │ ├── name_loc: (103,4)-(103,7) = "foo"
930 │ ├── receiver: ∅
931 │ ├── parameters:
932 │ │ @ ParametersNode (location: (103,8)-(103,29))
933 │ │ ├── requireds: (length: 1)
934 │ │ │ └── @ RequiredParameterNode (location: (103,8)-(103,11))
935 │ │ │ └── name: :bar
936 │ │ ├── optionals: (length: 1)
937 │ │ │ └── @ OptionalParameterNode (location: (103,13)-(103,23))
938 │ │ │ ├── name: :baz
939 │ │ │ ├── name_loc: (103,13)-(103,16) = "baz"
940 │ │ │ ├── operator_loc: (103,17)-(103,18) = "="
941 │ │ │ └── value:
942 │ │ │ @ TrueNode (location: (103,19)-(103,23))
943 │ │ ├── rest:
944 │ │ │ @ RestParameterNode (location: (103,25)-(103,29))
945 │ │ │ ├── name: :bor
946 │ │ │ ├── name_loc: (103,26)-(103,29) = "bor"
947 │ │ │ └── operator_loc: (103,25)-(103,26) = "*"
948 │ │ ├── posts: (length: 0)
949 │ │ ├── keywords: (length: 0)
950 │ │ ├── keyword_rest: ∅
951 │ │ └── block: ∅
952 │ ├── body:
953 │ │ @ StatementsNode (location: (104,2)-(104,5))
954 │ │ └── body: (length: 1)
955 │ │ └── @ LocalVariableReadNode (location: (104,2)-(104,5))
956 │ │ ├── name: :bar
957 │ │ └── depth: 0
958 │ ├── locals: [:bar, :baz, :bor]
959 │ ├── locals_body_index: 3
960 │ ├── def_keyword_loc: (103,0)-(103,3) = "def"
961 │ ├── operator_loc: ∅
962 │ ├── lparen_loc: (103,7)-(103,8) = "("
963 │ ├── rparen_loc: (103,29)-(103,30) = ")"
964 │ ├── equal_loc: ∅
965 │ └── end_keyword_loc: (105,0)-(105,3) = "end"
966 ├── @ DefNode (location: (107,0)-(109,3))
967 │ ├── name: :foo
968 │ ├── name_loc: (107,4)-(107,7) = "foo"
969 │ ├── receiver: ∅
970 │ ├── parameters:
971 │ │ @ ParametersNode (location: (107,8)-(107,14))
972 │ │ ├── requireds: (length: 0)
973 │ │ ├── optionals: (length: 0)
974 │ │ ├── rest: ∅
975 │ │ ├── posts: (length: 0)
976 │ │ ├── keywords: (length: 0)
977 │ │ ├── keyword_rest: ∅
978 │ │ └── block:
979 │ │ @ BlockParameterNode (location: (107,8)-(107,14))
980 │ │ ├── name: :block
981 │ │ ├── name_loc: (107,9)-(107,14) = "block"
982 │ │ └── operator_loc: (107,8)-(107,9) = "&"
983 │ ├── body:
984 │ │ @ StatementsNode (location: (108,2)-(108,5))
985 │ │ └── body: (length: 1)
986 │ │ └── @ CallNode (location: (108,2)-(108,5))
987 │ │ ├── flags: variable_call
988 │ │ ├── receiver: ∅
989 │ │ ├── call_operator_loc: ∅
990 │ │ ├── name: :bar
991 │ │ ├── message_loc: (108,2)-(108,5) = "bar"
992 │ │ ├── opening_loc: ∅
993 │ │ ├── arguments: ∅
994 │ │ ├── closing_loc: ∅
995 │ │ └── block: ∅
996 │ ├── locals: [:block]
997 │ ├── locals_body_index: 1
998 │ ├── def_keyword_loc: (107,0)-(107,3) = "def"
999 │ ├── operator_loc: ∅
1000 │ ├── lparen_loc: (107,7)-(107,8) = "("
1001 │ ├── rparen_loc: (107,14)-(107,15) = ")"
1002 │ ├── equal_loc: ∅
1003 │ └── end_keyword_loc: (109,0)-(109,3) = "end"
1004 ├── @ DefNode (location: (111,0)-(113,3))
1005 │ ├── name: :foo
1006 │ ├── name_loc: (111,4)-(111,7) = "foo"
1007 │ ├── receiver: ∅
1008 │ ├── parameters:
1009 │ │ @ ParametersNode (location: (111,8)-(111,19))
1010 │ │ ├── requireds: (length: 1)
1011 │ │ │ └── @ RequiredParameterNode (location: (111,8)-(111,11))
1012 │ │ │ └── name: :bar
1013 │ │ ├── optionals: (length: 0)
1014 │ │ ├── rest: ∅
1015 │ │ ├── posts: (length: 0)
1016 │ │ ├── keywords: (length: 0)
1017 │ │ ├── keyword_rest: ∅
1018 │ │ └── block:
1019 │ │ @ BlockParameterNode (location: (111,13)-(111,19))
1020 │ │ ├── name: :block
1021 │ │ ├── name_loc: (111,14)-(111,19) = "block"
1022 │ │ └── operator_loc: (111,13)-(111,14) = "&"
1023 │ ├── body:
1024 │ │ @ StatementsNode (location: (112,2)-(112,5))
1025 │ │ └── body: (length: 1)
1026 │ │ └── @ LocalVariableReadNode (location: (112,2)-(112,5))
1027 │ │ ├── name: :bar
1028 │ │ └── depth: 0
1029 │ ├── locals: [:bar, :block]
1030 │ ├── locals_body_index: 2
1031 │ ├── def_keyword_loc: (111,0)-(111,3) = "def"
1032 │ ├── operator_loc: ∅
1033 │ ├── lparen_loc: (111,7)-(111,8) = "("
1034 │ ├── rparen_loc: (111,19)-(111,20) = ")"
1035 │ ├── equal_loc: ∅
1036 │ └── end_keyword_loc: (113,0)-(113,3) = "end"
1037 ├── @ DefNode (location: (115,0)-(118,3))
1038 │ ├── name: :foo
1039 │ ├── name_loc: (115,4)-(115,7) = "foo"
1040 │ ├── receiver: ∅
1041 │ ├── parameters: ∅
1042 │ ├── body:
1043 │ │ @ StatementsNode (location: (116,2)-(117,5))
1044 │ │ └── body: (length: 2)
1045 │ │ ├── @ CallNode (location: (116,2)-(116,5))
1046 │ │ │ ├── flags: variable_call
1047 │ │ │ ├── receiver: ∅
1048 │ │ │ ├── call_operator_loc: ∅
1049 │ │ │ ├── name: :bar
1050 │ │ │ ├── message_loc: (116,2)-(116,5) = "bar"
1051 │ │ │ ├── opening_loc: ∅
1052 │ │ │ ├── arguments: ∅
1053 │ │ │ ├── closing_loc: ∅
1054 │ │ │ └── block: ∅
1055 │ │ └── @ CallNode (location: (117,2)-(117,5))
1056 │ │ ├── flags: variable_call
1057 │ │ ├── receiver: ∅
1058 │ │ ├── call_operator_loc: ∅
1059 │ │ ├── name: :baz
1060 │ │ ├── message_loc: (117,2)-(117,5) = "baz"
1061 │ │ ├── opening_loc: ∅
1062 │ │ ├── arguments: ∅
1063 │ │ ├── closing_loc: ∅
1064 │ │ └── block: ∅
1065 │ ├── locals: []
1066 │ ├── locals_body_index: 0
1067 │ ├── def_keyword_loc: (115,0)-(115,3) = "def"
1068 │ ├── operator_loc: ∅
1069 │ ├── lparen_loc: ∅
1070 │ ├── rparen_loc: ∅
1071 │ ├── equal_loc: ∅
1072 │ └── end_keyword_loc: (118,0)-(118,3) = "end"
1073 ├── @ DefNode (location: (120,0)-(121,3))
1074 │ ├── name: :f
1075 │ ├── name_loc: (120,4)-(120,5) = "f"
1076 │ ├── receiver: ∅
1077 │ ├── parameters:
1078 │ │ @ ParametersNode (location: (120,6)-(120,11))
1079 │ │ ├── requireds: (length: 1)
1080 │ │ │ └── @ MultiTargetNode (location: (120,6)-(120,11))
1081 │ │ │ ├── lefts: (length: 1)
1082 │ │ │ │ └── @ MultiTargetNode (location: (120,7)-(120,10))
1083 │ │ │ │ ├── lefts: (length: 1)
1084 │ │ │ │ │ └── @ RequiredParameterNode (location: (120,8)-(120,9))
1085 │ │ │ │ │ └── name: :a
1086 │ │ │ │ ├── rest: ∅
1087 │ │ │ │ ├── rights: (length: 0)
1088 │ │ │ │ ├── lparen_loc: (120,7)-(120,8) = "("
1089 │ │ │ │ └── rparen_loc: (120,9)-(120,10) = ")"
1090 │ │ │ ├── rest: ∅
1091 │ │ │ ├── rights: (length: 0)
1092 │ │ │ ├── lparen_loc: (120,6)-(120,7) = "("
1093 │ │ │ └── rparen_loc: (120,10)-(120,11) = ")"
1094 │ │ ├── optionals: (length: 0)
1095 │ │ ├── rest: ∅
1096 │ │ ├── posts: (length: 0)
1097 │ │ ├── keywords: (length: 0)
1098 │ │ ├── keyword_rest: ∅
1099 │ │ └── block: ∅
1100 │ ├── body: ∅
1101 │ ├── locals: [:a]
1102 │ ├── locals_body_index: 1
1103 │ ├── def_keyword_loc: (120,0)-(120,3) = "def"
1104 │ ├── operator_loc: ∅
1105 │ ├── lparen_loc: (120,5)-(120,6) = "("
1106 │ ├── rparen_loc: (120,11)-(120,12) = ")"
1107 │ ├── equal_loc: ∅
1108 │ └── end_keyword_loc: (121,0)-(121,3) = "end"
1109 ├── @ DefNode (location: (123,0)-(124,3))
1110 │ ├── name: :foo
1111 │ ├── name_loc: (123,4)-(123,7) = "foo"
1112 │ ├── receiver: ∅
1113 │ ├── parameters:
1114 │ │ @ ParametersNode (location: (123,8)-(123,26))
1115 │ │ ├── requireds: (length: 0)
1116 │ │ ├── optionals: (length: 0)
1117 │ │ ├── rest: ∅
1118 │ │ ├── posts: (length: 0)
1119 │ │ ├── keywords: (length: 2)
1120 │ │ │ ├── @ RequiredKeywordParameterNode (location: (123,8)-(123,12))
1121 │ │ │ │ ├── name: :bar
1122 │ │ │ │ └── name_loc: (123,8)-(123,12) = "bar:"
1123 │ │ │ └── @ OptionalKeywordParameterNode (location: (123,14)-(123,26))
1124 │ │ │ ├── name: :baz
1125 │ │ │ ├── name_loc: (123,14)-(123,18) = "baz:"
1126 │ │ │ └── value:
1127 │ │ │ @ StringNode (location: (123,19)-(123,26))
1128 │ │ │ ├── flags: ∅
1129 │ │ │ ├── opening_loc: (123,19)-(123,20) = "\""
1130 │ │ │ ├── content_loc: (123,20)-(123,25) = "value"
1131 │ │ │ ├── closing_loc: (123,25)-(123,26) = "\""
1132 │ │ │ └── unescaped: "value"
1133 │ │ ├── keyword_rest: ∅
1134 │ │ └── block: ∅
1135 │ ├── body: ∅
1136 │ ├── locals: [:bar, :baz]
1137 │ ├── locals_body_index: 2
1138 │ ├── def_keyword_loc: (123,0)-(123,3) = "def"
1139 │ ├── operator_loc: ∅
1140 │ ├── lparen_loc: (123,7)-(123,8) = "("
1141 │ ├── rparen_loc: (123,26)-(123,27) = ")"
1142 │ ├── equal_loc: ∅
1143 │ └── end_keyword_loc: (124,0)-(124,3) = "end"
1144 ├── @ DefNode (location: (126,0)-(130,3))
1145 │ ├── name: :f
1146 │ ├── name_loc: (126,4)-(126,5) = "f"
1147 │ ├── receiver: ∅
1148 │ ├── parameters: ∅
1149 │ ├── body:
1150 │ │ @ StatementsNode (location: (127,2)-(127,12))
1151 │ │ └── body: (length: 1)
1152 │ │ └── @ InterpolatedStringNode (location: (127,2)-(127,12))
1153 │ │ ├── opening_loc: (127,2)-(127,12) = "<<-HEREDOC"
1154 │ │ ├── parts: (length: 3)
1155 │ │ │ ├── @ StringNode (location: (128,0)-(128,4))
1156 │ │ │ │ ├── flags: ∅
1157 │ │ │ │ ├── opening_loc: ∅
1158 │ │ │ │ ├── content_loc: (128,0)-(128,4) = " "
1159 │ │ │ │ ├── closing_loc: ∅
1160 │ │ │ │ └── unescaped: " "
1161 │ │ │ ├── @ EmbeddedStatementsNode (location: (128,4)-(128,7))
1162 │ │ │ │ ├── opening_loc: (128,4)-(128,6) = "\#{"
1163 │ │ │ │ ├── statements: ∅
1164 │ │ │ │ └── closing_loc: (128,6)-(128,7) = "}"
1165 │ │ │ └── @ StringNode (location: (128,7)-(129,0))
1166 │ │ │ ├── flags: ∅
1167 │ │ │ ├── opening_loc: ∅
1168 │ │ │ ├── content_loc: (128,7)-(129,0) = "\n"
1169 │ │ │ ├── closing_loc: ∅
1170 │ │ │ └── unescaped: "\n"
1171 │ │ └── closing_loc: (129,0)-(130,0) = " HEREDOC\n"
1172 │ ├── locals: []
1173 │ ├── locals_body_index: 0
1174 │ ├── def_keyword_loc: (126,0)-(126,3) = "def"
1175 │ ├── operator_loc: ∅
1176 │ ├── lparen_loc: ∅
1177 │ ├── rparen_loc: ∅
1178 │ ├── equal_loc: ∅
1179 │ └── end_keyword_loc: (130,0)-(130,3) = "end"
1180 └── @ DefNode (location: (132,0)-(134,3))
1181 ├── name: :f
1182 ├── name_loc: (132,4)-(132,5) = "f"
1183 ├── receiver: ∅
1184 ├── parameters: ∅
1185 ├── body:
1186 │ @ StatementsNode (location: (133,2)-(133,5))
1187 │ └── body: (length: 1)
1188 │ └── @ StringNode (location: (133,2)-(133,5))
1189 │ ├── flags: ∅
1190 │ ├── opening_loc: (133,2)-(133,4) = "%("
1191 │ ├── content_loc: (133,4)-(133,4) = ""
1192 │ ├── closing_loc: (133,4)-(133,5) = ")"
1193 │ └── unescaped: ""
1194 ├── locals: []
1195 ├── locals_body_index: 0
1196 ├── def_keyword_loc: (132,0)-(132,3) = "def"
1197 ├── operator_loc: ∅
1198 ├── lparen_loc: ∅
1199 ├── rparen_loc: ∅
1200 ├── equal_loc: ∅
1201 └── end_keyword_loc: (134,0)-(134,3) = "end"