blob: 4a16c2397968e7709a4b73dc266381373e6f86bf (
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
|
@ ProgramNode (location: (0...148))
├── locals: []
└── statements:
@ StatementsNode (location: (0...148))
└── body: (length: 6)
├── @ CallNode (location: (0...10))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (0...3) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block:
│ │ @ BlockNode (location: (4...10))
│ │ ├── locals: []
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (4...6) = "do"
│ │ └── closing_loc: (7...10) = "end"
│ ├── flags:
│ └── name: "foo"
├── @ CallNode (location: (12...29))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (12...15) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block:
│ │ @ BlockNode (location: (16...29))
│ │ ├── locals: []
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ BeginNode (location: (19...29))
│ │ │ ├── begin_keyword_loc: ∅
│ │ │ ├── statements: ∅
│ │ │ ├── rescue_clause:
│ │ │ │ @ RescueNode (location: (19...25))
│ │ │ │ ├── keyword_loc: (19...25) = "rescue"
│ │ │ │ ├── exceptions: (length: 0)
│ │ │ │ ├── operator_loc: ∅
│ │ │ │ ├── reference: ∅
│ │ │ │ ├── statements: ∅
│ │ │ │ └── consequent: ∅
│ │ │ ├── else_clause: ∅
│ │ │ ├── ensure_clause: ∅
│ │ │ └── end_keyword_loc: (26...29) = "end"
│ │ ├── opening_loc: (16...18) = "do"
│ │ └── closing_loc: (26...29) = "end"
│ ├── flags:
│ └── name: "foo"
├── @ CallNode (location: (31...64))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (31...34) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block:
│ │ @ BlockNode (location: (35...64))
│ │ ├── locals: []
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (40...60))
│ │ │ └── body: (length: 2)
│ │ │ ├── @ RescueModifierNode (location: (40...54))
│ │ │ │ ├── expression:
│ │ │ │ │ @ NilNode (location: (40...43))
│ │ │ │ ├── keyword_loc: (44...50) = "rescue"
│ │ │ │ └── rescue_expression:
│ │ │ │ @ NilNode (location: (51...54))
│ │ │ └── @ NilNode (location: (57...60))
│ │ ├── opening_loc: (35...37) = "do"
│ │ └── closing_loc: (61...64) = "end"
│ ├── flags:
│ └── name: "foo"
├── @ CallNode (location: (66...80))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (66...69) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block:
│ │ @ BlockNode (location: (70...80))
│ │ ├── locals: [:a]
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (73...76))
│ │ │ ├── parameters:
│ │ │ │ @ ParametersNode (location: (74...75))
│ │ │ │ ├── requireds: (length: 1)
│ │ │ │ │ └── @ RequiredParameterNode (location: (74...75))
│ │ │ │ │ └── name: :a
│ │ │ │ ├── optionals: (length: 0)
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── keywords: (length: 0)
│ │ │ │ ├── keyword_rest: ∅
│ │ │ │ └── block: ∅
│ │ │ ├── locals: (length: 0)
│ │ │ ├── opening_loc: (73...74) = "|"
│ │ │ └── closing_loc: (75...76) = "|"
│ │ ├── body: ∅
│ │ ├── opening_loc: (70...72) = "do"
│ │ └── closing_loc: (77...80) = "end"
│ ├── flags:
│ └── name: "foo"
├── @ CallNode (location: (82...116))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (82...85) = "foo"
│ ├── opening_loc: (85...86) = "("
│ ├── arguments:
│ │ @ ArgumentsNode (location: (86...92))
│ │ └── arguments: (length: 1)
│ │ └── @ InterpolatedStringNode (location: (86...92))
│ │ ├── opening_loc: (86...92) = "<<-DOC"
│ │ ├── parts: (length: 1)
│ │ │ └── @ StringNode (location: (101...105))
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (101...105) = " b\n"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: " b\n"
│ │ └── closing_loc: (105...109) = "DOC\n"
│ ├── closing_loc: (92...93) = ")"
│ ├── block:
│ │ @ BlockNode (location: (94...116))
│ │ ├── locals: [:a]
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (97...100))
│ │ │ ├── parameters:
│ │ │ │ @ ParametersNode (location: (98...99))
│ │ │ │ ├── requireds: (length: 1)
│ │ │ │ │ └── @ RequiredParameterNode (location: (98...99))
│ │ │ │ │ └── name: :a
│ │ │ │ ├── optionals: (length: 0)
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── keywords: (length: 0)
│ │ │ │ ├── keyword_rest: ∅
│ │ │ │ └── block: ∅
│ │ │ ├── locals: (length: 0)
│ │ │ ├── opening_loc: (97...98) = "|"
│ │ │ └── closing_loc: (99...100) = "|"
│ │ ├── body:
│ │ │ @ StatementsNode (location: (111...112))
│ │ │ └── body: (length: 1)
│ │ │ └── @ LocalVariableReadNode (location: (111...112))
│ │ │ ├── name: :a
│ │ │ └── depth: 0
│ │ ├── opening_loc: (94...96) = "do"
│ │ └── closing_loc: (113...116) = "end"
│ ├── flags:
│ └── name: "foo"
└── @ CallNode (location: (118...148))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (118...121) = "foo"
├── opening_loc: (121...122) = "("
├── arguments:
│ @ ArgumentsNode (location: (122...128))
│ └── arguments: (length: 1)
│ └── @ InterpolatedStringNode (location: (122...128))
│ ├── opening_loc: (122...128) = "<<-DOC"
│ ├── parts: (length: 1)
│ │ └── @ StringNode (location: (133...137))
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (133...137) = " b\n"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: " b\n"
│ └── closing_loc: (137...141) = "DOC\n"
├── closing_loc: (128...129) = ")"
├── block:
│ @ BlockNode (location: (130...148))
│ ├── locals: []
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (143...144))
│ │ └── body: (length: 1)
│ │ └── @ CallNode (location: (143...144))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── message_loc: (143...144) = "a"
│ │ ├── opening_loc: ∅
│ │ ├── arguments: ∅
│ │ ├── closing_loc: ∅
│ │ ├── block: ∅
│ │ ├── flags: variable_call
│ │ └── name: "a"
│ ├── opening_loc: (130...132) = "do"
│ └── closing_loc: (145...148) = "end"
├── flags:
└── name: "foo"
|