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
|
@ ProgramNode (location: (1,0)-(19,8))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(19,8))
└── body: (length: 10)
├── @ ParenthesesNode (location: (1,0)-(1,6))
│ ├── body:
│ │ @ StatementsNode (location: (1,1)-(1,5))
│ │ └── body: (length: 1)
│ │ └── @ RangeNode (location: (1,1)-(1,5))
│ │ ├── left: ∅
│ │ ├── right:
│ │ │ @ IntegerNode (location: (1,4)-(1,5))
│ │ │ └── flags: decimal
│ │ ├── operator_loc: (1,1)-(1,4) = "..."
│ │ └── flags: exclude_end
│ ├── opening_loc: (1,0)-(1,1) = "("
│ └── closing_loc: (1,5)-(1,6) = ")"
├── @ ParenthesesNode (location: (3,0)-(3,5))
│ ├── body:
│ │ @ StatementsNode (location: (3,1)-(3,4))
│ │ └── body: (length: 1)
│ │ └── @ RangeNode (location: (3,1)-(3,4))
│ │ ├── left: ∅
│ │ ├── right:
│ │ │ @ IntegerNode (location: (3,3)-(3,4))
│ │ │ └── flags: decimal
│ │ ├── operator_loc: (3,1)-(3,3) = ".."
│ │ └── flags: ∅
│ ├── opening_loc: (3,0)-(3,1) = "("
│ └── closing_loc: (3,4)-(3,5) = ")"
├── @ RangeNode (location: (5,0)-(5,5))
│ ├── left:
│ │ @ IntegerNode (location: (5,0)-(5,1))
│ │ └── flags: decimal
│ ├── right:
│ │ @ IntegerNode (location: (5,4)-(5,5))
│ │ └── flags: decimal
│ ├── operator_loc: (5,1)-(5,4) = "..."
│ └── flags: exclude_end
├── @ CallNode (location: (7,0)-(7,9))
│ ├── receiver:
│ │ @ CallNode (location: (7,0)-(7,3))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :foo
│ │ ├── message_loc: (7,0)-(7,3) = "foo"
│ │ ├── opening_loc: ∅
│ │ ├── arguments: ∅
│ │ ├── closing_loc: ∅
│ │ ├── block: ∅
│ │ └── flags: variable_call
│ ├── call_operator_loc: ∅
│ ├── name: :[]
│ ├── message_loc: (7,3)-(7,9) = "[...2]"
│ ├── opening_loc: (7,3)-(7,4) = "["
│ ├── arguments:
│ │ @ ArgumentsNode (location: (7,4)-(7,8))
│ │ ├── arguments: (length: 1)
│ │ │ └── @ RangeNode (location: (7,4)-(7,8))
│ │ │ ├── left: ∅
│ │ │ ├── right:
│ │ │ │ @ IntegerNode (location: (7,7)-(7,8))
│ │ │ │ └── flags: decimal
│ │ │ ├── operator_loc: (7,4)-(7,7) = "..."
│ │ │ └── flags: exclude_end
│ │ └── flags: ∅
│ ├── closing_loc: (7,8)-(7,9) = "]"
│ ├── block: ∅
│ └── flags: ∅
├── @ HashNode (location: (9,0)-(9,15))
│ ├── opening_loc: (9,0)-(9,1) = "{"
│ ├── elements: (length: 1)
│ │ └── @ AssocNode (location: (9,2)-(9,13))
│ │ ├── key:
│ │ │ @ SymbolNode (location: (9,2)-(9,6))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── value_loc: (9,2)-(9,5) = "foo"
│ │ │ ├── closing_loc: (9,5)-(9,6) = ":"
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ RangeNode (location: (9,7)-(9,13))
│ │ │ ├── left: ∅
│ │ │ ├── right:
│ │ │ │ @ CallNode (location: (9,10)-(9,13))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── name: :bar
│ │ │ │ ├── message_loc: (9,10)-(9,13) = "bar"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ └── flags: variable_call
│ │ │ ├── operator_loc: (9,7)-(9,10) = "..."
│ │ │ └── flags: exclude_end
│ │ └── operator_loc: ∅
│ └── closing_loc: (9,14)-(9,15) = "}"
├── @ ParenthesesNode (location: (11,0)-(11,6))
│ ├── body:
│ │ @ StatementsNode (location: (11,1)-(11,5))
│ │ └── body: (length: 1)
│ │ └── @ RangeNode (location: (11,1)-(11,5))
│ │ ├── left:
│ │ │ @ IntegerNode (location: (11,1)-(11,2))
│ │ │ └── flags: decimal
│ │ ├── right: ∅
│ │ ├── operator_loc: (11,2)-(11,5) = "..."
│ │ └── flags: exclude_end
│ ├── opening_loc: (11,0)-(11,1) = "("
│ └── closing_loc: (11,5)-(11,6) = ")"
├── @ RangeNode (location: (13,0)-(13,4))
│ ├── left:
│ │ @ IntegerNode (location: (13,0)-(13,1))
│ │ └── flags: decimal
│ ├── right:
│ │ @ IntegerNode (location: (13,3)-(13,4))
│ │ └── flags: decimal
│ ├── operator_loc: (13,1)-(13,3) = ".."
│ └── flags: ∅
├── @ HashNode (location: (15,0)-(15,14))
│ ├── opening_loc: (15,0)-(15,1) = "{"
│ ├── elements: (length: 1)
│ │ └── @ AssocNode (location: (15,2)-(15,12))
│ │ ├── key:
│ │ │ @ SymbolNode (location: (15,2)-(15,6))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── value_loc: (15,2)-(15,5) = "foo"
│ │ │ ├── closing_loc: (15,5)-(15,6) = ":"
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ RangeNode (location: (15,7)-(15,12))
│ │ │ ├── left: ∅
│ │ │ ├── right:
│ │ │ │ @ CallNode (location: (15,9)-(15,12))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── name: :bar
│ │ │ │ ├── message_loc: (15,9)-(15,12) = "bar"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ └── flags: variable_call
│ │ │ ├── operator_loc: (15,7)-(15,9) = ".."
│ │ │ └── flags: ∅
│ │ └── operator_loc: ∅
│ └── closing_loc: (15,13)-(15,14) = "}"
├── @ ParenthesesNode (location: (17,0)-(17,5))
│ ├── body:
│ │ @ StatementsNode (location: (17,1)-(17,4))
│ │ └── body: (length: 1)
│ │ └── @ RangeNode (location: (17,1)-(17,4))
│ │ ├── left:
│ │ │ @ IntegerNode (location: (17,1)-(17,2))
│ │ │ └── flags: decimal
│ │ ├── right: ∅
│ │ ├── operator_loc: (17,2)-(17,4) = ".."
│ │ └── flags: ∅
│ ├── opening_loc: (17,0)-(17,1) = "("
│ └── closing_loc: (17,4)-(17,5) = ")"
└── @ RangeNode (location: (19,0)-(19,8))
├── left:
│ @ IntegerNode (location: (19,0)-(19,1))
│ └── flags: decimal
├── right:
│ @ RangeNode (location: (19,5)-(19,8))
│ ├── left: ∅
│ ├── right:
│ │ @ IntegerNode (location: (19,7)-(19,8))
│ │ └── flags: decimal
│ ├── operator_loc: (19,5)-(19,7) = ".."
│ └── flags: ∅
├── operator_loc: (19,2)-(19,4) = ".."
└── flags: ∅
|