Debian Codegraph @

test/prism/snapshots/unparser/corpus/literal/defs.txt

raw
1 @ ProgramNode (location: (1,0)-(40,3))
2 ├── locals: []
3 └── statements:
4 @ StatementsNode (location: (1,0)-(40,3))
5 └── body: (length: 10)
6 ├── @ DefNode (location: (1,0)-(2,3))
7 │ ├── name: :foo
8 │ ├── name_loc: (1,9)-(1,12) = "foo"
9 │ ├── receiver:
10 │ │ @ SelfNode (location: (1,4)-(1,8))
11 │ ├── parameters: ∅
12 │ ├── body: ∅
13 │ ├── locals: []
14 │ ├── locals_body_index: 0
15 │ ├── def_keyword_loc: (1,0)-(1,3) = "def"
16 │ ├── operator_loc: (1,8)-(1,9) = "."
17 │ ├── lparen_loc: ∅
18 │ ├── rparen_loc: ∅
19 │ ├── equal_loc: ∅
20 │ └── end_keyword_loc: (2,0)-(2,3) = "end"
21 ├── @ DefNode (location: (4,0)-(6,3))
22 │ ├── name: :foo
23 │ ├── name_loc: (4,9)-(4,12) = "foo"
24 │ ├── receiver:
25 │ │ @ SelfNode (location: (4,4)-(4,8))
26 │ ├── parameters: ∅
27 │ ├── body:
28 │ │ @ StatementsNode (location: (5,2)-(5,5))
29 │ │ └── body: (length: 1)
30 │ │ └── @ CallNode (location: (5,2)-(5,5))
31 │ │ ├── flags: variable_call
32 │ │ ├── receiver: ∅
33 │ │ ├── call_operator_loc: ∅
34 │ │ ├── name: :bar
35 │ │ ├── message_loc: (5,2)-(5,5) = "bar"
36 │ │ ├── opening_loc: ∅
37 │ │ ├── arguments: ∅
38 │ │ ├── closing_loc: ∅
39 │ │ └── block: ∅
40 │ ├── locals: []
41 │ ├── locals_body_index: 0
42 │ ├── def_keyword_loc: (4,0)-(4,3) = "def"
43 │ ├── operator_loc: (4,8)-(4,9) = "."
44 │ ├── lparen_loc: ∅
45 │ ├── rparen_loc: ∅
46 │ ├── equal_loc: ∅
47 │ └── end_keyword_loc: (6,0)-(6,3) = "end"
48 ├── @ DefNode (location: (8,0)-(11,3))
49 │ ├── name: :foo
50 │ ├── name_loc: (8,9)-(8,12) = "foo"
51 │ ├── receiver:
52 │ │ @ SelfNode (location: (8,4)-(8,8))
53 │ ├── parameters: ∅
54 │ ├── body:
55 │ │ @ StatementsNode (location: (9,2)-(10,5))
56 │ │ └── body: (length: 2)
57 │ │ ├── @ CallNode (location: (9,2)-(9,5))
58 │ │ │ ├── flags: variable_call
59 │ │ │ ├── receiver: ∅
60 │ │ │ ├── call_operator_loc: ∅
61 │ │ │ ├── name: :bar
62 │ │ │ ├── message_loc: (9,2)-(9,5) = "bar"
63 │ │ │ ├── opening_loc: ∅
64 │ │ │ ├── arguments: ∅
65 │ │ │ ├── closing_loc: ∅
66 │ │ │ └── block: ∅
67 │ │ └── @ CallNode (location: (10,2)-(10,5))
68 │ │ ├── flags: variable_call
69 │ │ ├── receiver: ∅
70 │ │ ├── call_operator_loc: ∅
71 │ │ ├── name: :baz
72 │ │ ├── message_loc: (10,2)-(10,5) = "baz"
73 │ │ ├── opening_loc: ∅
74 │ │ ├── arguments: ∅
75 │ │ ├── closing_loc: ∅
76 │ │ └── block: ∅
77 │ ├── locals: []
78 │ ├── locals_body_index: 0
79 │ ├── def_keyword_loc: (8,0)-(8,3) = "def"
80 │ ├── operator_loc: (8,8)-(8,9) = "."
81 │ ├── lparen_loc: ∅
82 │ ├── rparen_loc: ∅
83 │ ├── equal_loc: ∅
84 │ └── end_keyword_loc: (11,0)-(11,3) = "end"
85 ├── @ DefNode (location: (13,0)-(15,3))
86 │ ├── name: :bar
87 │ ├── name_loc: (13,8)-(13,11) = "bar"
88 │ ├── receiver:
89 │ │ @ ConstantReadNode (location: (13,4)-(13,7))
90 │ │ └── name: :Foo
91 │ ├── parameters: ∅
92 │ ├── body:
93 │ │ @ StatementsNode (location: (14,2)-(14,5))
94 │ │ └── body: (length: 1)
95 │ │ └── @ CallNode (location: (14,2)-(14,5))
96 │ │ ├── flags: variable_call
97 │ │ ├── receiver: ∅
98 │ │ ├── call_operator_loc: ∅
99 │ │ ├── name: :bar
100 │ │ ├── message_loc: (14,2)-(14,5) = "bar"
101 │ │ ├── opening_loc: ∅
102 │ │ ├── arguments: ∅
103 │ │ ├── closing_loc: ∅
104 │ │ └── block: ∅
105 │ ├── locals: []
106 │ ├── locals_body_index: 0
107 │ ├── def_keyword_loc: (13,0)-(13,3) = "def"
108 │ ├── operator_loc: (13,7)-(13,8) = "."
109 │ ├── lparen_loc: ∅
110 │ ├── rparen_loc: ∅
111 │ ├── equal_loc: ∅
112 │ └── end_keyword_loc: (15,0)-(15,3) = "end"
113 ├── @ DefNode (location: (17,0)-(20,3))
114 │ ├── name: :bar
115 │ ├── name_loc: (18,3)-(18,6) = "bar"
116 │ ├── receiver:
117 │ │ @ ParenthesesNode (location: (17,4)-(18,2))
118 │ │ ├── body:
119 │ │ │ @ CallNode (location: (17,5)-(18,1))
120 │ │ │ ├── flags: ∅
121 │ │ │ ├── receiver: ∅
122 │ │ │ ├── call_operator_loc: ∅
123 │ │ │ ├── name: :foo
124 │ │ │ ├── message_loc: (17,5)-(17,8) = "foo"
125 │ │ │ ├── opening_loc: ∅
126 │ │ │ ├── arguments: ∅
127 │ │ │ ├── closing_loc: ∅
128 │ │ │ └── block:
129 │ │ │ @ BlockNode (location: (17,9)-(18,1))
130 │ │ │ ├── locals: [:bar]
131 │ │ │ ├── locals_body_index: 1
132 │ │ │ ├── parameters:
133 │ │ │ │ @ BlockParametersNode (location: (17,11)-(17,16))
134 │ │ │ │ ├── parameters:
135 │ │ │ │ │ @ ParametersNode (location: (17,12)-(17,15))
136 │ │ │ │ │ ├── requireds: (length: 1)
137 │ │ │ │ │ │ └── @ RequiredParameterNode (location: (17,12)-(17,15))
138 │ │ │ │ │ │ └── name: :bar
139 │ │ │ │ │ ├── optionals: (length: 0)
140 │ │ │ │ │ ├── rest: ∅
141 │ │ │ │ │ ├── posts: (length: 0)
142 │ │ │ │ │ ├── keywords: (length: 0)
143 │ │ │ │ │ ├── keyword_rest: ∅
144 │ │ │ │ │ └── block: ∅
145 │ │ │ │ ├── locals: (length: 0)
146 │ │ │ │ ├── opening_loc: (17,11)-(17,12) = "|"
147 │ │ │ │ └── closing_loc: (17,15)-(17,16) = "|"
148 │ │ │ ├── body: ∅
149 │ │ │ ├── opening_loc: (17,9)-(17,10) = "{"
150 │ │ │ └── closing_loc: (18,0)-(18,1) = "}"
151 │ │ ├── opening_loc: (17,4)-(17,5) = "("
152 │ │ └── closing_loc: (18,1)-(18,2) = ")"
153 │ ├── parameters: ∅
154 │ ├── body:
155 │ │ @ StatementsNode (location: (19,2)-(19,5))
156 │ │ └── body: (length: 1)
157 │ │ └── @ CallNode (location: (19,2)-(19,5))
158 │ │ ├── flags: variable_call
159 │ │ ├── receiver: ∅
160 │ │ ├── call_operator_loc: ∅
161 │ │ ├── name: :bar
162 │ │ ├── message_loc: (19,2)-(19,5) = "bar"
163 │ │ ├── opening_loc: ∅
164 │ │ ├── arguments: ∅
165 │ │ ├── closing_loc: ∅
166 │ │ └── block: ∅
167 │ ├── locals: []
168 │ ├── locals_body_index: 0
169 │ ├── def_keyword_loc: (17,0)-(17,3) = "def"
170 │ ├── operator_loc: (18,2)-(18,3) = "."
171 │ ├── lparen_loc: ∅
172 │ ├── rparen_loc: ∅
173 │ ├── equal_loc: ∅
174 │ └── end_keyword_loc: (20,0)-(20,3) = "end"
175 ├── @ DefNode (location: (22,0)-(24,3))
176 │ ├── name: :bar
177 │ ├── name_loc: (22,13)-(22,16) = "bar"
178 │ ├── receiver:
179 │ │ @ ParenthesesNode (location: (22,4)-(22,12))
180 │ │ ├── body:
181 │ │ │ @ CallNode (location: (22,5)-(22,11))
182 │ │ │ ├── flags: ∅
183 │ │ │ ├── receiver: ∅
184 │ │ │ ├── call_operator_loc: ∅
185 │ │ │ ├── name: :foo
186 │ │ │ ├── message_loc: (22,5)-(22,8) = "foo"
187 │ │ │ ├── opening_loc: (22,8)-(22,9) = "("
188 │ │ │ ├── arguments:
189 │ │ │ │ @ ArgumentsNode (location: (22,9)-(22,10))
190 │ │ │ │ ├── flags: ∅
191 │ │ │ │ └── arguments: (length: 1)
192 │ │ │ │ └── @ IntegerNode (location: (22,9)-(22,10))
193 │ │ │ │ └── flags: decimal
194 │ │ │ ├── closing_loc: (22,10)-(22,11) = ")"
195 │ │ │ └── block: ∅
196 │ │ ├── opening_loc: (22,4)-(22,5) = "("
197 │ │ └── closing_loc: (22,11)-(22,12) = ")"
198 │ ├── parameters: ∅
199 │ ├── body:
200 │ │ @ StatementsNode (location: (23,2)-(23,5))
201 │ │ └── body: (length: 1)
202 │ │ └── @ CallNode (location: (23,2)-(23,5))
203 │ │ ├── flags: variable_call
204 │ │ ├── receiver: ∅
205 │ │ ├── call_operator_loc: ∅
206 │ │ ├── name: :bar
207 │ │ ├── message_loc: (23,2)-(23,5) = "bar"
208 │ │ ├── opening_loc: ∅
209 │ │ ├── arguments: ∅
210 │ │ ├── closing_loc: ∅
211 │ │ └── block: ∅
212 │ ├── locals: []
213 │ ├── locals_body_index: 0
214 │ ├── def_keyword_loc: (22,0)-(22,3) = "def"
215 │ ├── operator_loc: (22,12)-(22,13) = "."
216 │ ├── lparen_loc: ∅
217 │ ├── rparen_loc: ∅
218 │ ├── equal_loc: ∅
219 │ └── end_keyword_loc: (24,0)-(24,3) = "end"
220 ├── @ DefNode (location: (26,0)-(28,3))
221 │ ├── name: :bar
222 │ ├── name_loc: (26,19)-(26,22) = "bar"
223 │ ├── receiver:
224 │ │ @ ParenthesesNode (location: (26,4)-(26,18))
225 │ │ ├── body:
226 │ │ │ @ CallNode (location: (26,5)-(26,17))
227 │ │ │ ├── flags: ∅
228 │ │ │ ├── receiver:
229 │ │ │ │ @ ConstantPathNode (location: (26,5)-(26,13))
230 │ │ │ │ ├── parent:
231 │ │ │ │ │ @ ConstantReadNode (location: (26,5)-(26,8))
232 │ │ │ │ │ └── name: :Foo
233 │ │ │ │ ├── child:
234 │ │ │ │ │ @ ConstantReadNode (location: (26,10)-(26,13))
235 │ │ │ │ │ └── name: :Bar
236 │ │ │ │ └── delimiter_loc: (26,8)-(26,10) = "::"
237 │ │ │ ├── call_operator_loc: (26,13)-(26,14) = "."
238 │ │ │ ├── name: :baz
239 │ │ │ ├── message_loc: (26,14)-(26,17) = "baz"
240 │ │ │ ├── opening_loc: ∅
241 │ │ │ ├── arguments: ∅
242 │ │ │ ├── closing_loc: ∅
243 │ │ │ └── block: ∅
244 │ │ ├── opening_loc: (26,4)-(26,5) = "("
245 │ │ └── closing_loc: (26,17)-(26,18) = ")"
246 │ ├── parameters: ∅
247 │ ├── body:
248 │ │ @ StatementsNode (location: (27,2)-(27,5))
249 │ │ └── body: (length: 1)
250 │ │ └── @ CallNode (location: (27,2)-(27,5))
251 │ │ ├── flags: variable_call
252 │ │ ├── receiver: ∅
253 │ │ ├── call_operator_loc: ∅
254 │ │ ├── name: :baz
255 │ │ ├── message_loc: (27,2)-(27,5) = "baz"
256 │ │ ├── opening_loc: ∅
257 │ │ ├── arguments: ∅
258 │ │ ├── closing_loc: ∅
259 │ │ └── block: ∅
260 │ ├── locals: []
261 │ ├── locals_body_index: 0
262 │ ├── def_keyword_loc: (26,0)-(26,3) = "def"
263 │ ├── operator_loc: (26,18)-(26,19) = "."
264 │ ├── lparen_loc: ∅
265 │ ├── rparen_loc: ∅
266 │ ├── equal_loc: ∅
267 │ └── end_keyword_loc: (28,0)-(28,3) = "end"
268 ├── @ DefNode (location: (30,0)-(32,3))
269 │ ├── name: :bar
270 │ ├── name_loc: (30,15)-(30,18) = "bar"
271 │ ├── receiver:
272 │ │ @ ParenthesesNode (location: (30,4)-(30,14))
273 │ │ ├── body:
274 │ │ │ @ ConstantPathNode (location: (30,5)-(30,13))
275 │ │ │ ├── parent:
276 │ │ │ │ @ ConstantReadNode (location: (30,5)-(30,8))
277 │ │ │ │ └── name: :Foo
278 │ │ │ ├── child:
279 │ │ │ │ @ ConstantReadNode (location: (30,10)-(30,13))
280 │ │ │ │ └── name: :Bar
281 │ │ │ └── delimiter_loc: (30,8)-(30,10) = "::"
282 │ │ ├── opening_loc: (30,4)-(30,5) = "("
283 │ │ └── closing_loc: (30,13)-(30,14) = ")"
284 │ ├── parameters: ∅
285 │ ├── body:
286 │ │ @ StatementsNode (location: (31,2)-(31,5))
287 │ │ └── body: (length: 1)
288 │ │ └── @ CallNode (location: (31,2)-(31,5))
289 │ │ ├── flags: variable_call
290 │ │ ├── receiver: ∅
291 │ │ ├── call_operator_loc: ∅
292 │ │ ├── name: :baz
293 │ │ ├── message_loc: (31,2)-(31,5) = "baz"
294 │ │ ├── opening_loc: ∅
295 │ │ ├── arguments: ∅
296 │ │ ├── closing_loc: ∅
297 │ │ └── block: ∅
298 │ ├── locals: []
299 │ ├── locals_body_index: 0
300 │ ├── def_keyword_loc: (30,0)-(30,3) = "def"
301 │ ├── operator_loc: (30,14)-(30,15) = "."
302 │ ├── lparen_loc: ∅
303 │ ├── rparen_loc: ∅
304 │ ├── equal_loc: ∅
305 │ └── end_keyword_loc: (32,0)-(32,3) = "end"
306 ├── @ DefNode (location: (34,0)-(36,3))
307 │ ├── name: :bar
308 │ ├── name_loc: (34,8)-(34,11) = "bar"
309 │ ├── receiver:
310 │ │ @ ConstantReadNode (location: (34,4)-(34,7))
311 │ │ └── name: :Foo
312 │ ├── parameters: ∅
313 │ ├── body:
314 │ │ @ StatementsNode (location: (35,2)-(35,5))
315 │ │ └── body: (length: 1)
316 │ │ └── @ CallNode (location: (35,2)-(35,5))
317 │ │ ├── flags: variable_call
318 │ │ ├── receiver: ∅
319 │ │ ├── call_operator_loc: ∅
320 │ │ ├── name: :baz
321 │ │ ├── message_loc: (35,2)-(35,5) = "baz"
322 │ │ ├── opening_loc: ∅
323 │ │ ├── arguments: ∅
324 │ │ ├── closing_loc: ∅
325 │ │ └── block: ∅
326 │ ├── locals: []
327 │ ├── locals_body_index: 0
328 │ ├── def_keyword_loc: (34,0)-(34,3) = "def"
329 │ ├── operator_loc: (34,7)-(34,8) = "."
330 │ ├── lparen_loc: ∅
331 │ ├── rparen_loc: ∅
332 │ ├── equal_loc: ∅
333 │ └── end_keyword_loc: (36,0)-(36,3) = "end"
334 └── @ DefNode (location: (38,0)-(40,3))
335 ├── name: :bar
336 ├── name_loc: (38,8)-(38,11) = "bar"
337 ├── receiver:
338 │ @ CallNode (location: (38,4)-(38,7))
339 │ ├── flags: variable_call
340 │ ├── receiver: ∅
341 │ ├── call_operator_loc: ∅
342 │ ├── name: :foo
343 │ ├── message_loc: (38,4)-(38,7) = "foo"
344 │ ├── opening_loc: ∅
345 │ ├── arguments: ∅
346 │ ├── closing_loc: ∅
347 │ └── block: ∅
348 ├── parameters: ∅
349 ├── body:
350 │ @ StatementsNode (location: (39,2)-(39,5))
351 │ └── body: (length: 1)
352 │ └── @ CallNode (location: (39,2)-(39,5))
353 │ ├── flags: variable_call
354 │ ├── receiver: ∅
355 │ ├── call_operator_loc: ∅
356 │ ├── name: :baz
357 │ ├── message_loc: (39,2)-(39,5) = "baz"
358 │ ├── opening_loc: ∅
359 │ ├── arguments: ∅
360 │ ├── closing_loc: ∅
361 │ └── block: ∅
362 ├── locals: []
363 ├── locals_body_index: 0
364 ├── def_keyword_loc: (38,0)-(38,3) = "def"
365 ├── operator_loc: (38,7)-(38,8) = "."
366 ├── lparen_loc: ∅
367 ├── rparen_loc: ∅
368 ├── equal_loc: ∅
369 └── end_keyword_loc: (40,0)-(40,3) = "end"