blob: e562de1f2c7b4492e566c0846e18bda39f7dfdc0 (
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
|
@ ProgramNode (location: (0...506))
├── locals: []
└── statements:
@ StatementsNode (location: (0...506))
└── body: (length: 48)
├── @ StringNode (location: (0...6))
│ ├── opening_loc: (0...2) = "%%"
│ ├── content_loc: (2...5) = "abc"
│ ├── closing_loc: (5...6) = "%"
│ └── unescaped: "abc"
├── @ StringNode (location: (8...14))
│ ├── opening_loc: (8...10) = "%^"
│ ├── content_loc: (10...13) = "abc"
│ ├── closing_loc: (13...14) = "^"
│ └── unescaped: "abc"
├── @ StringNode (location: (16...22))
│ ├── opening_loc: (16...18) = "%&"
│ ├── content_loc: (18...21) = "abc"
│ ├── closing_loc: (21...22) = "&"
│ └── unescaped: "abc"
├── @ StringNode (location: (24...30))
│ ├── opening_loc: (24...26) = "%*"
│ ├── content_loc: (26...29) = "abc"
│ ├── closing_loc: (29...30) = "*"
│ └── unescaped: "abc"
├── @ StringNode (location: (32...38))
│ ├── opening_loc: (32...34) = "%_"
│ ├── content_loc: (34...37) = "abc"
│ ├── closing_loc: (37...38) = "_"
│ └── unescaped: "abc"
├── @ StringNode (location: (40...46))
│ ├── opening_loc: (40...42) = "%+"
│ ├── content_loc: (42...45) = "abc"
│ ├── closing_loc: (45...46) = "+"
│ └── unescaped: "abc"
├── @ StringNode (location: (48...54))
│ ├── opening_loc: (48...50) = "%-"
│ ├── content_loc: (50...53) = "abc"
│ ├── closing_loc: (53...54) = "-"
│ └── unescaped: "abc"
├── @ StringNode (location: (56...62))
│ ├── opening_loc: (56...58) = "%:"
│ ├── content_loc: (58...61) = "abc"
│ ├── closing_loc: (61...62) = ":"
│ └── unescaped: "abc"
├── @ StringNode (location: (64...70))
│ ├── opening_loc: (64...66) = "%;"
│ ├── content_loc: (66...69) = "abc"
│ ├── closing_loc: (69...70) = ";"
│ └── unescaped: "abc"
├── @ StringNode (location: (72...78))
│ ├── opening_loc: (72...74) = "%'"
│ ├── content_loc: (74...77) = "abc"
│ ├── closing_loc: (77...78) = "'"
│ └── unescaped: "abc"
├── @ StringNode (location: (80...86))
│ ├── opening_loc: (80...82) = "%~"
│ ├── content_loc: (82...85) = "abc"
│ ├── closing_loc: (85...86) = "~"
│ └── unescaped: "abc"
├── @ StringNode (location: (88...94))
│ ├── opening_loc: (88...90) = "%?"
│ ├── content_loc: (90...93) = "abc"
│ ├── closing_loc: (93...94) = "?"
│ └── unescaped: "abc"
├── @ ArrayNode (location: (96...104))
│ ├── elements: (length: 0)
│ ├── opening_loc: (96...99) = "%w{"
│ └── closing_loc: (103...104) = "}"
├── @ StringNode (location: (106...112))
│ ├── opening_loc: (106...108) = "%/"
│ ├── content_loc: (108...111) = "abc"
│ ├── closing_loc: (111...112) = "/"
│ └── unescaped: "abc"
├── @ StringNode (location: (114...120))
│ ├── opening_loc: (114...116) = "%`"
│ ├── content_loc: (116...119) = "abc"
│ ├── closing_loc: (119...120) = "`"
│ └── unescaped: "abc"
├── @ InterpolatedStringNode (location: (122...130))
│ ├── opening_loc: (122...123) = "\""
│ ├── parts: (length: 1)
│ │ └── @ EmbeddedVariableNode (location: (123...129))
│ │ ├── operator_loc: (123...124) = "#"
│ │ └── variable:
│ │ @ ClassVariableReadNode (location: (124...129))
│ │ └── name: :@@foo
│ └── closing_loc: (129...130) = "\""
├── @ StringNode (location: (132...138))
│ ├── opening_loc: (132...134) = "%\\"
│ ├── content_loc: (134...137) = "abc"
│ ├── closing_loc: (137...138) = "\\"
│ └── unescaped: "abc"
├── @ InterpolatedStringNode (location: (140...157))
│ ├── opening_loc: (140...142) = "%{"
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (142...146))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (142...146) = "aaa "
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "aaa "
│ │ ├── @ EmbeddedStatementsNode (location: (146...152))
│ │ │ ├── opening_loc: (146...148) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (148...151))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ CallNode (location: (148...151))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── message_loc: (148...151) = "bbb"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: "bbb"
│ │ │ └── closing_loc: (151...152) = "}"
│ │ └── @ StringNode (location: (152...156))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (152...156) = " ccc"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: " ccc"
│ └── closing_loc: (156...157) = "}"
├── @ StringNode (location: (159...167))
│ ├── opening_loc: (159...161) = "%["
│ ├── content_loc: (161...166) = "foo[]"
│ ├── closing_loc: (166...167) = "]"
│ └── unescaped: "foo[]"
├── @ CallNode (location: (169...184))
│ ├── receiver:
│ │ @ StringNode (location: (169...174))
│ │ ├── opening_loc: (169...170) = "\""
│ │ ├── content_loc: (170...173) = "foo"
│ │ ├── closing_loc: (173...174) = "\""
│ │ └── unescaped: "foo"
│ ├── call_operator_loc: ∅
│ ├── message_loc: (175...176) = "+"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (179...184))
│ │ └── arguments: (length: 1)
│ │ └── @ StringNode (location: (179...184))
│ │ ├── opening_loc: (179...180) = "\""
│ │ ├── content_loc: (180...183) = "bar"
│ │ ├── closing_loc: (183...184) = "\""
│ │ └── unescaped: "bar"
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
│ └── name: "+"
├── @ StringNode (location: (186...193))
│ ├── opening_loc: (186...189) = "%q{"
│ ├── content_loc: (189...192) = "abc"
│ ├── closing_loc: (192...193) = "}"
│ └── unescaped: "abc"
├── @ SymbolNode (location: (195...202))
│ ├── opening_loc: (195...198) = "%s["
│ ├── value_loc: (198...201) = "abc"
│ ├── closing_loc: (201...202) = "]"
│ └── unescaped: "abc"
├── @ StringNode (location: (204...210))
│ ├── opening_loc: (204...206) = "%{"
│ ├── content_loc: (206...209) = "abc"
│ ├── closing_loc: (209...210) = "}"
│ └── unescaped: "abc"
├── @ StringNode (location: (212...214))
│ ├── opening_loc: (212...213) = "'"
│ ├── content_loc: (213...213) = ""
│ ├── closing_loc: (213...214) = "'"
│ └── unescaped: ""
├── @ StringNode (location: (216...221))
│ ├── opening_loc: (216...217) = "\""
│ ├── content_loc: (217...220) = "abc"
│ ├── closing_loc: (220...221) = "\""
│ └── unescaped: "abc"
├── @ StringNode (location: (223...230))
│ ├── opening_loc: (223...224) = "\""
│ ├── content_loc: (224...229) = "\#@---"
│ ├── closing_loc: (229...230) = "\""
│ └── unescaped: "\#@---"
├── @ InterpolatedStringNode (location: (232...248))
│ ├── opening_loc: (232...233) = "\""
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (233...237))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (233...237) = "aaa "
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "aaa "
│ │ ├── @ EmbeddedStatementsNode (location: (237...243))
│ │ │ ├── opening_loc: (237...239) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (239...242))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ CallNode (location: (239...242))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── message_loc: (239...242) = "bbb"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: "bbb"
│ │ │ └── closing_loc: (242...243) = "}"
│ │ └── @ StringNode (location: (243...247))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (243...247) = " ccc"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: " ccc"
│ └── closing_loc: (247...248) = "\""
├── @ StringNode (location: (250...255))
│ ├── opening_loc: (250...251) = "'"
│ ├── content_loc: (251...254) = "abc"
│ ├── closing_loc: (254...255) = "'"
│ └── unescaped: "abc"
├── @ ArrayNode (location: (257...266))
│ ├── elements: (length: 3)
│ │ ├── @ StringNode (location: (260...261))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (260...261) = "a"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "a"
│ │ ├── @ StringNode (location: (262...263))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (262...263) = "b"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "b"
│ │ └── @ StringNode (location: (264...265))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (264...265) = "c"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "c"
│ ├── opening_loc: (257...260) = "%w["
│ └── closing_loc: (265...266) = "]"
├── @ ArrayNode (location: (268...285))
│ ├── elements: (length: 3)
│ │ ├── @ StringNode (location: (271...274))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (271...274) = "a[]"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "a[]"
│ │ ├── @ StringNode (location: (275...280))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (275...280) = "b[[]]"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "b[[]]"
│ │ └── @ StringNode (location: (281...284))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (281...284) = "c[]"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "c[]"
│ ├── opening_loc: (268...271) = "%w["
│ └── closing_loc: (284...285) = "]"
├── @ ArrayNode (location: (287...305))
│ ├── elements: (length: 2)
│ │ ├── @ StringNode (location: (290...298))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (290...298) = "foo\\ bar"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "foo\\ bar"
│ │ └── @ StringNode (location: (299...304))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (299...304) = "\\\#{1}"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "\\\#{1}"
│ ├── opening_loc: (287...290) = "%w["
│ └── closing_loc: (304...305) = "]"
├── @ ArrayNode (location: (307...323))
│ ├── elements: (length: 2)
│ │ ├── @ StringNode (location: (310...318))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (310...318) = "foo\\ bar"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "foo\\ bar"
│ │ └── @ StringNode (location: (319...322))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (319...322) = "baz"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "baz"
│ ├── opening_loc: (307...310) = "%w["
│ └── closing_loc: (322...323) = "]"
├── @ ArrayNode (location: (325...339))
│ ├── elements: (length: 3)
│ │ ├── @ StringNode (location: (328...329))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (328...329) = "a"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "a"
│ │ ├── @ InterpolatedStringNode (location: (330...336))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── parts: (length: 3)
│ │ │ │ ├── @ StringNode (location: (330...331))
│ │ │ │ │ ├── opening_loc: ∅
│ │ │ │ │ ├── content_loc: (330...331) = "b"
│ │ │ │ │ ├── closing_loc: ∅
│ │ │ │ │ └── unescaped: "b"
│ │ │ │ ├── @ EmbeddedStatementsNode (location: (331...335))
│ │ │ │ │ ├── opening_loc: (331...333) = "\#{"
│ │ │ │ │ ├── statements:
│ │ │ │ │ │ @ StatementsNode (location: (333...334))
│ │ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ │ └── @ CallNode (location: (333...334))
│ │ │ │ │ │ ├── receiver: ∅
│ │ │ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ │ │ ├── message_loc: (333...334) = "c"
│ │ │ │ │ │ ├── opening_loc: ∅
│ │ │ │ │ │ ├── arguments: ∅
│ │ │ │ │ │ ├── closing_loc: ∅
│ │ │ │ │ │ ├── block: ∅
│ │ │ │ │ │ ├── flags: variable_call
│ │ │ │ │ │ └── name: "c"
│ │ │ │ │ └── closing_loc: (334...335) = "}"
│ │ │ │ └── @ StringNode (location: (335...336))
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── content_loc: (335...336) = "d"
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── unescaped: "d"
│ │ │ └── closing_loc: ∅
│ │ └── @ StringNode (location: (337...338))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (337...338) = "e"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "e"
│ ├── opening_loc: (325...328) = "%W["
│ └── closing_loc: (338...339) = "]"
├── @ ArrayNode (location: (341...350))
│ ├── elements: (length: 3)
│ │ ├── @ StringNode (location: (344...345))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (344...345) = "a"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "a"
│ │ ├── @ StringNode (location: (346...347))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (346...347) = "b"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "b"
│ │ └── @ StringNode (location: (348...349))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (348...349) = "c"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "c"
│ ├── opening_loc: (341...344) = "%W["
│ └── closing_loc: (349...350) = "]"
├── @ ArrayNode (location: (352...369))
│ ├── elements: (length: 3)
│ │ ├── @ StringNode (location: (358...359))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (358...359) = "a"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "a"
│ │ ├── @ StringNode (location: (362...363))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (362...363) = "b"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "b"
│ │ └── @ StringNode (location: (366...367))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (366...367) = "c"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "c"
│ ├── opening_loc: (352...355) = "%w["
│ └── closing_loc: (368...369) = "]"
├── @ StringNode (location: (371...386))
│ ├── opening_loc: (371...372) = "'"
│ ├── content_loc: (372...385) = "\\' foo \\' bar"
│ ├── closing_loc: (385...386) = "'"
│ └── unescaped: "' foo ' bar"
├── @ StringNode (location: (388...403))
│ ├── opening_loc: (388...389) = "'"
│ ├── content_loc: (389...402) = "\\\\ foo \\\\ bar"
│ ├── closing_loc: (402...403) = "'"
│ └── unescaped: "\\ foo \\ bar"
├── @ InterpolatedStringNode (location: (405...412))
│ ├── opening_loc: (405...406) = "\""
│ ├── parts: (length: 1)
│ │ └── @ EmbeddedVariableNode (location: (406...411))
│ │ ├── operator_loc: (406...407) = "#"
│ │ └── variable:
│ │ @ GlobalVariableReadNode (location: (407...411))
│ │ └── name: :$foo
│ └── closing_loc: (411...412) = "\""
├── @ InterpolatedStringNode (location: (414...421))
│ ├── opening_loc: (414...415) = "\""
│ ├── parts: (length: 1)
│ │ └── @ EmbeddedVariableNode (location: (415...420))
│ │ ├── operator_loc: (415...416) = "#"
│ │ └── variable:
│ │ @ InstanceVariableReadNode (location: (416...420))
│ │ └── name: :@foo
│ └── closing_loc: (420...421) = "\""
├── @ StringNode (location: (423...438))
│ ├── opening_loc: (423...424) = "\""
│ ├── content_loc: (424...437) = "\\x7 \\x23 \\x61"
│ ├── closing_loc: (437...438) = "\""
│ └── unescaped: "\a # a"
├── @ StringNode (location: (440...453))
│ ├── opening_loc: (440...441) = "\""
│ ├── content_loc: (441...452) = "\\7 \\43 \\141"
│ ├── closing_loc: (452...453) = "\""
│ └── unescaped: "\a # a"
├── @ StringNode (location: (455...461))
│ ├── opening_loc: (455...457) = "%["
│ ├── content_loc: (457...460) = "abc"
│ ├── closing_loc: (460...461) = "]"
│ └── unescaped: "abc"
├── @ StringNode (location: (463...469))
│ ├── opening_loc: (463...465) = "%("
│ ├── content_loc: (465...468) = "abc"
│ ├── closing_loc: (468...469) = ")"
│ └── unescaped: "abc"
├── @ StringNode (location: (471...477))
│ ├── opening_loc: (471...473) = "%@"
│ ├── content_loc: (473...476) = "abc"
│ ├── closing_loc: (476...477) = "@"
│ └── unescaped: "abc"
├── @ StringNode (location: (479...485))
│ ├── opening_loc: (479...481) = "%$"
│ ├── content_loc: (481...484) = "abc"
│ ├── closing_loc: (484...485) = "$"
│ └── unescaped: "abc"
├── @ StringNode (location: (487...489))
│ ├── opening_loc: (487...488) = "?"
│ ├── content_loc: (488...489) = "a"
│ ├── closing_loc: ∅
│ └── unescaped: "a"
├── @ StringConcatNode (location: (491...497))
│ ├── left:
│ │ @ StringNode (location: (491...493))
│ │ ├── opening_loc: (491...492) = "?"
│ │ ├── content_loc: (492...493) = "a"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "a"
│ └── right:
│ @ StringNode (location: (494...497))
│ ├── opening_loc: (494...495) = "\""
│ ├── content_loc: (495...496) = "a"
│ ├── closing_loc: (496...497) = "\""
│ └── unescaped: "a"
└── @ StringNode (location: (499...506))
├── opening_loc: (499...502) = "%Q{"
├── content_loc: (502...505) = "abc"
├── closing_loc: (505...506) = "}"
└── unescaped: "abc"
|