summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/if.txt
blob: 31c33d368f53f27675cf609c2b116582fb450159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
@ ProgramNode (location: (1,0)-(42,3))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(42,3))
    └── body: (length: 13)
        ├── @ IfNode (location: (1,0)-(1,15))
        │   ├── if_keyword_loc: (1,0)-(1,2) = "if"
        │   ├── predicate:
        │   │   @ TrueNode (location: (1,3)-(1,7))
        │   ├── then_keyword_loc: ∅
        │   ├── statements:
        │   │   @ StatementsNode (location: (1,9)-(1,10))
        │   │   └── body: (length: 1)
        │   │       └── @ IntegerNode (location: (1,9)-(1,10))
        │   │           ├── flags: decimal
        │   │           └── value: 1
        │   ├── consequent: ∅
        │   └── end_keyword_loc: (1,12)-(1,15) = "end"
        ├── @ IfNode (location: (3,0)-(4,12))
        │   ├── if_keyword_loc: (3,0)-(3,2) = "if"
        │   ├── predicate:
        │   │   @ TrueNode (location: (3,3)-(3,7))
        │   ├── then_keyword_loc: ∅
        │   ├── statements:
        │   │   @ StatementsNode (location: (4,0)-(4,1))
        │   │   └── body: (length: 1)
        │   │       └── @ IntegerNode (location: (4,0)-(4,1))
        │   │           ├── flags: decimal
        │   │           └── value: 1
        │   ├── consequent:
        │   │   @ ElseNode (location: (4,2)-(4,12))
        │   │   ├── else_keyword_loc: (4,2)-(4,6) = "else"
        │   │   ├── statements:
        │   │   │   @ StatementsNode (location: (4,7)-(4,8))
        │   │   │   └── body: (length: 1)
        │   │   │       └── @ IntegerNode (location: (4,7)-(4,8))
        │   │   │           ├── flags: decimal
        │   │   │           └── value: 2
        │   │   └── end_keyword_loc: (4,9)-(4,12) = "end"
        │   └── end_keyword_loc: (4,9)-(4,12) = "end"
        ├── @ IfNode (location: (6,0)-(6,73))
        │   ├── if_keyword_loc: (6,0)-(6,2) = "if"
        │   ├── predicate:
        │   │   @ TrueNode (location: (6,3)-(6,7))
        │   ├── then_keyword_loc: (6,8)-(6,12) = "then"
        │   ├── statements:
        │   │   @ StatementsNode (location: (6,13)-(6,17))
        │   │   └── body: (length: 1)
        │   │       └── @ TrueNode (location: (6,13)-(6,17))
        │   ├── consequent:
        │   │   @ IfNode (location: (6,18)-(6,73))
        │   │   ├── if_keyword_loc: (6,18)-(6,23) = "elsif"
        │   │   ├── predicate:
        │   │   │   @ FalseNode (location: (6,24)-(6,29))
        │   │   ├── then_keyword_loc: (6,30)-(6,34) = "then"
        │   │   ├── statements:
        │   │   │   @ StatementsNode (location: (6,35)-(6,40))
        │   │   │   └── body: (length: 1)
        │   │   │       └── @ FalseNode (location: (6,35)-(6,40))
        │   │   ├── consequent:
        │   │   │   @ IfNode (location: (6,41)-(6,73))
        │   │   │   ├── if_keyword_loc: (6,41)-(6,46) = "elsif"
        │   │   │   ├── predicate:
        │   │   │   │   @ NilNode (location: (6,47)-(6,50))
        │   │   │   ├── then_keyword_loc: (6,51)-(6,55) = "then"
        │   │   │   ├── statements:
        │   │   │   │   @ StatementsNode (location: (6,56)-(6,59))
        │   │   │   │   └── body: (length: 1)
        │   │   │   │       └── @ NilNode (location: (6,56)-(6,59))
        │   │   │   ├── consequent:
        │   │   │   │   @ ElseNode (location: (6,60)-(6,73))
        │   │   │   │   ├── else_keyword_loc: (6,60)-(6,64) = "else"
        │   │   │   │   ├── statements:
        │   │   │   │   │   @ StatementsNode (location: (6,65)-(6,69))
        │   │   │   │   │   └── body: (length: 1)
        │   │   │   │   │       └── @ SelfNode (location: (6,65)-(6,69))
        │   │   │   │   └── end_keyword_loc: (6,70)-(6,73) = "end"
        │   │   │   └── end_keyword_loc: (6,70)-(6,73) = "end"
        │   │   └── end_keyword_loc: (6,70)-(6,73) = "end"
        │   └── end_keyword_loc: (6,70)-(6,73) = "end"
        ├── @ IfNode (location: (8,0)-(8,9))
        │   ├── if_keyword_loc: (8,2)-(8,4) = "if"
        │   ├── predicate:
        │   │   @ TrueNode (location: (8,5)-(8,9))
        │   ├── then_keyword_loc: ∅
        │   ├── statements:
        │   │   @ StatementsNode (location: (8,0)-(8,1))
        │   │   └── body: (length: 1)
        │   │       └── @ IntegerNode (location: (8,0)-(8,1))
        │   │           ├── flags: decimal
        │   │           └── value: 1
        │   ├── consequent: ∅
        │   └── end_keyword_loc: ∅
        ├── @ CallNode (location: (10,0)-(10,21))
        │   ├── flags: ignore_visibility
        │   ├── receiver: ∅
        │   ├── call_operator_loc: ∅
        │   ├── name: :tap
        │   ├── message_loc: (10,0)-(10,3) = "tap"
        │   ├── opening_loc: ∅
        │   ├── arguments: ∅
        │   ├── closing_loc: ∅
        │   └── block:
        │       @ BlockNode (location: (10,4)-(10,21))
        │       ├── locals: []
        │       ├── parameters: ∅
        │       ├── body:
        │       │   @ StatementsNode (location: (10,6)-(10,19))
        │       │   └── body: (length: 1)
        │       │       └── @ IfNode (location: (10,6)-(10,19))
        │       │           ├── if_keyword_loc: (10,12)-(10,14) = "if"
        │       │           ├── predicate:
        │       │           │   @ TrueNode (location: (10,15)-(10,19))
        │       │           ├── then_keyword_loc: ∅
        │       │           ├── statements:
        │       │           │   @ StatementsNode (location: (10,6)-(10,11))
        │       │           │   └── body: (length: 1)
        │       │           │       └── @ BreakNode (location: (10,6)-(10,11))
        │       │           │           ├── arguments: ∅
        │       │           │           └── keyword_loc: (10,6)-(10,11) = "break"
        │       │           ├── consequent: ∅
        │       │           └── end_keyword_loc: ∅
        │       ├── opening_loc: (10,4)-(10,5) = "{"
        │       └── closing_loc: (10,20)-(10,21) = "}"
        ├── @ CallNode (location: (12,0)-(12,20))
        │   ├── flags: ignore_visibility
        │   ├── receiver: ∅
        │   ├── call_operator_loc: ∅
        │   ├── name: :tap
        │   ├── message_loc: (12,0)-(12,3) = "tap"
        │   ├── opening_loc: ∅
        │   ├── arguments: ∅
        │   ├── closing_loc: ∅
        │   └── block:
        │       @ BlockNode (location: (12,4)-(12,20))
        │       ├── locals: []
        │       ├── parameters: ∅
        │       ├── body:
        │       │   @ StatementsNode (location: (12,6)-(12,18))
        │       │   └── body: (length: 1)
        │       │       └── @ IfNode (location: (12,6)-(12,18))
        │       │           ├── if_keyword_loc: (12,11)-(12,13) = "if"
        │       │           ├── predicate:
        │       │           │   @ TrueNode (location: (12,14)-(12,18))
        │       │           ├── then_keyword_loc: ∅
        │       │           ├── statements:
        │       │           │   @ StatementsNode (location: (12,6)-(12,10))
        │       │           │   └── body: (length: 1)
        │       │           │       └── @ NextNode (location: (12,6)-(12,10))
        │       │           │           ├── arguments: ∅
        │       │           │           └── keyword_loc: (12,6)-(12,10) = "next"
        │       │           ├── consequent: ∅
        │       │           └── end_keyword_loc: ∅
        │       ├── opening_loc: (12,4)-(12,5) = "{"
        │       └── closing_loc: (12,19)-(12,20) = "}"
        ├── @ IfNode (location: (14,0)-(14,14))
        │   ├── if_keyword_loc: (14,7)-(14,9) = "if"
        │   ├── predicate:
        │   │   @ TrueNode (location: (14,10)-(14,14))
        │   ├── then_keyword_loc: ∅
        │   ├── statements:
        │   │   @ StatementsNode (location: (14,0)-(14,6))
        │   │   └── body: (length: 1)
        │   │       └── @ ReturnNode (location: (14,0)-(14,6))
        │   │           ├── flags: ∅
        │   │           ├── keyword_loc: (14,0)-(14,6) = "return"
        │   │           └── arguments: ∅
        │   ├── consequent: ∅
        │   └── end_keyword_loc: ∅
        ├── @ CallNode (location: (16,0)-(16,38))
        │   ├── flags: ignore_visibility
        │   ├── receiver: ∅
        │   ├── call_operator_loc: ∅
        │   ├── name: :tap
        │   ├── message_loc: (16,0)-(16,3) = "tap"
        │   ├── opening_loc: ∅
        │   ├── arguments: ∅
        │   ├── closing_loc: ∅
        │   └── block:
        │       @ BlockNode (location: (16,4)-(16,38))
        │       ├── locals: []
        │       ├── parameters: ∅
        │       ├── body:
        │       │   @ StatementsNode (location: (16,6)-(16,36))
        │       │   └── body: (length: 1)
        │       │       └── @ IfNode (location: (16,6)-(16,36))
        │       │           ├── if_keyword_loc: (16,6)-(16,8) = "if"
        │       │           ├── predicate:
        │       │           │   @ CallNode (location: (16,9)-(16,18))
        │       │           │   ├── flags: variable_call, ignore_visibility
        │       │           │   ├── receiver: ∅
        │       │           │   ├── call_operator_loc: ∅
        │       │           │   ├── name: :exit_loop
        │       │           │   ├── message_loc: (16,9)-(16,18) = "exit_loop"
        │       │           │   ├── opening_loc: ∅
        │       │           │   ├── arguments: ∅
        │       │           │   ├── closing_loc: ∅
        │       │           │   └── block: ∅
        │       │           ├── then_keyword_loc: (16,19)-(16,23) = "then"
        │       │           ├── statements:
        │       │           │   @ StatementsNode (location: (16,24)-(16,32))
        │       │           │   └── body: (length: 1)
        │       │           │       └── @ BreakNode (location: (16,24)-(16,32))
        │       │           │           ├── arguments:
        │       │           │           │   @ ArgumentsNode (location: (16,30)-(16,32))
        │       │           │           │   ├── flags: ∅
        │       │           │           │   └── arguments: (length: 1)
        │       │           │           │       └── @ IntegerNode (location: (16,30)-(16,32))
        │       │           │           │           ├── flags: decimal
        │       │           │           │           └── value: 42
        │       │           │           └── keyword_loc: (16,24)-(16,29) = "break"
        │       │           ├── consequent: ∅
        │       │           └── end_keyword_loc: (16,33)-(16,36) = "end"
        │       ├── opening_loc: (16,4)-(16,5) = "{"
        │       └── closing_loc: (16,37)-(16,38) = "}"
        ├── @ IfNode (location: (18,0)-(20,3))
        │   ├── if_keyword_loc: (18,0)-(18,2) = "if"
        │   ├── predicate:
        │   │   @ CallNode (location: (18,3)-(18,6))
        │   │   ├── flags: variable_call, ignore_visibility
        │   │   ├── receiver: ∅
        │   │   ├── call_operator_loc: ∅
        │   │   ├── name: :foo
        │   │   ├── message_loc: (18,3)-(18,6) = "foo"
        │   │   ├── opening_loc: ∅
        │   │   ├── arguments: ∅
        │   │   ├── closing_loc: ∅
        │   │   └── block: ∅
        │   ├── then_keyword_loc: (19,0)-(19,4) = "then"
        │   ├── statements:
        │   │   @ StatementsNode (location: (19,5)-(19,8))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (19,5)-(19,8))
        │   │           ├── flags: variable_call, ignore_visibility
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── name: :bar
        │   │           ├── message_loc: (19,5)-(19,8) = "bar"
        │   │           ├── opening_loc: ∅
        │   │           ├── arguments: ∅
        │   │           ├── closing_loc: ∅
        │   │           └── block: ∅
        │   ├── consequent: ∅
        │   └── end_keyword_loc: (20,0)-(20,3) = "end"
        ├── @ IfNode (location: (22,0)-(22,11))
        │   ├── if_keyword_loc: (22,7)-(22,9) = "if"
        │   ├── predicate:
        │   │   @ CallNode (location: (22,10)-(22,11))
        │   │   ├── flags: variable_call, ignore_visibility
        │   │   ├── receiver: ∅
        │   │   ├── call_operator_loc: ∅
        │   │   ├── name: :c
        │   │   ├── message_loc: (22,10)-(22,11) = "c"
        │   │   ├── opening_loc: ∅
        │   │   ├── arguments: ∅
        │   │   ├── closing_loc: ∅
        │   │   └── block: ∅
        │   ├── then_keyword_loc: ∅
        │   ├── statements:
        │   │   @ StatementsNode (location: (22,0)-(22,6))
        │   │   └── body: (length: 1)
        │   │       └── @ IfNode (location: (22,0)-(22,6))
        │   │           ├── if_keyword_loc: (22,2)-(22,4) = "if"
        │   │           ├── predicate:
        │   │           │   @ CallNode (location: (22,5)-(22,6))
        │   │           │   ├── flags: variable_call, ignore_visibility
        │   │           │   ├── receiver: ∅
        │   │           │   ├── call_operator_loc: ∅
        │   │           │   ├── name: :b
        │   │           │   ├── message_loc: (22,5)-(22,6) = "b"
        │   │           │   ├── opening_loc: ∅
        │   │           │   ├── arguments: ∅
        │   │           │   ├── closing_loc: ∅
        │   │           │   └── block: ∅
        │   │           ├── then_keyword_loc: ∅
        │   │           ├── statements:
        │   │           │   @ StatementsNode (location: (22,0)-(22,1))
        │   │           │   └── body: (length: 1)
        │   │           │       └── @ CallNode (location: (22,0)-(22,1))
        │   │           │           ├── flags: variable_call, ignore_visibility
        │   │           │           ├── receiver: ∅
        │   │           │           ├── call_operator_loc: ∅
        │   │           │           ├── name: :a
        │   │           │           ├── message_loc: (22,0)-(22,1) = "a"
        │   │           │           ├── opening_loc: ∅
        │   │           │           ├── arguments: ∅
        │   │           │           ├── closing_loc: ∅
        │   │           │           └── block: ∅
        │   │           ├── consequent: ∅
        │   │           └── end_keyword_loc: ∅
        │   ├── consequent: ∅
        │   └── end_keyword_loc: ∅
        ├── @ IfNode (location: (24,0)-(27,3))
        │   ├── if_keyword_loc: (24,0)-(24,2) = "if"
        │   ├── predicate:
        │   │   @ TrueNode (location: (24,3)-(24,7))
        │   ├── then_keyword_loc: ∅
        │   ├── statements:
        │   │   @ StatementsNode (location: (25,2)-(25,6))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (25,2)-(25,6))
        │   │           ├── flags: ignore_visibility
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── name: :a
        │   │           ├── message_loc: (25,2)-(25,3) = "a"
        │   │           ├── opening_loc: ∅
        │   │           ├── arguments:
        │   │           │   @ ArgumentsNode (location: (25,4)-(25,6))
        │   │           │   ├── flags: ∅
        │   │           │   └── arguments: (length: 1)
        │   │           │       └── @ KeywordHashNode (location: (25,4)-(25,6))
        │   │           │           ├── flags: symbol_keys
        │   │           │           └── elements: (length: 1)
        │   │           │               └── @ AssocNode (location: (25,4)-(25,6))
        │   │           │                   ├── key:
        │   │           │                   │   @ SymbolNode (location: (25,4)-(25,6))
        │   │           │                   │   ├── flags: forced_us_ascii_encoding
        │   │           │                   │   ├── opening_loc: ∅
        │   │           │                   │   ├── value_loc: (25,4)-(25,5) = "b"
        │   │           │                   │   ├── closing_loc: (25,5)-(25,6) = ":"
        │   │           │                   │   └── unescaped: "b"
        │   │           │                   ├── value:
        │   │           │                   │   @ ImplicitNode (location: (25,4)-(25,6))
        │   │           │                   │   └── value:
        │   │           │                   │       @ CallNode (location: (25,4)-(25,6))
        │   │           │                   │       ├── flags: ignore_visibility
        │   │           │                   │       ├── receiver: ∅
        │   │           │                   │       ├── call_operator_loc: ∅
        │   │           │                   │       ├── name: :b
        │   │           │                   │       ├── message_loc: (25,4)-(25,5) = "b"
        │   │           │                   │       ├── opening_loc: ∅
        │   │           │                   │       ├── arguments: ∅
        │   │           │                   │       ├── closing_loc: ∅
        │   │           │                   │       └── block: ∅
        │   │           │                   └── operator_loc: ∅
        │   │           ├── closing_loc: ∅
        │   │           └── block: ∅
        │   ├── consequent:
        │   │   @ ElseNode (location: (26,0)-(27,3))
        │   │   ├── else_keyword_loc: (26,0)-(26,4) = "else"
        │   │   ├── statements: ∅
        │   │   └── end_keyword_loc: (27,0)-(27,3) = "end"
        │   └── end_keyword_loc: (27,0)-(27,3) = "end"
        ├── @ IfNode (location: (29,0)-(31,3))
        │   ├── if_keyword_loc: (29,0)-(29,2) = "if"
        │   ├── predicate:
        │   │   @ MatchPredicateNode (location: (29,3)-(29,12))
        │   │   ├── value:
        │   │   │   @ CallNode (location: (29,3)-(29,7))
        │   │   │   ├── flags: variable_call, ignore_visibility
        │   │   │   ├── receiver: ∅
        │   │   │   ├── call_operator_loc: ∅
        │   │   │   ├── name: :type
        │   │   │   ├── message_loc: (29,3)-(29,7) = "type"
        │   │   │   ├── opening_loc: ∅
        │   │   │   ├── arguments: ∅
        │   │   │   ├── closing_loc: ∅
        │   │   │   └── block: ∅
        │   │   ├── pattern:
        │   │   │   @ IntegerNode (location: (29,11)-(29,12))
        │   │   │   ├── flags: decimal
        │   │   │   └── value: 1
        │   │   └── operator_loc: (29,8)-(29,10) = "in"
        │   ├── then_keyword_loc: ∅
        │   ├── statements: ∅
        │   ├── consequent:
        │   │   @ IfNode (location: (30,0)-(31,3))
        │   │   ├── if_keyword_loc: (30,0)-(30,5) = "elsif"
        │   │   ├── predicate:
        │   │   │   @ MatchPredicateNode (location: (30,6)-(30,15))
        │   │   │   ├── value:
        │   │   │   │   @ CallNode (location: (30,6)-(30,10))
        │   │   │   │   ├── flags: variable_call, ignore_visibility
        │   │   │   │   ├── receiver: ∅
        │   │   │   │   ├── call_operator_loc: ∅
        │   │   │   │   ├── name: :type
        │   │   │   │   ├── message_loc: (30,6)-(30,10) = "type"
        │   │   │   │   ├── opening_loc: ∅
        │   │   │   │   ├── arguments: ∅
        │   │   │   │   ├── closing_loc: ∅
        │   │   │   │   └── block: ∅
        │   │   │   ├── pattern:
        │   │   │   │   @ ConstantReadNode (location: (30,14)-(30,15))
        │   │   │   │   └── name: :B
        │   │   │   └── operator_loc: (30,11)-(30,13) = "in"
        │   │   ├── then_keyword_loc: ∅
        │   │   ├── statements: ∅
        │   │   ├── consequent: ∅
        │   │   └── end_keyword_loc: (31,0)-(31,3) = "end"
        │   └── end_keyword_loc: (31,0)-(31,3) = "end"
        └── @ IfNode (location: (33,0)-(42,3))
            ├── if_keyword_loc: (33,0)-(33,2) = "if"
            ├── predicate:
            │   @ CallNode (location: (33,3)-(33,5))
            │   ├── flags: variable_call, ignore_visibility
            │   ├── receiver: ∅
            │   ├── call_operator_loc: ∅
            │   ├── name: :f1
            │   ├── message_loc: (33,3)-(33,5) = "f1"
            │   ├── opening_loc: ∅
            │   ├── arguments: ∅
            │   ├── closing_loc: ∅
            │   └── block: ∅
            ├── then_keyword_loc: ∅
            ├── statements:
            │   @ StatementsNode (location: (34,2)-(35,5))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (34,2)-(35,5))
            │           ├── flags: ignore_visibility
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── name: :lambda
            │           ├── message_loc: (34,2)-(34,8) = "lambda"
            │           ├── opening_loc: ∅
            │           ├── arguments: ∅
            │           ├── closing_loc: ∅
            │           └── block:
            │               @ BlockNode (location: (34,9)-(35,5))
            │               ├── locals: [:_]
            │               ├── parameters:
            │               │   @ BlockParametersNode (location: (34,12)-(34,15))
            │               │   ├── parameters:
            │               │   │   @ ParametersNode (location: (34,13)-(34,14))
            │               │   │   ├── requireds: (length: 1)
            │               │   │   │   └── @ RequiredParameterNode (location: (34,13)-(34,14))
            │               │   │   │       ├── flags: ∅
            │               │   │   │       └── name: :_
            │               │   │   ├── optionals: (length: 0)
            │               │   │   ├── rest: ∅
            │               │   │   ├── posts: (length: 0)
            │               │   │   ├── keywords: (length: 0)
            │               │   │   ├── keyword_rest: ∅
            │               │   │   └── block: ∅
            │               │   ├── locals: (length: 0)
            │               │   ├── opening_loc: (34,12)-(34,13) = "|"
            │               │   └── closing_loc: (34,14)-(34,15) = "|"
            │               ├── body: ∅
            │               ├── opening_loc: (34,9)-(34,11) = "do"
            │               └── closing_loc: (35,2)-(35,5) = "end"
            ├── consequent:
            │   @ IfNode (location: (36,0)-(42,3))
            │   ├── if_keyword_loc: (36,0)-(36,5) = "elsif"
            │   ├── predicate:
            │   │   @ CallNode (location: (36,6)-(36,8))
            │   │   ├── flags: variable_call, ignore_visibility
            │   │   ├── receiver: ∅
            │   │   ├── call_operator_loc: ∅
            │   │   ├── name: :f2
            │   │   ├── message_loc: (36,6)-(36,8) = "f2"
            │   │   ├── opening_loc: ∅
            │   │   ├── arguments: ∅
            │   │   ├── closing_loc: ∅
            │   │   └── block: ∅
            │   ├── then_keyword_loc: ∅
            │   ├── statements:
            │   │   @ StatementsNode (location: (37,2)-(38,5))
            │   │   └── body: (length: 1)
            │   │       └── @ CallNode (location: (37,2)-(38,5))
            │   │           ├── flags: ignore_visibility
            │   │           ├── receiver: ∅
            │   │           ├── call_operator_loc: ∅
            │   │           ├── name: :lambda
            │   │           ├── message_loc: (37,2)-(37,8) = "lambda"
            │   │           ├── opening_loc: ∅
            │   │           ├── arguments: ∅
            │   │           ├── closing_loc: ∅
            │   │           └── block:
            │   │               @ BlockNode (location: (37,9)-(38,5))
            │   │               ├── locals: [:_]
            │   │               ├── parameters:
            │   │               │   @ BlockParametersNode (location: (37,12)-(37,15))
            │   │               │   ├── parameters:
            │   │               │   │   @ ParametersNode (location: (37,13)-(37,14))
            │   │               │   │   ├── requireds: (length: 1)
            │   │               │   │   │   └── @ RequiredParameterNode (location: (37,13)-(37,14))
            │   │               │   │   │       ├── flags: ∅
            │   │               │   │   │       └── name: :_
            │   │               │   │   ├── optionals: (length: 0)
            │   │               │   │   ├── rest: ∅
            │   │               │   │   ├── posts: (length: 0)
            │   │               │   │   ├── keywords: (length: 0)
            │   │               │   │   ├── keyword_rest: ∅
            │   │               │   │   └── block: ∅
            │   │               │   ├── locals: (length: 0)
            │   │               │   ├── opening_loc: (37,12)-(37,13) = "|"
            │   │               │   └── closing_loc: (37,14)-(37,15) = "|"
            │   │               ├── body: ∅
            │   │               ├── opening_loc: (37,9)-(37,11) = "do"
            │   │               └── closing_loc: (38,2)-(38,5) = "end"
            │   ├── consequent:
            │   │   @ ElseNode (location: (39,0)-(42,3))
            │   │   ├── else_keyword_loc: (39,0)-(39,4) = "else"
            │   │   ├── statements:
            │   │   │   @ StatementsNode (location: (40,2)-(41,5))
            │   │   │   └── body: (length: 1)
            │   │   │       └── @ CallNode (location: (40,2)-(41,5))
            │   │   │           ├── flags: ignore_visibility
            │   │   │           ├── receiver: ∅
            │   │   │           ├── call_operator_loc: ∅
            │   │   │           ├── name: :lambda
            │   │   │           ├── message_loc: (40,2)-(40,8) = "lambda"
            │   │   │           ├── opening_loc: ∅
            │   │   │           ├── arguments: ∅
            │   │   │           ├── closing_loc: ∅
            │   │   │           └── block:
            │   │   │               @ BlockNode (location: (40,9)-(41,5))
            │   │   │               ├── locals: [:_]
            │   │   │               ├── parameters:
            │   │   │               │   @ BlockParametersNode (location: (40,12)-(40,15))
            │   │   │               │   ├── parameters:
            │   │   │               │   │   @ ParametersNode (location: (40,13)-(40,14))
            │   │   │               │   │   ├── requireds: (length: 1)
            │   │   │               │   │   │   └── @ RequiredParameterNode (location: (40,13)-(40,14))
            │   │   │               │   │   │       ├── flags: ∅
            │   │   │               │   │   │       └── name: :_
            │   │   │               │   │   ├── optionals: (length: 0)
            │   │   │               │   │   ├── rest: ∅
            │   │   │               │   │   ├── posts: (length: 0)
            │   │   │               │   │   ├── keywords: (length: 0)
            │   │   │               │   │   ├── keyword_rest: ∅
            │   │   │               │   │   └── block: ∅
            │   │   │               │   ├── locals: (length: 0)
            │   │   │               │   ├── opening_loc: (40,12)-(40,13) = "|"
            │   │   │               │   └── closing_loc: (40,14)-(40,15) = "|"
            │   │   │               ├── body: ∅
            │   │   │               ├── opening_loc: (40,9)-(40,11) = "do"
            │   │   │               └── closing_loc: (41,2)-(41,5) = "end"
            │   │   └── end_keyword_loc: (42,0)-(42,3) = "end"
            │   └── end_keyword_loc: (42,0)-(42,3) = "end"
            └── end_keyword_loc: (42,0)-(42,3) = "end"