summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/unparser/corpus/semantic/kwbegin.txt
blob: 38486ddc12e77dcd117182920e12ac41d1bc7ba3 (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
@ ProgramNode (location: (1,0)-(42,3))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(42,3))
    └── body: (length: 8)
        ├── @ BeginNode (location: (1,0)-(3,3))
        │   ├── begin_keyword_loc: (1,0)-(1,5) = "begin"
        │   ├── statements: ∅
        │   ├── rescue_clause:
        │   │   @ RescueNode (location: (2,0)-(2,6))
        │   │   ├── keyword_loc: (2,0)-(2,6) = "rescue"
        │   │   ├── exceptions: (length: 0)
        │   │   ├── operator_loc: ∅
        │   │   ├── reference: ∅
        │   │   ├── statements: ∅
        │   │   └── consequent: ∅
        │   ├── else_clause: ∅
        │   ├── ensure_clause: ∅
        │   └── end_keyword_loc: (3,0)-(3,3) = "end"
        ├── @ BeginNode (location: (5,0)-(8,3))
        │   ├── begin_keyword_loc: (5,0)-(5,5) = "begin"
        │   ├── statements: ∅
        │   ├── rescue_clause:
        │   │   @ RescueNode (location: (6,0)-(6,6))
        │   │   ├── keyword_loc: (6,0)-(6,6) = "rescue"
        │   │   ├── exceptions: (length: 0)
        │   │   ├── operator_loc: ∅
        │   │   ├── reference: ∅
        │   │   ├── statements: ∅
        │   │   └── consequent: ∅
        │   ├── else_clause:
        │   │   @ ElseNode (location: (7,0)-(8,3))
        │   │   ├── else_keyword_loc: (7,0)-(7,4) = "else"
        │   │   ├── statements: ∅
        │   │   └── end_keyword_loc: (8,0)-(8,3) = "end"
        │   ├── ensure_clause: ∅
        │   └── end_keyword_loc: (8,0)-(8,3) = "end"
        ├── @ BeginNode (location: (10,0)-(12,3))
        │   ├── begin_keyword_loc: (10,0)-(10,5) = "begin"
        │   ├── statements:
        │   │   @ StatementsNode (location: (11,2)-(11,3))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (11,2)-(11,3))
        │   │           ├── flags: variable_call, ignore_visibility
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── name: :a
        │   │           ├── message_loc: (11,2)-(11,3) = "a"
        │   │           ├── opening_loc: ∅
        │   │           ├── arguments: ∅
        │   │           ├── closing_loc: ∅
        │   │           └── block: ∅
        │   ├── rescue_clause: ∅
        │   ├── else_clause: ∅
        │   ├── ensure_clause: ∅
        │   └── end_keyword_loc: (12,0)-(12,3) = "end"
        ├── @ BeginNode (location: (14,0)-(18,3))
        │   ├── begin_keyword_loc: (14,0)-(14,5) = "begin"
        │   ├── statements:
        │   │   @ StatementsNode (location: (15,2)-(15,3))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (15,2)-(15,3))
        │   │           ├── flags: variable_call, ignore_visibility
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── name: :a
        │   │           ├── message_loc: (15,2)-(15,3) = "a"
        │   │           ├── opening_loc: ∅
        │   │           ├── arguments: ∅
        │   │           ├── closing_loc: ∅
        │   │           └── block: ∅
        │   ├── rescue_clause:
        │   │   @ RescueNode (location: (16,0)-(17,3))
        │   │   ├── keyword_loc: (16,0)-(16,6) = "rescue"
        │   │   ├── exceptions: (length: 0)
        │   │   ├── operator_loc: ∅
        │   │   ├── reference: ∅
        │   │   ├── statements:
        │   │   │   @ StatementsNode (location: (17,2)-(17,3))
        │   │   │   └── body: (length: 1)
        │   │   │       └── @ CallNode (location: (17,2)-(17,3))
        │   │   │           ├── flags: variable_call, ignore_visibility
        │   │   │           ├── receiver: ∅
        │   │   │           ├── call_operator_loc: ∅
        │   │   │           ├── name: :b
        │   │   │           ├── message_loc: (17,2)-(17,3) = "b"
        │   │   │           ├── opening_loc: ∅
        │   │   │           ├── arguments: ∅
        │   │   │           ├── closing_loc: ∅
        │   │   │           └── block: ∅
        │   │   └── consequent: ∅
        │   ├── else_clause: ∅
        │   ├── ensure_clause: ∅
        │   └── end_keyword_loc: (18,0)-(18,3) = "end"
        ├── @ BeginNode (location: (20,0)-(25,3))
        │   ├── begin_keyword_loc: (20,0)-(20,5) = "begin"
        │   ├── statements:
        │   │   @ StatementsNode (location: (21,2)-(22,3))
        │   │   └── body: (length: 2)
        │   │       ├── @ CallNode (location: (21,2)-(21,3))
        │   │       │   ├── flags: variable_call, ignore_visibility
        │   │       │   ├── receiver: ∅
        │   │       │   ├── call_operator_loc: ∅
        │   │       │   ├── name: :a
        │   │       │   ├── message_loc: (21,2)-(21,3) = "a"
        │   │       │   ├── opening_loc: ∅
        │   │       │   ├── arguments: ∅
        │   │       │   ├── closing_loc: ∅
        │   │       │   └── block: ∅
        │   │       └── @ CallNode (location: (22,2)-(22,3))
        │   │           ├── flags: variable_call, ignore_visibility
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── name: :b
        │   │           ├── message_loc: (22,2)-(22,3) = "b"
        │   │           ├── opening_loc: ∅
        │   │           ├── arguments: ∅
        │   │           ├── closing_loc: ∅
        │   │           └── block: ∅
        │   ├── rescue_clause:
        │   │   @ RescueNode (location: (23,0)-(24,3))
        │   │   ├── keyword_loc: (23,0)-(23,6) = "rescue"
        │   │   ├── exceptions: (length: 0)
        │   │   ├── operator_loc: ∅
        │   │   ├── reference: ∅
        │   │   ├── statements:
        │   │   │   @ StatementsNode (location: (24,2)-(24,3))
        │   │   │   └── body: (length: 1)
        │   │   │       └── @ CallNode (location: (24,2)-(24,3))
        │   │   │           ├── flags: variable_call, ignore_visibility
        │   │   │           ├── receiver: ∅
        │   │   │           ├── call_operator_loc: ∅
        │   │   │           ├── name: :b
        │   │   │           ├── message_loc: (24,2)-(24,3) = "b"
        │   │   │           ├── opening_loc: ∅
        │   │   │           ├── arguments: ∅
        │   │   │           ├── closing_loc: ∅
        │   │   │           └── block: ∅
        │   │   └── consequent: ∅
        │   ├── else_clause: ∅
        │   ├── ensure_clause: ∅
        │   └── end_keyword_loc: (25,0)-(25,3) = "end"
        ├── @ BeginNode (location: (27,0)-(30,3))
        │   ├── begin_keyword_loc: (27,0)-(27,5) = "begin"
        │   ├── statements: ∅
        │   ├── rescue_clause:
        │   │   @ RescueNode (location: (28,0)-(28,8))
        │   │   ├── keyword_loc: (28,0)-(28,6) = "rescue"
        │   │   ├── exceptions: (length: 1)
        │   │   │   └── @ ConstantReadNode (location: (28,7)-(28,8))
        │   │   │       └── name: :A
        │   │   ├── operator_loc: ∅
        │   │   ├── reference: ∅
        │   │   ├── statements: ∅
        │   │   └── consequent: ∅
        │   ├── else_clause:
        │   │   @ ElseNode (location: (29,0)-(30,3))
        │   │   ├── else_keyword_loc: (29,0)-(29,4) = "else"
        │   │   ├── statements: ∅
        │   │   └── end_keyword_loc: (30,0)-(30,3) = "end"
        │   ├── ensure_clause: ∅
        │   └── end_keyword_loc: (30,0)-(30,3) = "end"
        ├── @ BeginNode (location: (32,0)-(32,26))
        │   ├── begin_keyword_loc: (32,0)-(32,5) = "begin"
        │   ├── statements: ∅
        │   ├── rescue_clause:
        │   │   @ RescueNode (location: (32,7)-(32,15))
        │   │   ├── keyword_loc: (32,7)-(32,13) = "rescue"
        │   │   ├── exceptions: (length: 1)
        │   │   │   └── @ ConstantReadNode (location: (32,14)-(32,15))
        │   │   │       └── name: :A
        │   │   ├── operator_loc: ∅
        │   │   ├── reference: ∅
        │   │   ├── statements: ∅
        │   │   └── consequent: ∅
        │   ├── else_clause:
        │   │   @ ElseNode (location: (32,17)-(32,26))
        │   │   ├── else_keyword_loc: (32,17)-(32,21) = "else"
        │   │   ├── statements: ∅
        │   │   └── end_keyword_loc: (32,23)-(32,26) = "end"
        │   ├── ensure_clause: ∅
        │   └── end_keyword_loc: (32,23)-(32,26) = "end"
        └── @ BeginNode (location: (34,0)-(42,3))
            ├── begin_keyword_loc: (34,0)-(34,5) = "begin"
            ├── statements:
            │   @ StatementsNode (location: (35,2)-(35,3))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (35,2)-(35,3))
            │           ├── flags: variable_call, ignore_visibility
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── name: :a
            │           ├── message_loc: (35,2)-(35,3) = "a"
            │           ├── opening_loc: ∅
            │           ├── arguments: ∅
            │           ├── closing_loc: ∅
            │           └── block: ∅
            ├── rescue_clause:
            │   @ RescueNode (location: (36,0)-(39,3))
            │   ├── keyword_loc: (36,0)-(36,6) = "rescue"
            │   ├── exceptions: (length: 1)
            │   │   └── @ ConstantReadNode (location: (36,7)-(36,8))
            │   │       └── name: :A
            │   ├── operator_loc: ∅
            │   ├── reference: ∅
            │   ├── statements:
            │   │   @ StatementsNode (location: (37,2)-(37,3))
            │   │   └── body: (length: 1)
            │   │       └── @ CallNode (location: (37,2)-(37,3))
            │   │           ├── flags: variable_call, ignore_visibility
            │   │           ├── receiver: ∅
            │   │           ├── call_operator_loc: ∅
            │   │           ├── name: :b
            │   │           ├── message_loc: (37,2)-(37,3) = "b"
            │   │           ├── opening_loc: ∅
            │   │           ├── arguments: ∅
            │   │           ├── closing_loc: ∅
            │   │           └── block: ∅
            │   └── consequent:
            │       @ RescueNode (location: (38,0)-(39,3))
            │       ├── keyword_loc: (38,0)-(38,6) = "rescue"
            │       ├── exceptions: (length: 1)
            │       │   └── @ ConstantReadNode (location: (38,7)-(38,8))
            │       │       └── name: :B
            │       ├── operator_loc: ∅
            │       ├── reference: ∅
            │       ├── statements:
            │       │   @ StatementsNode (location: (39,2)-(39,3))
            │       │   └── body: (length: 1)
            │       │       └── @ CallNode (location: (39,2)-(39,3))
            │       │           ├── flags: variable_call, ignore_visibility
            │       │           ├── receiver: ∅
            │       │           ├── call_operator_loc: ∅
            │       │           ├── name: :c
            │       │           ├── message_loc: (39,2)-(39,3) = "c"
            │       │           ├── opening_loc: ∅
            │       │           ├── arguments: ∅
            │       │           ├── closing_loc: ∅
            │       │           └── block: ∅
            │       └── consequent: ∅
            ├── else_clause: ∅
            ├── ensure_clause:
            │   @ EnsureNode (location: (40,0)-(42,3))
            │   ├── ensure_keyword_loc: (40,0)-(40,6) = "ensure"
            │   ├── statements:
            │   │   @ StatementsNode (location: (41,2)-(41,3))
            │   │   └── body: (length: 1)
            │   │       └── @ CallNode (location: (41,2)-(41,3))
            │   │           ├── flags: variable_call, ignore_visibility
            │   │           ├── receiver: ∅
            │   │           ├── call_operator_loc: ∅
            │   │           ├── name: :d
            │   │           ├── message_loc: (41,2)-(41,3) = "d"
            │   │           ├── opening_loc: ∅
            │   │           ├── arguments: ∅
            │   │           ├── closing_loc: ∅
            │   │           └── block: ∅
            │   └── end_keyword_loc: (42,0)-(42,3) = "end"
            └── end_keyword_loc: (42,0)-(42,3) = "end"