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
|
@ ProgramNode (location: (1,0)-(4,17))
├── locals: [:a, :foo]
└── statements:
@ StatementsNode (location: (1,0)-(4,17))
└── body: (length: 4)
├── @ MatchRequiredNode (location: (1,0)-(1,8))
│ ├── value:
│ │ @ IntegerNode (location: (1,0)-(1,1))
│ │ └── flags: decimal
│ ├── pattern:
│ │ @ ArrayPatternNode (location: (1,5)-(1,8))
│ │ ├── constant: ∅
│ │ ├── requireds: (length: 1)
│ │ │ └── @ LocalVariableTargetNode (location: (1,6)-(1,7))
│ │ │ ├── name: :a
│ │ │ └── depth: 0
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── opening_loc: (1,5)-(1,6) = "["
│ │ └── closing_loc: (1,7)-(1,8) = "]"
│ └── operator_loc: (1,2)-(1,4) = "=>"
├── @ MatchRequiredNode (location: (2,0)-(2,8))
│ ├── value:
│ │ @ IntegerNode (location: (2,0)-(2,1))
│ │ └── flags: decimal
│ ├── pattern:
│ │ @ ArrayPatternNode (location: (2,5)-(2,8))
│ │ ├── constant: ∅
│ │ ├── requireds: (length: 0)
│ │ ├── rest:
│ │ │ @ SplatNode (location: (2,6)-(2,7))
│ │ │ ├── operator_loc: (2,6)-(2,7) = "*"
│ │ │ └── expression: ∅
│ │ ├── posts: (length: 0)
│ │ ├── opening_loc: (2,5)-(2,6) = "["
│ │ └── closing_loc: (2,7)-(2,8) = "]"
│ └── operator_loc: (2,2)-(2,4) = "=>"
├── @ MatchPredicateNode (location: (3,0)-(3,15))
│ ├── value:
│ │ @ IntegerNode (location: (3,0)-(3,1))
│ │ └── flags: decimal
│ ├── pattern:
│ │ @ FindPatternNode (location: (3,5)-(3,15))
│ │ ├── constant: ∅
│ │ ├── left:
│ │ │ @ SplatNode (location: (3,6)-(3,7))
│ │ │ ├── operator_loc: (3,6)-(3,7) = "*"
│ │ │ └── expression: ∅
│ │ ├── requireds: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,9)-(3,11))
│ │ │ └── flags: decimal
│ │ ├── right:
│ │ │ @ SplatNode (location: (3,13)-(3,14))
│ │ │ ├── operator_loc: (3,13)-(3,14) = "*"
│ │ │ └── expression: ∅
│ │ ├── opening_loc: (3,5)-(3,6) = "["
│ │ └── closing_loc: (3,14)-(3,15) = "]"
│ └── operator_loc: (3,2)-(3,4) = "in"
└── @ MatchPredicateNode (location: (4,0)-(4,17))
├── value:
│ @ IntegerNode (location: (4,0)-(4,1))
│ └── flags: decimal
├── pattern:
│ @ FindPatternNode (location: (4,5)-(4,17))
│ ├── constant: ∅
│ ├── left:
│ │ @ SplatNode (location: (4,6)-(4,7))
│ │ ├── operator_loc: (4,6)-(4,7) = "*"
│ │ └── expression: ∅
│ ├── requireds: (length: 1)
│ │ └── @ LocalVariableTargetNode (location: (4,9)-(4,10))
│ │ ├── name: :a
│ │ └── depth: 0
│ ├── right:
│ │ @ SplatNode (location: (4,12)-(4,16))
│ │ ├── operator_loc: (4,12)-(4,13) = "*"
│ │ └── expression:
│ │ @ LocalVariableTargetNode (location: (4,13)-(4,16))
│ │ ├── name: :foo
│ │ └── depth: 0
│ ├── opening_loc: (4,5)-(4,6) = "["
│ └── closing_loc: (4,16)-(4,17) = "]"
└── operator_loc: (4,2)-(4,4) = "in"
|