aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/whitequark/forward_arg_with_open_args.txt
blob: 5067075b4286e7f1cdb66a1c46906ba822ff9cde (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
@ ProgramNode (location: (0...292))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...292))
    └── body: (length: 10)
        ├── @ ParenthesesNode (location: (0...28))
        │   ├── body:
        │   │   @ StatementsNode (location: (1...27))
        │   │   └── body: (length: 1)
        │   │       └── @ DefNode (location: (1...27))
        │   │           ├── name: :foo
        │   │           ├── name_loc: (5...8) = "foo"
        │   │           ├── receiver: ∅
        │   │           ├── parameters:
        │   │           │   @ ParametersNode (location: (9...12))
        │   │           │   ├── requireds: (length: 0)
        │   │           │   ├── optionals: (length: 0)
        │   │           │   ├── rest: ∅
        │   │           │   ├── posts: (length: 0)
        │   │           │   ├── keywords: (length: 0)
        │   │           │   ├── keyword_rest:
        │   │           │   │   @ ForwardingParameterNode (location: (9...12))
        │   │           │   └── block: ∅
        │   │           ├── body:
        │   │           │   @ StatementsNode (location: (15...23))
        │   │           │   └── body: (length: 1)
        │   │           │       └── @ CallNode (location: (15...23))
        │   │           │           ├── receiver: ∅
        │   │           │           ├── call_operator_loc: ∅
        │   │           │           ├── message_loc: (15...18) = "bar"
        │   │           │           ├── opening_loc: (18...19) = "("
        │   │           │           ├── arguments:
        │   │           │           │   @ ArgumentsNode (location: (19...22))
        │   │           │           │   └── arguments: (length: 1)
        │   │           │           │       └── @ ForwardingArgumentsNode (location: (19...22))
        │   │           │           ├── closing_loc: (22...23) = ")"
        │   │           │           ├── block: ∅
        │   │           │           ├── flags: 
        │   │           │           └── name: "bar"
        │   │           ├── locals: [:"..."]
        │   │           ├── def_keyword_loc: (1...4) = "def"
        │   │           ├── operator_loc: ∅
        │   │           ├── lparen_loc: ∅
        │   │           ├── rparen_loc: ∅
        │   │           ├── equal_loc: ∅
        │   │           └── end_keyword_loc: (24...27) = "end"
        │   ├── opening_loc: (0...1) = "("
        │   └── closing_loc: (27...28) = ")"
        ├── @ ParenthesesNode (location: (30...58))
        │   ├── body:
        │   │   @ StatementsNode (location: (31...57))
        │   │   └── body: (length: 1)
        │   │       └── @ DefNode (location: (31...57))
        │   │           ├── name: :foo
        │   │           ├── name_loc: (35...38) = "foo"
        │   │           ├── receiver: ∅
        │   │           ├── parameters:
        │   │           │   @ ParametersNode (location: (39...42))
        │   │           │   ├── requireds: (length: 0)
        │   │           │   ├── optionals: (length: 0)
        │   │           │   ├── rest: ∅
        │   │           │   ├── posts: (length: 0)
        │   │           │   ├── keywords: (length: 0)
        │   │           │   ├── keyword_rest:
        │   │           │   │   @ ForwardingParameterNode (location: (39...42))
        │   │           │   └── block: ∅
        │   │           ├── body:
        │   │           │   @ StatementsNode (location: (44...52))
        │   │           │   └── body: (length: 1)
        │   │           │       └── @ CallNode (location: (44...52))
        │   │           │           ├── receiver: ∅
        │   │           │           ├── call_operator_loc: ∅
        │   │           │           ├── message_loc: (44...47) = "bar"
        │   │           │           ├── opening_loc: (47...48) = "("
        │   │           │           ├── arguments:
        │   │           │           │   @ ArgumentsNode (location: (48...51))
        │   │           │           │   └── arguments: (length: 1)
        │   │           │           │       └── @ ForwardingArgumentsNode (location: (48...51))
        │   │           │           ├── closing_loc: (51...52) = ")"
        │   │           │           ├── block: ∅
        │   │           │           ├── flags: 
        │   │           │           └── name: "bar"
        │   │           ├── locals: [:"..."]
        │   │           ├── def_keyword_loc: (31...34) = "def"
        │   │           ├── operator_loc: ∅
        │   │           ├── lparen_loc: ∅
        │   │           ├── rparen_loc: ∅
        │   │           ├── equal_loc: ∅
        │   │           └── end_keyword_loc: (54...57) = "end"
        │   ├── opening_loc: (30...31) = "("
        │   └── closing_loc: (57...58) = ")"
        ├── @ DefNode (location: (60...75))
        │   ├── name: :foo
        │   ├── name_loc: (64...67) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (68...71))
        │   │   ├── requireds: (length: 0)
        │   │   ├── optionals: (length: 0)
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (68...71))
        │   │   └── block: ∅
        │   ├── body: ∅
        │   ├── locals: [:"..."]
        │   ├── def_keyword_loc: (60...63) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (72...75) = "end"
        ├── @ DefNode (location: (77...103))
        │   ├── name: :foo
        │   ├── name_loc: (81...84) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (85...88))
        │   │   ├── requireds: (length: 0)
        │   │   ├── optionals: (length: 0)
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (85...88))
        │   │   └── block: ∅
        │   ├── body:
        │   │   @ StatementsNode (location: (90...98))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (90...98))
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── message_loc: (90...93) = "bar"
        │   │           ├── opening_loc: (93...94) = "("
        │   │           ├── arguments:
        │   │           │   @ ArgumentsNode (location: (94...97))
        │   │           │   └── arguments: (length: 1)
        │   │           │       └── @ ForwardingArgumentsNode (location: (94...97))
        │   │           ├── closing_loc: (97...98) = ")"
        │   │           ├── block: ∅
        │   │           ├── flags: 
        │   │           └── name: "bar"
        │   ├── locals: [:"..."]
        │   ├── def_keyword_loc: (77...80) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (100...103) = "end"
        ├── @ DefNode (location: (105...134))
        │   ├── name: :foo
        │   ├── name_loc: (109...112) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (113...119))
        │   │   ├── requireds: (length: 1)
        │   │   │   └── @ RequiredParameterNode (location: (113...114))
        │   │   │       └── name: :a
        │   │   ├── optionals: (length: 0)
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (116...119))
        │   │   └── block: ∅
        │   ├── body:
        │   │   @ StatementsNode (location: (122...130))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (122...130))
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── message_loc: (122...125) = "bar"
        │   │           ├── opening_loc: (125...126) = "("
        │   │           ├── arguments:
        │   │           │   @ ArgumentsNode (location: (126...129))
        │   │           │   └── arguments: (length: 1)
        │   │           │       └── @ ForwardingArgumentsNode (location: (126...129))
        │   │           ├── closing_loc: (129...130) = ")"
        │   │           ├── block: ∅
        │   │           ├── flags: 
        │   │           └── name: "bar"
        │   ├── locals: [:a, :"..."]
        │   ├── def_keyword_loc: (105...108) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (131...134) = "end"
        ├── @ DefNode (location: (136...165))
        │   ├── name: :foo
        │   ├── name_loc: (140...143) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (144...150))
        │   │   ├── requireds: (length: 1)
        │   │   │   └── @ RequiredParameterNode (location: (144...145))
        │   │   │       └── name: :a
        │   │   ├── optionals: (length: 0)
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (147...150))
        │   │   └── block: ∅
        │   ├── body:
        │   │   @ StatementsNode (location: (152...160))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (152...160))
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── message_loc: (152...155) = "bar"
        │   │           ├── opening_loc: (155...156) = "("
        │   │           ├── arguments:
        │   │           │   @ ArgumentsNode (location: (156...159))
        │   │           │   └── arguments: (length: 1)
        │   │           │       └── @ ForwardingArgumentsNode (location: (156...159))
        │   │           ├── closing_loc: (159...160) = ")"
        │   │           ├── block: ∅
        │   │           ├── flags: 
        │   │           └── name: "bar"
        │   ├── locals: [:a, :"..."]
        │   ├── def_keyword_loc: (136...139) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (162...165) = "end"
        ├── @ DefNode (location: (167...192))
        │   ├── name: :foo
        │   ├── name_loc: (171...174) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (175...188))
        │   │   ├── requireds: (length: 1)
        │   │   │   └── @ RequiredParameterNode (location: (175...176))
        │   │   │       └── name: :a
        │   │   ├── optionals: (length: 1)
        │   │   │   └── @ OptionalParameterNode (location: (178...183))
        │   │   │       ├── name: :b
        │   │   │       ├── name_loc: (178...179) = "b"
        │   │   │       ├── operator_loc: (180...181) = "="
        │   │   │       └── value:
        │   │   │           @ IntegerNode (location: (182...183))
        │   │   │           └── flags: decimal
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (185...188))
        │   │   └── block: ∅
        │   ├── body: ∅
        │   ├── locals: [:a, :b, :"..."]
        │   ├── def_keyword_loc: (167...170) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (189...192) = "end"
        ├── @ DefNode (location: (194...227))
        │   ├── name: :foo
        │   ├── name_loc: (198...201) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (202...212))
        │   │   ├── requireds: (length: 0)
        │   │   ├── optionals: (length: 1)
        │   │   │   └── @ OptionalParameterNode (location: (202...207))
        │   │   │       ├── name: :b
        │   │   │       ├── name_loc: (202...203) = "b"
        │   │   │       ├── operator_loc: (204...205) = "="
        │   │   │       └── value:
        │   │   │           @ IntegerNode (location: (206...207))
        │   │   │           └── flags: decimal
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (209...212))
        │   │   └── block: ∅
        │   ├── body:
        │   │   @ StatementsNode (location: (215...223))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (215...223))
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── message_loc: (215...218) = "bar"
        │   │           ├── opening_loc: (218...219) = "("
        │   │           ├── arguments:
        │   │           │   @ ArgumentsNode (location: (219...222))
        │   │           │   └── arguments: (length: 1)
        │   │           │       └── @ ForwardingArgumentsNode (location: (219...222))
        │   │           ├── closing_loc: (222...223) = ")"
        │   │           ├── block: ∅
        │   │           ├── flags: 
        │   │           └── name: "bar"
        │   ├── locals: [:b, :"..."]
        │   ├── def_keyword_loc: (194...197) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (224...227) = "end"
        ├── @ DefNode (location: (229...262))
        │   ├── name: :foo
        │   ├── name_loc: (233...236) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (237...247))
        │   │   ├── requireds: (length: 0)
        │   │   ├── optionals: (length: 1)
        │   │   │   └── @ OptionalParameterNode (location: (237...242))
        │   │   │       ├── name: :b
        │   │   │       ├── name_loc: (237...238) = "b"
        │   │   │       ├── operator_loc: (239...240) = "="
        │   │   │       └── value:
        │   │   │           @ IntegerNode (location: (241...242))
        │   │   │           └── flags: decimal
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (244...247))
        │   │   └── block: ∅
        │   ├── body:
        │   │   @ StatementsNode (location: (249...257))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (249...257))
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── message_loc: (249...252) = "bar"
        │   │           ├── opening_loc: (252...253) = "("
        │   │           ├── arguments:
        │   │           │   @ ArgumentsNode (location: (253...256))
        │   │           │   └── arguments: (length: 1)
        │   │           │       └── @ ForwardingArgumentsNode (location: (253...256))
        │   │           ├── closing_loc: (256...257) = ")"
        │   │           ├── block: ∅
        │   │           ├── flags: 
        │   │           └── name: "bar"
        │   ├── locals: [:b, :"..."]
        │   ├── def_keyword_loc: (229...232) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (259...262) = "end"
        └── @ DefNode (location: (264...292))
            ├── name: :foo
            ├── name_loc: (268...271) = "foo"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (272...278))
            │   ├── requireds: (length: 1)
            │   │   └── @ RequiredParameterNode (location: (272...273))
            │   │       └── name: :a
            │   ├── optionals: (length: 0)
            │   ├── rest: ∅
            │   ├── posts: (length: 0)
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest:
            │   │   @ ForwardingParameterNode (location: (275...278))
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (280...288))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (280...288))
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── message_loc: (280...283) = "bar"
            │           ├── opening_loc: (283...284) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (284...287))
            │           │   └── arguments: (length: 1)
            │           │       └── @ ForwardingArgumentsNode (location: (284...287))
            │           ├── closing_loc: (287...288) = ")"
            │           ├── block: ∅
            │           ├── flags: 
            │           └── name: "bar"
            ├── locals: [:a, :"..."]
            ├── def_keyword_loc: (264...267) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (271...272) = "("
            ├── rparen_loc: (278...279) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (289...292) = "end"