|
1 | | -@ ProgramNode (location: (1,0)-(27,3)) |
| 1 | +@ ProgramNode (location: (1,0)-(29,25)) |
2 | 2 | ├── flags: ∅ |
3 | | -├── locals: [:i, :j, :k, :a, :b, :c, :d] |
| 3 | +├── locals: [:i, :j, :k, :a, :b, :c, :d, :x] |
4 | 4 | └── statements: |
5 | | - @ StatementsNode (location: (1,0)-(27,3)) |
| 5 | + @ StatementsNode (location: (1,0)-(29,25)) |
6 | 6 | ├── flags: ∅ |
7 | | - └── body: (length: 8) |
| 7 | + └── body: (length: 9) |
8 | 8 | ├── @ ForNode (location: (1,0)-(3,3)) |
9 | 9 | │ ├── flags: newline |
10 | 10 | │ ├── index: |
|
270 | 270 | │ ├── in_keyword_loc: (21,14)-(21,16) = "in" |
271 | 271 | │ ├── do_keyword_loc: ∅ |
272 | 272 | │ └── end_keyword_loc: (23,0)-(23,3) = "end" |
273 | | - └── @ ForNode (location: (25,0)-(27,3)) |
| 273 | + ├── @ ForNode (location: (25,0)-(27,3)) |
| 274 | + │ ├── flags: newline |
| 275 | + │ ├── index: |
| 276 | + │ │ @ MultiTargetNode (location: (25,4)-(25,17)) |
| 277 | + │ │ ├── flags: ∅ |
| 278 | + │ │ ├── lefts: (length: 1) |
| 279 | + │ │ │ └── @ MultiTargetNode (location: (25,4)-(25,10)) |
| 280 | + │ │ │ ├── flags: ∅ |
| 281 | + │ │ │ ├── lefts: (length: 2) |
| 282 | + │ │ │ │ ├── @ LocalVariableTargetNode (location: (25,5)-(25,6)) |
| 283 | + │ │ │ │ │ ├── flags: ∅ |
| 284 | + │ │ │ │ │ ├── name: :a |
| 285 | + │ │ │ │ │ └── depth: 0 |
| 286 | + │ │ │ │ └── @ LocalVariableTargetNode (location: (25,8)-(25,9)) |
| 287 | + │ │ │ │ ├── flags: ∅ |
| 288 | + │ │ │ │ ├── name: :b |
| 289 | + │ │ │ │ └── depth: 0 |
| 290 | + │ │ │ ├── rest: ∅ |
| 291 | + │ │ │ ├── rights: (length: 0) |
| 292 | + │ │ │ ├── lparen_loc: (25,4)-(25,5) = "(" |
| 293 | + │ │ │ └── rparen_loc: (25,9)-(25,10) = ")" |
| 294 | + │ │ ├── rest: |
| 295 | + │ │ │ @ SplatNode (location: (25,12)-(25,14)) |
| 296 | + │ │ │ ├── flags: ∅ |
| 297 | + │ │ │ ├── operator_loc: (25,12)-(25,13) = "*" |
| 298 | + │ │ │ └── expression: |
| 299 | + │ │ │ @ LocalVariableTargetNode (location: (25,13)-(25,14)) |
| 300 | + │ │ │ ├── flags: ∅ |
| 301 | + │ │ │ ├── name: :c |
| 302 | + │ │ │ └── depth: 0 |
| 303 | + │ │ ├── rights: (length: 1) |
| 304 | + │ │ │ └── @ LocalVariableTargetNode (location: (25,16)-(25,17)) |
| 305 | + │ │ │ ├── flags: ∅ |
| 306 | + │ │ │ ├── name: :d |
| 307 | + │ │ │ └── depth: 0 |
| 308 | + │ │ ├── lparen_loc: ∅ |
| 309 | + │ │ └── rparen_loc: ∅ |
| 310 | + │ ├── collection: |
| 311 | + │ │ @ RangeNode (location: (25,21)-(25,26)) |
| 312 | + │ │ ├── flags: static_literal |
| 313 | + │ │ ├── left: |
| 314 | + │ │ │ @ IntegerNode (location: (25,21)-(25,22)) |
| 315 | + │ │ │ ├── flags: static_literal, decimal |
| 316 | + │ │ │ └── value: 1 |
| 317 | + │ │ ├── right: |
| 318 | + │ │ │ @ IntegerNode (location: (25,24)-(25,26)) |
| 319 | + │ │ │ ├── flags: static_literal, decimal |
| 320 | + │ │ │ └── value: 10 |
| 321 | + │ │ └── operator_loc: (25,22)-(25,24) = ".." |
| 322 | + │ ├── statements: |
| 323 | + │ │ @ StatementsNode (location: (26,0)-(26,1)) |
| 324 | + │ │ ├── flags: ∅ |
| 325 | + │ │ └── body: (length: 1) |
| 326 | + │ │ └── @ LocalVariableReadNode (location: (26,0)-(26,1)) |
| 327 | + │ │ ├── flags: newline |
| 328 | + │ │ ├── name: :i |
| 329 | + │ │ └── depth: 0 |
| 330 | + │ ├── for_keyword_loc: (25,0)-(25,3) = "for" |
| 331 | + │ ├── in_keyword_loc: (25,18)-(25,20) = "in" |
| 332 | + │ ├── do_keyword_loc: ∅ |
| 333 | + │ └── end_keyword_loc: (27,0)-(27,3) = "end" |
| 334 | + └── @ ForNode (location: (29,0)-(29,25)) |
274 | 335 | ├── flags: newline |
275 | 336 | ├── index: |
276 | | - │ @ MultiTargetNode (location: (25,4)-(25,17)) |
| 337 | + │ @ LocalVariableTargetNode (location: (29,4)-(29,5)) |
277 | 338 | │ ├── flags: ∅ |
278 | | - │ ├── lefts: (length: 1) |
279 | | - │ │ └── @ MultiTargetNode (location: (25,4)-(25,10)) |
280 | | - │ │ ├── flags: ∅ |
281 | | - │ │ ├── lefts: (length: 2) |
282 | | - │ │ │ ├── @ LocalVariableTargetNode (location: (25,5)-(25,6)) |
283 | | - │ │ │ │ ├── flags: ∅ |
284 | | - │ │ │ │ ├── name: :a |
285 | | - │ │ │ │ └── depth: 0 |
286 | | - │ │ │ └── @ LocalVariableTargetNode (location: (25,8)-(25,9)) |
287 | | - │ │ │ ├── flags: ∅ |
288 | | - │ │ │ ├── name: :b |
289 | | - │ │ │ └── depth: 0 |
290 | | - │ │ ├── rest: ∅ |
291 | | - │ │ ├── rights: (length: 0) |
292 | | - │ │ ├── lparen_loc: (25,4)-(25,5) = "(" |
293 | | - │ │ └── rparen_loc: (25,9)-(25,10) = ")" |
294 | | - │ ├── rest: |
295 | | - │ │ @ SplatNode (location: (25,12)-(25,14)) |
296 | | - │ │ ├── flags: ∅ |
297 | | - │ │ ├── operator_loc: (25,12)-(25,13) = "*" |
298 | | - │ │ └── expression: |
299 | | - │ │ @ LocalVariableTargetNode (location: (25,13)-(25,14)) |
300 | | - │ │ ├── flags: ∅ |
301 | | - │ │ ├── name: :c |
302 | | - │ │ └── depth: 0 |
303 | | - │ ├── rights: (length: 1) |
304 | | - │ │ └── @ LocalVariableTargetNode (location: (25,16)-(25,17)) |
305 | | - │ │ ├── flags: ∅ |
306 | | - │ │ ├── name: :d |
307 | | - │ │ └── depth: 0 |
308 | | - │ ├── lparen_loc: ∅ |
309 | | - │ └── rparen_loc: ∅ |
| 339 | + │ ├── name: :x |
| 340 | + │ └── depth: 0 |
310 | 341 | ├── collection: |
311 | | - │ @ RangeNode (location: (25,21)-(25,26)) |
312 | | - │ ├── flags: static_literal |
313 | | - │ ├── left: |
314 | | - │ │ @ IntegerNode (location: (25,21)-(25,22)) |
315 | | - │ │ ├── flags: static_literal, decimal |
316 | | - │ │ └── value: 1 |
317 | | - │ ├── right: |
318 | | - │ │ @ IntegerNode (location: (25,24)-(25,26)) |
319 | | - │ │ ├── flags: static_literal, decimal |
320 | | - │ │ └── value: 10 |
321 | | - │ └── operator_loc: (25,22)-(25,24) = ".." |
| 342 | + │ @ MatchPredicateNode (location: (29,9)-(29,16)) |
| 343 | + │ ├── flags: ∅ |
| 344 | + │ ├── value: |
| 345 | + │ │ @ LocalVariableReadNode (location: (29,9)-(29,10)) |
| 346 | + │ │ ├── flags: ∅ |
| 347 | + │ │ ├── name: :a |
| 348 | + │ │ └── depth: 0 |
| 349 | + │ ├── pattern: |
| 350 | + │ │ @ ArrayPatternNode (location: (29,14)-(29,16)) |
| 351 | + │ │ ├── flags: ∅ |
| 352 | + │ │ ├── constant: ∅ |
| 353 | + │ │ ├── requireds: (length: 1) |
| 354 | + │ │ │ └── @ LocalVariableTargetNode (location: (29,14)-(29,15)) |
| 355 | + │ │ │ ├── flags: ∅ |
| 356 | + │ │ │ ├── name: :b |
| 357 | + │ │ │ └── depth: 0 |
| 358 | + │ │ ├── rest: |
| 359 | + │ │ │ @ ImplicitRestNode (location: (29,15)-(29,16)) |
| 360 | + │ │ │ └── flags: ∅ |
| 361 | + │ │ ├── posts: (length: 0) |
| 362 | + │ │ ├── opening_loc: ∅ |
| 363 | + │ │ └── closing_loc: ∅ |
| 364 | + │ └── operator_loc: (29,11)-(29,13) = "in" |
322 | 365 | ├── statements: |
323 | | - │ @ StatementsNode (location: (26,0)-(26,1)) |
| 366 | + │ @ StatementsNode (location: (29,20)-(29,21)) |
324 | 367 | │ ├── flags: ∅ |
325 | 368 | │ └── body: (length: 1) |
326 | | - │ └── @ LocalVariableReadNode (location: (26,0)-(26,1)) |
327 | | - │ ├── flags: newline |
328 | | - │ ├── name: :i |
329 | | - │ └── depth: 0 |
330 | | - ├── for_keyword_loc: (25,0)-(25,3) = "for" |
331 | | - ├── in_keyword_loc: (25,18)-(25,20) = "in" |
332 | | - ├── do_keyword_loc: ∅ |
333 | | - └── end_keyword_loc: (27,0)-(27,3) = "end" |
| 369 | + │ └── @ IntegerNode (location: (29,20)-(29,21)) |
| 370 | + │ ├── flags: newline, static_literal, decimal |
| 371 | + │ └── value: 1 |
| 372 | + ├── for_keyword_loc: (29,0)-(29,3) = "for" |
| 373 | + ├── in_keyword_loc: (29,6)-(29,8) = "in" |
| 374 | + ├── do_keyword_loc: (29,17)-(29,19) = "do" |
| 375 | + └── end_keyword_loc: (29,22)-(29,25) = "end" |
0 commit comments