lunchmoney 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
- data/.github/workflows/ci.yml +1 -1
- data/.ruby-version +1 -1
- data/.simplecov +2 -2
- data/Gemfile +2 -3
- data/Gemfile.lock +90 -84
- data/lib/lunchmoney/api.rb +1 -0
- data/lib/lunchmoney/calls/categories.rb +0 -2
- data/lib/lunchmoney/calls/transactions.rb +0 -1
- data/lib/lunchmoney/deprecate.rb +35 -0
- data/lib/lunchmoney/objects/asset.rb +6 -1
- data/lib/lunchmoney/objects/plaid_account.rb +6 -1
- data/lib/lunchmoney/objects/transaction.rb +9 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +36 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/gems/{activesupport@7.1.3.2.rbi → activesupport@7.2.2.1.rbi} +1407 -1292
- data/sorbet/rbi/gems/{addressable@2.8.6.rbi → addressable@2.8.7.rbi} +2 -1
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/{bigdecimal@3.1.7.rbi → bigdecimal@3.1.9.rbi} +1 -0
- data/sorbet/rbi/gems/{chef-utils@18.4.2.rbi → chef-utils@18.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/{concurrent-ruby@1.2.3.rbi → concurrent-ruby@1.3.5.rbi} +108 -41
- data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +1 -0
- data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.7.rbi} +21 -29
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{faraday-net_http@3.1.0.rbi → faraday-net_http@3.4.0.rbi} +30 -29
- data/sorbet/rbi/gems/{faraday@2.9.0.rbi → faraday@2.12.2.rbi} +104 -49
- data/sorbet/rbi/gems/{hashdiff@1.1.0.rbi → hashdiff@1.1.2.rbi} +3 -2
- data/sorbet/rbi/gems/{i18n@1.14.4.rbi → i18n@1.14.7.rbi} +109 -80
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.10.2.rbi} +697 -146
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/logger@1.6.6.rbi +940 -0
- data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.25.5.rbi} +319 -302
- data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.2.8.rbi} +1 -0
- data/sorbet/rbi/gems/{mocha@2.2.0.rbi → mocha@2.7.1.rbi} +174 -149
- data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.7.1.rbi} +256 -203
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.4.0.rbi} +15882 -12137
- data/sorbet/rbi/gems/{public_suffix@5.0.4.rbi → public_suffix@6.0.1.rbi} +1 -0
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +34 -33
- data/sorbet/rbi/gems/{rack@3.0.10.rbi → rack@3.1.9.rbi} +704 -989
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
- data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
- data/sorbet/rbi/gems/rbs@3.9.0.rbi +6978 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.1.rbi → regexp_parser@2.10.0.rbi} +195 -172
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.1.rbi} +844 -279
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.38.0.rbi} +1380 -732
- data/sorbet/rbi/gems/{rubocop-minitest@0.35.0.rbi → rubocop-minitest@0.36.0.rbi} +13 -10
- data/sorbet/rbi/gems/{rubocop-rails@2.24.1.rbi → rubocop-rails@2.29.1.rbi} +9604 -6343
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.3.rbi → rubocop-sorbet@0.8.7.rbi} +168 -67
- data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.71.2.rbi} +6831 -4378
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
- data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
- data/sorbet/rbi/gems/{tapioca@0.14.1.rbi → tapioca@0.16.11.rbi} +471 -384
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +58 -31
- data/sorbet/rbi/gems/{toys-core@0.15.5.rbi → toys-core@0.15.6.rbi} +1 -0
- data/sorbet/rbi/gems/{toys@0.15.5.rbi → toys@0.15.6.rbi} +4 -3
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
- data/sorbet/rbi/gems/{vcr@6.2.0.rbi → vcr@6.3.1.rbi} +72 -68
- data/sorbet/rbi/gems/{webmock@3.23.0.rbi → webmock@3.25.1.rbi} +102 -78
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
- metadata +55 -58
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +0 -93
- data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +0 -966
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10077
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4421
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `parser` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem parser`.
|
6
6
|
|
7
|
+
|
7
8
|
# @api public
|
8
9
|
#
|
9
10
|
# source://parser//lib/parser.rb#19
|
@@ -52,603 +53,605 @@ end
|
|
52
53
|
# @api public
|
53
54
|
#
|
54
55
|
# source://parser//lib/parser/ast/processor.rb#9
|
55
|
-
class Parser::AST::Processor
|
56
|
+
class Parser::AST::Processor
|
57
|
+
include ::AST::Processor::Mixin
|
58
|
+
|
56
59
|
# @api public
|
57
60
|
#
|
58
|
-
# source://parser//lib/parser/ast/processor.rb#
|
61
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
59
62
|
def on_alias(node); end
|
60
63
|
|
61
64
|
# @api public
|
62
65
|
#
|
63
|
-
# source://parser//lib/parser/ast/processor.rb#
|
66
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
64
67
|
def on_and(node); end
|
65
68
|
|
66
69
|
# @api public
|
67
70
|
#
|
68
|
-
# source://parser//lib/parser/ast/processor.rb#
|
71
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
69
72
|
def on_and_asgn(node); end
|
70
73
|
|
71
74
|
# @api public
|
72
75
|
# @private
|
73
76
|
#
|
74
|
-
# source://parser//lib/parser/ast/processor.rb#
|
77
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
75
78
|
def on_arg(node); end
|
76
79
|
|
77
80
|
# @api public
|
78
81
|
#
|
79
|
-
# source://parser//lib/parser/ast/processor.rb#
|
82
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
80
83
|
def on_arg_expr(node); end
|
81
84
|
|
82
85
|
# @api public
|
83
86
|
#
|
84
|
-
# source://parser//lib/parser/ast/processor.rb#
|
87
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
85
88
|
def on_args(node); end
|
86
89
|
|
87
90
|
# @api public
|
88
91
|
#
|
89
|
-
# source://parser//lib/parser/ast/processor.rb#
|
92
|
+
# source://parser//lib/parser/ast/processor.rb#105
|
90
93
|
def on_argument(node); end
|
91
94
|
|
92
95
|
# @api public
|
93
96
|
#
|
94
|
-
# source://parser//lib/parser/ast/processor.rb#
|
97
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
95
98
|
def on_array(node); end
|
96
99
|
|
97
100
|
# @api public
|
98
101
|
#
|
99
|
-
# source://parser//lib/parser/ast/processor.rb#
|
102
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
100
103
|
def on_array_pattern(node); end
|
101
104
|
|
102
105
|
# @api public
|
103
106
|
#
|
104
|
-
# source://parser//lib/parser/ast/processor.rb#
|
107
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
105
108
|
def on_array_pattern_with_tail(node); end
|
106
109
|
|
107
110
|
# @api public
|
108
111
|
# @private
|
109
112
|
#
|
110
|
-
# source://parser//lib/parser/ast/processor.rb#
|
113
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
111
114
|
def on_back_ref(node); end
|
112
115
|
|
113
116
|
# @api public
|
114
117
|
#
|
115
|
-
# source://parser//lib/parser/ast/processor.rb#
|
118
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
116
119
|
def on_begin(node); end
|
117
120
|
|
118
121
|
# @api public
|
119
122
|
#
|
120
|
-
# source://parser//lib/parser/ast/processor.rb#
|
123
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
121
124
|
def on_block(node); end
|
122
125
|
|
123
126
|
# @api public
|
124
127
|
#
|
125
|
-
# source://parser//lib/parser/ast/processor.rb#
|
128
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
126
129
|
def on_block_pass(node); end
|
127
130
|
|
128
131
|
# @api public
|
129
132
|
# @private
|
130
133
|
#
|
131
|
-
# source://parser//lib/parser/ast/processor.rb#
|
134
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
132
135
|
def on_blockarg(node); end
|
133
136
|
|
134
137
|
# @api public
|
135
138
|
#
|
136
|
-
# source://parser//lib/parser/ast/processor.rb#
|
139
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
137
140
|
def on_blockarg_expr(node); end
|
138
141
|
|
139
142
|
# @api public
|
140
143
|
#
|
141
|
-
# source://parser//lib/parser/ast/processor.rb#
|
144
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
142
145
|
def on_break(node); end
|
143
146
|
|
144
147
|
# @api public
|
145
148
|
#
|
146
|
-
# source://parser//lib/parser/ast/processor.rb#
|
149
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
147
150
|
def on_case(node); end
|
148
151
|
|
149
152
|
# @api public
|
150
153
|
#
|
151
|
-
# source://parser//lib/parser/ast/processor.rb#
|
154
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
152
155
|
def on_case_match(node); end
|
153
156
|
|
154
157
|
# @api public
|
155
158
|
#
|
156
|
-
# source://parser//lib/parser/ast/processor.rb#
|
159
|
+
# source://parser//lib/parser/ast/processor.rb#89
|
157
160
|
def on_casgn(node); end
|
158
161
|
|
159
162
|
# @api public
|
160
163
|
#
|
161
|
-
# source://parser//lib/parser/ast/processor.rb#
|
164
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
162
165
|
def on_class(node); end
|
163
166
|
|
164
167
|
# @api public
|
165
168
|
#
|
166
|
-
# source://parser//lib/parser/ast/processor.rb#
|
169
|
+
# source://parser//lib/parser/ast/processor.rb#81
|
167
170
|
def on_const(node); end
|
168
171
|
|
169
172
|
# @api public
|
170
173
|
#
|
171
|
-
# source://parser//lib/parser/ast/processor.rb#
|
174
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
172
175
|
def on_const_pattern(node); end
|
173
176
|
|
174
177
|
# @api public
|
175
178
|
#
|
176
|
-
# source://parser//lib/parser/ast/processor.rb#
|
179
|
+
# source://parser//lib/parser/ast/processor.rb#181
|
177
180
|
def on_csend(node); end
|
178
181
|
|
179
182
|
# @api public
|
180
183
|
# @private
|
181
184
|
#
|
182
|
-
# source://parser//lib/parser/ast/processor.rb#
|
185
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
183
186
|
def on_cvar(node); end
|
184
187
|
|
185
188
|
# @api public
|
186
189
|
# @private
|
187
190
|
#
|
188
|
-
# source://parser//lib/parser/ast/processor.rb#
|
191
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
189
192
|
def on_cvasgn(node); end
|
190
193
|
|
191
194
|
# @api public
|
192
195
|
#
|
193
|
-
# source://parser//lib/parser/ast/processor.rb#
|
196
|
+
# source://parser//lib/parser/ast/processor.rb#160
|
194
197
|
def on_def(node); end
|
195
198
|
|
196
199
|
# @api public
|
197
200
|
#
|
198
|
-
# source://parser//lib/parser/ast/processor.rb#
|
201
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
199
202
|
def on_defined?(node); end
|
200
203
|
|
201
204
|
# @api public
|
202
205
|
#
|
203
|
-
# source://parser//lib/parser/ast/processor.rb#
|
206
|
+
# source://parser//lib/parser/ast/processor.rb#169
|
204
207
|
def on_defs(node); end
|
205
208
|
|
206
209
|
# @api public
|
207
210
|
#
|
208
|
-
# source://parser//lib/parser/ast/processor.rb#
|
211
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
209
212
|
def on_dstr(node); end
|
210
213
|
|
211
214
|
# @api public
|
212
215
|
#
|
213
|
-
# source://parser//lib/parser/ast/processor.rb#
|
216
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
214
217
|
def on_dsym(node); end
|
215
218
|
|
216
219
|
# @api public
|
217
220
|
#
|
218
|
-
# source://parser//lib/parser/ast/processor.rb#
|
221
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
219
222
|
def on_eflipflop(node); end
|
220
223
|
|
221
224
|
# @api public
|
222
225
|
#
|
223
|
-
# source://parser//lib/parser/ast/processor.rb#
|
226
|
+
# source://parser//lib/parser/ast/processor.rb#288
|
224
227
|
def on_empty_else(node); end
|
225
228
|
|
226
229
|
# @api public
|
227
230
|
#
|
228
|
-
# source://parser//lib/parser/ast/processor.rb#
|
231
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
229
232
|
def on_ensure(node); end
|
230
233
|
|
231
234
|
# @api public
|
232
235
|
#
|
233
|
-
# source://parser//lib/parser/ast/processor.rb#
|
236
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
234
237
|
def on_erange(node); end
|
235
238
|
|
236
239
|
# @api public
|
237
240
|
#
|
238
|
-
# source://parser//lib/parser/ast/processor.rb#
|
241
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
239
242
|
def on_find_pattern(node); end
|
240
243
|
|
241
244
|
# @api public
|
242
245
|
#
|
243
|
-
# source://parser//lib/parser/ast/processor.rb#
|
246
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
244
247
|
def on_for(node); end
|
245
248
|
|
246
249
|
# @api public
|
247
250
|
# @private
|
248
251
|
#
|
249
|
-
# source://parser//lib/parser/ast/processor.rb#
|
252
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
250
253
|
def on_forward_arg(node); end
|
251
254
|
|
252
255
|
# @api public
|
253
256
|
#
|
254
|
-
# source://parser//lib/parser/ast/processor.rb#
|
257
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
255
258
|
def on_forwarded_kwrestarg(node); end
|
256
259
|
|
257
260
|
# @api public
|
258
261
|
#
|
259
|
-
# source://parser//lib/parser/ast/processor.rb#
|
262
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
260
263
|
def on_forwarded_restarg(node); end
|
261
264
|
|
262
265
|
# @api public
|
263
266
|
# @private
|
264
267
|
#
|
265
|
-
# source://parser//lib/parser/ast/processor.rb#
|
268
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
266
269
|
def on_gvar(node); end
|
267
270
|
|
268
271
|
# @api public
|
269
272
|
# @private
|
270
273
|
#
|
271
|
-
# source://parser//lib/parser/ast/processor.rb#
|
274
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
272
275
|
def on_gvasgn(node); end
|
273
276
|
|
274
277
|
# @api public
|
275
278
|
#
|
276
|
-
# source://parser//lib/parser/ast/processor.rb#
|
279
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
277
280
|
def on_hash(node); end
|
278
281
|
|
279
282
|
# @api public
|
280
283
|
#
|
281
|
-
# source://parser//lib/parser/ast/processor.rb#
|
284
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
282
285
|
def on_hash_pattern(node); end
|
283
286
|
|
284
287
|
# @api public
|
285
288
|
#
|
286
|
-
# source://parser//lib/parser/ast/processor.rb#
|
289
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
287
290
|
def on_if(node); end
|
288
291
|
|
289
292
|
# @api public
|
290
293
|
#
|
291
|
-
# source://parser//lib/parser/ast/processor.rb#
|
294
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
292
295
|
def on_if_guard(node); end
|
293
296
|
|
294
297
|
# @api public
|
295
298
|
#
|
296
|
-
# source://parser//lib/parser/ast/processor.rb#
|
299
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
297
300
|
def on_iflipflop(node); end
|
298
301
|
|
299
302
|
# @api public
|
300
303
|
#
|
301
|
-
# source://parser//lib/parser/ast/processor.rb#
|
304
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
302
305
|
def on_in_match(node); end
|
303
306
|
|
304
307
|
# @api public
|
305
308
|
#
|
306
|
-
# source://parser//lib/parser/ast/processor.rb#
|
309
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
307
310
|
def on_in_pattern(node); end
|
308
311
|
|
309
312
|
# @api public
|
310
313
|
#
|
311
|
-
# source://parser//lib/parser/ast/processor.rb#
|
314
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
312
315
|
def on_index(node); end
|
313
316
|
|
314
317
|
# @api public
|
315
318
|
#
|
316
|
-
# source://parser//lib/parser/ast/processor.rb#
|
319
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
317
320
|
def on_indexasgn(node); end
|
318
321
|
|
319
322
|
# @api public
|
320
323
|
#
|
321
|
-
# source://parser//lib/parser/ast/processor.rb#
|
324
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
322
325
|
def on_irange(node); end
|
323
326
|
|
324
327
|
# @api public
|
325
328
|
# @private
|
326
329
|
#
|
327
|
-
# source://parser//lib/parser/ast/processor.rb#
|
330
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
328
331
|
def on_ivar(node); end
|
329
332
|
|
330
333
|
# @api public
|
331
334
|
# @private
|
332
335
|
#
|
333
|
-
# source://parser//lib/parser/ast/processor.rb#
|
336
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
334
337
|
def on_ivasgn(node); end
|
335
338
|
|
336
339
|
# @api public
|
337
340
|
# @private
|
338
341
|
#
|
339
|
-
# source://parser//lib/parser/ast/processor.rb#
|
342
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
340
343
|
def on_kwarg(node); end
|
341
344
|
|
342
345
|
# @api public
|
343
346
|
#
|
344
|
-
# source://parser//lib/parser/ast/processor.rb#
|
347
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
345
348
|
def on_kwargs(node); end
|
346
349
|
|
347
350
|
# @api public
|
348
351
|
#
|
349
|
-
# source://parser//lib/parser/ast/processor.rb#
|
352
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
350
353
|
def on_kwbegin(node); end
|
351
354
|
|
352
355
|
# @api public
|
353
356
|
# @private
|
354
357
|
#
|
355
|
-
# source://parser//lib/parser/ast/processor.rb#
|
358
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
356
359
|
def on_kwoptarg(node); end
|
357
360
|
|
358
361
|
# @api public
|
359
362
|
# @private
|
360
363
|
#
|
361
|
-
# source://parser//lib/parser/ast/processor.rb#
|
364
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
362
365
|
def on_kwrestarg(node); end
|
363
366
|
|
364
367
|
# @api public
|
365
368
|
#
|
366
|
-
# source://parser//lib/parser/ast/processor.rb#
|
369
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
367
370
|
def on_kwsplat(node); end
|
368
371
|
|
369
372
|
# @api public
|
370
373
|
#
|
371
|
-
# source://parser//lib/parser/ast/processor.rb#
|
374
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
372
375
|
def on_lambda(node); end
|
373
376
|
|
374
377
|
# @api public
|
375
378
|
# @private
|
376
379
|
#
|
377
|
-
# source://parser//lib/parser/ast/processor.rb#
|
380
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
378
381
|
def on_lvar(node); end
|
379
382
|
|
380
383
|
# @api public
|
381
384
|
# @private
|
382
385
|
#
|
383
|
-
# source://parser//lib/parser/ast/processor.rb#
|
386
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
384
387
|
def on_lvasgn(node); end
|
385
388
|
|
386
389
|
# @api public
|
387
390
|
#
|
388
|
-
# source://parser//lib/parser/ast/processor.rb#
|
391
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
389
392
|
def on_masgn(node); end
|
390
393
|
|
391
394
|
# @api public
|
392
395
|
#
|
393
|
-
# source://parser//lib/parser/ast/processor.rb#
|
396
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
394
397
|
def on_match_alt(node); end
|
395
398
|
|
396
399
|
# @api public
|
397
400
|
#
|
398
|
-
# source://parser//lib/parser/ast/processor.rb#
|
401
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
399
402
|
def on_match_as(node); end
|
400
403
|
|
401
404
|
# @api public
|
402
405
|
#
|
403
|
-
# source://parser//lib/parser/ast/processor.rb#
|
406
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
404
407
|
def on_match_current_line(node); end
|
405
408
|
|
406
409
|
# @api public
|
407
410
|
#
|
408
|
-
# source://parser//lib/parser/ast/processor.rb#
|
411
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
409
412
|
def on_match_pattern(node); end
|
410
413
|
|
411
414
|
# @api public
|
412
415
|
#
|
413
|
-
# source://parser//lib/parser/ast/processor.rb#
|
416
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
414
417
|
def on_match_pattern_p(node); end
|
415
418
|
|
416
419
|
# @api public
|
417
420
|
#
|
418
|
-
# source://parser//lib/parser/ast/processor.rb#
|
421
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
419
422
|
def on_match_rest(node); end
|
420
423
|
|
421
424
|
# @api public
|
422
425
|
# @private
|
423
426
|
#
|
424
|
-
# source://parser//lib/parser/ast/processor.rb#
|
427
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
425
428
|
def on_match_var(node); end
|
426
429
|
|
427
430
|
# @api public
|
428
431
|
#
|
429
|
-
# source://parser//lib/parser/ast/processor.rb#
|
432
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
430
433
|
def on_match_with_lvasgn(node); end
|
431
434
|
|
432
435
|
# @api public
|
433
436
|
#
|
434
|
-
# source://parser//lib/parser/ast/processor.rb#
|
437
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
435
438
|
def on_mlhs(node); end
|
436
439
|
|
437
440
|
# @api public
|
438
441
|
#
|
439
|
-
# source://parser//lib/parser/ast/processor.rb#
|
442
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
440
443
|
def on_module(node); end
|
441
444
|
|
442
445
|
# @api public
|
443
446
|
#
|
444
|
-
# source://parser//lib/parser/ast/processor.rb#
|
447
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
445
448
|
def on_next(node); end
|
446
449
|
|
447
450
|
# @api public
|
448
451
|
#
|
449
|
-
# source://parser//lib/parser/ast/processor.rb#
|
452
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
450
453
|
def on_not(node); end
|
451
454
|
|
452
455
|
# @api public
|
453
456
|
# @private
|
454
457
|
#
|
455
|
-
# source://parser//lib/parser/ast/processor.rb#
|
458
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
456
459
|
def on_nth_ref(node); end
|
457
460
|
|
458
461
|
# @api public
|
459
462
|
#
|
460
|
-
# source://parser//lib/parser/ast/processor.rb#
|
463
|
+
# source://parser//lib/parser/ast/processor.rb#198
|
461
464
|
def on_numblock(node); end
|
462
465
|
|
463
466
|
# @api public
|
464
467
|
#
|
465
|
-
# source://parser//lib/parser/ast/processor.rb#
|
468
|
+
# source://parser//lib/parser/ast/processor.rb#70
|
466
469
|
def on_op_asgn(node); end
|
467
470
|
|
468
471
|
# @api public
|
469
472
|
# @private
|
470
473
|
#
|
471
|
-
# source://parser//lib/parser/ast/processor.rb#
|
474
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
472
475
|
def on_optarg(node); end
|
473
476
|
|
474
477
|
# @api public
|
475
478
|
#
|
476
|
-
# source://parser//lib/parser/ast/processor.rb#
|
479
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
477
480
|
def on_or(node); end
|
478
481
|
|
479
482
|
# @api public
|
480
483
|
#
|
481
|
-
# source://parser//lib/parser/ast/processor.rb#
|
484
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
482
485
|
def on_or_asgn(node); end
|
483
486
|
|
484
487
|
# @api public
|
485
488
|
#
|
486
|
-
# source://parser//lib/parser/ast/processor.rb#
|
489
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
487
490
|
def on_pair(node); end
|
488
491
|
|
489
492
|
# @api public
|
490
493
|
#
|
491
|
-
# source://parser//lib/parser/ast/processor.rb#
|
494
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
492
495
|
def on_pin(node); end
|
493
496
|
|
494
497
|
# @api public
|
495
498
|
#
|
496
|
-
# source://parser//lib/parser/ast/processor.rb#
|
499
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
497
500
|
def on_postexe(node); end
|
498
501
|
|
499
502
|
# @api public
|
500
503
|
#
|
501
|
-
# source://parser//lib/parser/ast/processor.rb#
|
504
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
502
505
|
def on_preexe(node); end
|
503
506
|
|
504
507
|
# @api public
|
505
508
|
#
|
506
|
-
# source://parser//lib/parser/ast/processor.rb#
|
509
|
+
# source://parser//lib/parser/ast/processor.rb#132
|
507
510
|
def on_procarg0(node); end
|
508
511
|
|
509
512
|
# @api public
|
510
513
|
#
|
511
|
-
# source://parser//lib/parser/ast/processor.rb#
|
514
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
512
515
|
def on_redo(node); end
|
513
516
|
|
514
517
|
# @api public
|
515
518
|
#
|
516
|
-
# source://parser//lib/parser/ast/processor.rb#
|
519
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
517
520
|
def on_regexp(node); end
|
518
521
|
|
519
522
|
# @api public
|
520
523
|
#
|
521
|
-
# source://parser//lib/parser/ast/processor.rb#
|
524
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
522
525
|
def on_resbody(node); end
|
523
526
|
|
524
527
|
# @api public
|
525
528
|
#
|
526
|
-
# source://parser//lib/parser/ast/processor.rb#
|
529
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
527
530
|
def on_rescue(node); end
|
528
531
|
|
529
532
|
# @api public
|
530
533
|
# @private
|
531
534
|
#
|
532
|
-
# source://parser//lib/parser/ast/processor.rb#
|
535
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
533
536
|
def on_restarg(node); end
|
534
537
|
|
535
538
|
# @api public
|
536
539
|
#
|
537
|
-
# source://parser//lib/parser/ast/processor.rb#
|
540
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
538
541
|
def on_restarg_expr(node); end
|
539
542
|
|
540
543
|
# @api public
|
541
544
|
#
|
542
|
-
# source://parser//lib/parser/ast/processor.rb#
|
545
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
543
546
|
def on_retry(node); end
|
544
547
|
|
545
548
|
# @api public
|
546
549
|
#
|
547
|
-
# source://parser//lib/parser/ast/processor.rb#
|
550
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
548
551
|
def on_return(node); end
|
549
552
|
|
550
553
|
# @api public
|
551
554
|
#
|
552
|
-
# source://parser//lib/parser/ast/processor.rb#
|
555
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
553
556
|
def on_sclass(node); end
|
554
557
|
|
555
558
|
# @api public
|
556
559
|
#
|
557
|
-
# source://parser//lib/parser/ast/processor.rb#
|
560
|
+
# source://parser//lib/parser/ast/processor.rb#181
|
558
561
|
def on_send(node); end
|
559
562
|
|
560
563
|
# @api public
|
561
564
|
# @private
|
562
565
|
#
|
563
|
-
# source://parser//lib/parser/ast/processor.rb#
|
566
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
564
567
|
def on_shadowarg(node); end
|
565
568
|
|
566
569
|
# @api public
|
567
570
|
#
|
568
|
-
# source://parser//lib/parser/ast/processor.rb#
|
571
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
569
572
|
def on_splat(node); end
|
570
573
|
|
571
574
|
# @api public
|
572
575
|
#
|
573
|
-
# source://parser//lib/parser/ast/processor.rb#
|
576
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
574
577
|
def on_super(node); end
|
575
578
|
|
576
579
|
# @api public
|
577
580
|
#
|
578
|
-
# source://parser//lib/parser/ast/processor.rb#
|
581
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
579
582
|
def on_undef(node); end
|
580
583
|
|
581
584
|
# @api public
|
582
585
|
#
|
583
|
-
# source://parser//lib/parser/ast/processor.rb#
|
586
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
584
587
|
def on_unless_guard(node); end
|
585
588
|
|
586
589
|
# @api public
|
587
590
|
#
|
588
|
-
# source://parser//lib/parser/ast/processor.rb#
|
591
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
589
592
|
def on_until(node); end
|
590
593
|
|
591
594
|
# @api public
|
592
595
|
#
|
593
|
-
# source://parser//lib/parser/ast/processor.rb#
|
596
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
594
597
|
def on_until_post(node); end
|
595
598
|
|
596
599
|
# @api public
|
597
600
|
#
|
598
|
-
# source://parser//lib/parser/ast/processor.rb#
|
601
|
+
# source://parser//lib/parser/ast/processor.rb#29
|
599
602
|
def on_var(node); end
|
600
603
|
|
601
604
|
# @api public
|
602
605
|
#
|
603
|
-
# source://parser//lib/parser/ast/processor.rb#
|
606
|
+
# source://parser//lib/parser/ast/processor.rb#45
|
604
607
|
def on_vasgn(node); end
|
605
608
|
|
606
609
|
# @api public
|
607
610
|
#
|
608
|
-
# source://parser//lib/parser/ast/processor.rb#
|
611
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
609
612
|
def on_when(node); end
|
610
613
|
|
611
614
|
# @api public
|
612
615
|
#
|
613
|
-
# source://parser//lib/parser/ast/processor.rb#
|
616
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
614
617
|
def on_while(node); end
|
615
618
|
|
616
619
|
# @api public
|
617
620
|
#
|
618
|
-
# source://parser//lib/parser/ast/processor.rb#
|
621
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
619
622
|
def on_while_post(node); end
|
620
623
|
|
621
624
|
# @api public
|
622
625
|
#
|
623
|
-
# source://parser//lib/parser/ast/processor.rb#
|
626
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
624
627
|
def on_xstr(node); end
|
625
628
|
|
626
629
|
# @api public
|
627
630
|
#
|
628
|
-
# source://parser//lib/parser/ast/processor.rb#
|
631
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
629
632
|
def on_yield(node); end
|
630
633
|
|
631
634
|
# @api public
|
632
635
|
# @private
|
633
636
|
#
|
634
|
-
# source://parser//lib/parser/ast/processor.rb#
|
637
|
+
# source://parser//lib/parser/ast/processor.rb#281
|
635
638
|
def process_argument_node(node); end
|
636
639
|
|
637
640
|
# @api public
|
638
641
|
#
|
639
|
-
# source://parser//lib/parser/ast/processor.rb#
|
642
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
640
643
|
def process_regular_node(node); end
|
641
644
|
|
642
645
|
# @api public
|
643
646
|
# @private
|
644
647
|
#
|
645
|
-
# source://parser//lib/parser/ast/processor.rb#
|
648
|
+
# source://parser//lib/parser/ast/processor.rb#273
|
646
649
|
def process_var_asgn_node(node); end
|
647
650
|
|
648
651
|
# @api public
|
649
652
|
# @private
|
650
653
|
#
|
651
|
-
# source://parser//lib/parser/ast/processor.rb#
|
654
|
+
# source://parser//lib/parser/ast/processor.rb#265
|
652
655
|
def process_variable_node(node); end
|
653
656
|
end
|
654
657
|
|
@@ -861,7 +864,7 @@ end
|
|
861
864
|
|
862
865
|
# @api public
|
863
866
|
#
|
864
|
-
# source://parser//lib/parser.rb#
|
867
|
+
# source://parser//lib/parser.rb#78
|
865
868
|
module Parser::Builders; end
|
866
869
|
|
867
870
|
# source://parser//lib/parser/builders/default.rb#8
|
@@ -1552,57 +1555,63 @@ class Parser::ClobberingError < ::RuntimeError; end
|
|
1552
1555
|
class Parser::Context
|
1553
1556
|
# @return [Context] a new instance of Context
|
1554
1557
|
#
|
1555
|
-
# source://parser//lib/parser/context.rb#
|
1558
|
+
# source://parser//lib/parser/context.rb#30
|
1556
1559
|
def initialize; end
|
1557
1560
|
|
1558
|
-
# source://parser//lib/parser/context.rb#
|
1561
|
+
# source://parser//lib/parser/context.rb#45
|
1562
|
+
def cant_return; end
|
1563
|
+
|
1564
|
+
# source://parser//lib/parser/context.rb#45
|
1565
|
+
def cant_return=(_arg0); end
|
1566
|
+
|
1567
|
+
# source://parser//lib/parser/context.rb#45
|
1559
1568
|
def in_argdef; end
|
1560
1569
|
|
1561
|
-
# source://parser//lib/parser/context.rb#
|
1570
|
+
# source://parser//lib/parser/context.rb#45
|
1562
1571
|
def in_argdef=(_arg0); end
|
1563
1572
|
|
1564
|
-
# source://parser//lib/parser/context.rb#
|
1573
|
+
# source://parser//lib/parser/context.rb#45
|
1565
1574
|
def in_block; end
|
1566
1575
|
|
1567
|
-
# source://parser//lib/parser/context.rb#
|
1576
|
+
# source://parser//lib/parser/context.rb#45
|
1568
1577
|
def in_block=(_arg0); end
|
1569
1578
|
|
1570
|
-
# source://parser//lib/parser/context.rb#
|
1579
|
+
# source://parser//lib/parser/context.rb#45
|
1571
1580
|
def in_class; end
|
1572
1581
|
|
1573
|
-
# source://parser//lib/parser/context.rb#
|
1582
|
+
# source://parser//lib/parser/context.rb#45
|
1574
1583
|
def in_class=(_arg0); end
|
1575
1584
|
|
1576
|
-
# source://parser//lib/parser/context.rb#
|
1585
|
+
# source://parser//lib/parser/context.rb#45
|
1577
1586
|
def in_def; end
|
1578
1587
|
|
1579
|
-
# source://parser//lib/parser/context.rb#
|
1588
|
+
# source://parser//lib/parser/context.rb#45
|
1580
1589
|
def in_def=(_arg0); end
|
1581
1590
|
|
1582
|
-
# source://parser//lib/parser/context.rb#
|
1591
|
+
# source://parser//lib/parser/context.rb#45
|
1583
1592
|
def in_defined; end
|
1584
1593
|
|
1585
|
-
# source://parser//lib/parser/context.rb#
|
1594
|
+
# source://parser//lib/parser/context.rb#45
|
1586
1595
|
def in_defined=(_arg0); end
|
1587
1596
|
|
1588
1597
|
# @return [Boolean]
|
1589
1598
|
#
|
1590
|
-
# source://parser//lib/parser/context.rb#
|
1599
|
+
# source://parser//lib/parser/context.rb#47
|
1591
1600
|
def in_dynamic_block?; end
|
1592
1601
|
|
1593
|
-
# source://parser//lib/parser/context.rb#
|
1602
|
+
# source://parser//lib/parser/context.rb#45
|
1594
1603
|
def in_kwarg; end
|
1595
1604
|
|
1596
|
-
# source://parser//lib/parser/context.rb#
|
1605
|
+
# source://parser//lib/parser/context.rb#45
|
1597
1606
|
def in_kwarg=(_arg0); end
|
1598
1607
|
|
1599
|
-
# source://parser//lib/parser/context.rb#
|
1608
|
+
# source://parser//lib/parser/context.rb#45
|
1600
1609
|
def in_lambda; end
|
1601
1610
|
|
1602
|
-
# source://parser//lib/parser/context.rb#
|
1611
|
+
# source://parser//lib/parser/context.rb#45
|
1603
1612
|
def in_lambda=(_arg0); end
|
1604
1613
|
|
1605
|
-
# source://parser//lib/parser/context.rb#
|
1614
|
+
# source://parser//lib/parser/context.rb#34
|
1606
1615
|
def reset; end
|
1607
1616
|
end
|
1608
1617
|
|
@@ -3329,7 +3338,7 @@ class Parser::Source::Buffer
|
|
3329
3338
|
# @api public
|
3330
3339
|
# @return [Buffer] a new instance of Buffer
|
3331
3340
|
#
|
3332
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3341
|
+
# source://parser//lib/parser/source/buffer.rb#110
|
3333
3342
|
def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
|
3334
3343
|
|
3335
3344
|
# Convert a character index into the source to a column number.
|
@@ -3338,7 +3347,7 @@ class Parser::Source::Buffer
|
|
3338
3347
|
# @param position [Integer]
|
3339
3348
|
# @return [Integer] column
|
3340
3349
|
#
|
3341
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3350
|
+
# source://parser//lib/parser/source/buffer.rb#247
|
3342
3351
|
def column_for_position(position); end
|
3343
3352
|
|
3344
3353
|
# Convert a character index into the source to a `[line, column]` tuple.
|
@@ -3347,7 +3356,7 @@ class Parser::Source::Buffer
|
|
3347
3356
|
# @param position [Integer]
|
3348
3357
|
# @return [[Integer, Integer]] `[line, column]`
|
3349
3358
|
#
|
3350
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3359
|
+
# source://parser//lib/parser/source/buffer.rb#222
|
3351
3360
|
def decompose_position(position); end
|
3352
3361
|
|
3353
3362
|
# First line of the buffer, 1 by default.
|
@@ -3360,12 +3369,12 @@ class Parser::Source::Buffer
|
|
3360
3369
|
|
3361
3370
|
# @api public
|
3362
3371
|
#
|
3363
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3372
|
+
# source://parser//lib/parser/source/buffer.rb#317
|
3364
3373
|
def freeze; end
|
3365
3374
|
|
3366
3375
|
# @api public
|
3367
3376
|
#
|
3368
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3377
|
+
# source://parser//lib/parser/source/buffer.rb#323
|
3369
3378
|
def inspect; end
|
3370
3379
|
|
3371
3380
|
# Number of last line in the buffer
|
@@ -3373,7 +3382,7 @@ class Parser::Source::Buffer
|
|
3373
3382
|
# @api public
|
3374
3383
|
# @return [Integer]
|
3375
3384
|
#
|
3376
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3385
|
+
# source://parser//lib/parser/source/buffer.rb#312
|
3377
3386
|
def last_line; end
|
3378
3387
|
|
3379
3388
|
# Convert a character index into the source to a line number.
|
@@ -3382,7 +3391,7 @@ class Parser::Source::Buffer
|
|
3382
3391
|
# @param position [Integer]
|
3383
3392
|
# @return [Integer] line
|
3384
3393
|
#
|
3385
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3394
|
+
# source://parser//lib/parser/source/buffer.rb#236
|
3386
3395
|
def line_for_position(position); end
|
3387
3396
|
|
3388
3397
|
# Extract line `lineno` as a new `Range`, taking `first_line` into account.
|
@@ -3392,7 +3401,7 @@ class Parser::Source::Buffer
|
|
3392
3401
|
# @raise [IndexError] if `lineno` is out of bounds
|
3393
3402
|
# @return [Range]
|
3394
3403
|
#
|
3395
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3404
|
+
# source://parser//lib/parser/source/buffer.rb#289
|
3396
3405
|
def line_range(lineno); end
|
3397
3406
|
|
3398
3407
|
# Buffer name. If the buffer was created from a file, the name corresponds
|
@@ -3411,7 +3420,7 @@ class Parser::Source::Buffer
|
|
3411
3420
|
# @raise [ArgumentError] if already populated
|
3412
3421
|
# @return [String]
|
3413
3422
|
#
|
3414
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3423
|
+
# source://parser//lib/parser/source/buffer.rb#185
|
3415
3424
|
def raw_source=(input); end
|
3416
3425
|
|
3417
3426
|
# Populate this buffer from correspondingly named file.
|
@@ -3422,12 +3431,12 @@ class Parser::Source::Buffer
|
|
3422
3431
|
# @raise [ArgumentError] if already populated
|
3423
3432
|
# @return [Buffer] self
|
3424
3433
|
#
|
3425
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3434
|
+
# source://parser//lib/parser/source/buffer.rb#136
|
3426
3435
|
def read; end
|
3427
3436
|
|
3428
3437
|
# @api public
|
3429
3438
|
#
|
3430
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3439
|
+
# source://parser//lib/parser/source/buffer.rb#199
|
3431
3440
|
def slice(start, length = T.unsafe(nil)); end
|
3432
3441
|
|
3433
3442
|
# Source code contained in this buffer.
|
@@ -3436,7 +3445,7 @@ class Parser::Source::Buffer
|
|
3436
3445
|
# @raise [RuntimeError] if buffer is not populated yet
|
3437
3446
|
# @return [String] source code
|
3438
3447
|
#
|
3439
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3448
|
+
# source://parser//lib/parser/source/buffer.rb#150
|
3440
3449
|
def source; end
|
3441
3450
|
|
3442
3451
|
# Populate this buffer from a string with encoding autodetection.
|
@@ -3448,7 +3457,7 @@ class Parser::Source::Buffer
|
|
3448
3457
|
# @raise [EncodingError] if `input` includes invalid byte sequence for the encoding
|
3449
3458
|
# @return [String]
|
3450
3459
|
#
|
3451
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3460
|
+
# source://parser//lib/parser/source/buffer.rb#167
|
3452
3461
|
def source=(input); end
|
3453
3462
|
|
3454
3463
|
# Extract line `lineno` from source, taking `first_line` into account.
|
@@ -3458,7 +3467,7 @@ class Parser::Source::Buffer
|
|
3458
3467
|
# @raise [IndexError] if `lineno` is out of bounds
|
3459
3468
|
# @return [String]
|
3460
3469
|
#
|
3461
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3470
|
+
# source://parser//lib/parser/source/buffer.rb#278
|
3462
3471
|
def source_line(lineno); end
|
3463
3472
|
|
3464
3473
|
# Return an `Array` of source code lines.
|
@@ -3466,30 +3475,30 @@ class Parser::Source::Buffer
|
|
3466
3475
|
# @api public
|
3467
3476
|
# @return [Array<String>]
|
3468
3477
|
#
|
3469
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3478
|
+
# source://parser//lib/parser/source/buffer.rb#257
|
3470
3479
|
def source_lines; end
|
3471
3480
|
|
3472
3481
|
# @api public
|
3473
3482
|
# @return [Range] A range covering the whole source
|
3474
3483
|
#
|
3475
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3484
|
+
# source://parser//lib/parser/source/buffer.rb#303
|
3476
3485
|
def source_range; end
|
3477
3486
|
|
3478
3487
|
private
|
3479
3488
|
|
3480
3489
|
# @api public
|
3481
3490
|
#
|
3482
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3491
|
+
# source://parser//lib/parser/source/buffer.rb#353
|
3483
3492
|
def bsearch(line_begins, position); end
|
3484
3493
|
|
3485
3494
|
# @api public
|
3486
3495
|
#
|
3487
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3496
|
+
# source://parser//lib/parser/source/buffer.rb#330
|
3488
3497
|
def line_begins; end
|
3489
3498
|
|
3490
3499
|
# @api public
|
3491
3500
|
#
|
3492
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3501
|
+
# source://parser//lib/parser/source/buffer.rb#344
|
3493
3502
|
def line_index_for_position(position); end
|
3494
3503
|
|
3495
3504
|
class << self
|
@@ -3498,9 +3507,10 @@ class Parser::Source::Buffer
|
|
3498
3507
|
#
|
3499
3508
|
# @api public
|
3500
3509
|
# @param string [String]
|
3510
|
+
# @raise [Parser::UnknownEncodingInMagicComment] if the encoding is not recognized
|
3501
3511
|
# @return [String, nil] encoding name, if recognized
|
3502
3512
|
#
|
3503
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3513
|
+
# source://parser//lib/parser/source/buffer.rb#52
|
3504
3514
|
def recognize_encoding(string); end
|
3505
3515
|
|
3506
3516
|
# Recognize encoding of `input` and process it so it could be lexed.
|
@@ -3518,7 +3528,7 @@ class Parser::Source::Buffer
|
|
3518
3528
|
# @raise [EncodingError]
|
3519
3529
|
# @return [String]
|
3520
3530
|
#
|
3521
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3531
|
+
# source://parser//lib/parser/source/buffer.rb#95
|
3522
3532
|
def reencode_string(input); end
|
3523
3533
|
end
|
3524
3534
|
end
|
@@ -5124,80 +5134,80 @@ end
|
|
5124
5134
|
# source://parser//lib/parser/source/tree_rewriter.rb#391
|
5125
5135
|
Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array)
|
5126
5136
|
|
5127
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5137
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#14
|
5128
5138
|
class Parser::Source::TreeRewriter::Action
|
5129
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5139
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#17
|
5130
5140
|
def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end
|
5131
5141
|
|
5132
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5142
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#29
|
5133
5143
|
def combine(action); end
|
5134
5144
|
|
5135
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5145
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#68
|
5136
5146
|
def contract; end
|
5137
5147
|
|
5138
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5148
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#34
|
5139
5149
|
def empty?; end
|
5140
5150
|
|
5141
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5151
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5142
5152
|
def insert_after; end
|
5143
5153
|
|
5144
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5154
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5145
5155
|
def insert_before; end
|
5146
5156
|
|
5147
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5157
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#58
|
5148
5158
|
def insertion?; end
|
5149
5159
|
|
5150
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5160
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#81
|
5151
5161
|
def moved(source_buffer, offset); end
|
5152
5162
|
|
5153
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5163
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#50
|
5154
5164
|
def nested_actions; end
|
5155
5165
|
|
5156
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5166
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#41
|
5157
5167
|
def ordered_replacements; end
|
5158
5168
|
|
5159
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5169
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5160
5170
|
def range; end
|
5161
5171
|
|
5162
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5172
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5163
5173
|
def replacement; end
|
5164
5174
|
|
5165
5175
|
protected
|
5166
5176
|
|
5167
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5177
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#159
|
5168
5178
|
def analyse_hierarchy(action); end
|
5169
5179
|
|
5170
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5180
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#146
|
5171
5181
|
def bsearch_child_index(from = T.unsafe(nil)); end
|
5172
5182
|
|
5173
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5183
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#225
|
5174
5184
|
def call_enforcer_for_merge(action); end
|
5175
5185
|
|
5176
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5186
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#205
|
5177
5187
|
def check_fusible(action, *fusible); end
|
5178
5188
|
|
5179
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5189
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#95
|
5180
5190
|
def children; end
|
5181
5191
|
|
5182
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5192
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#130
|
5183
5193
|
def combine_children(more_children); end
|
5184
5194
|
|
5185
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5195
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#103
|
5186
5196
|
def do_combine(action); end
|
5187
5197
|
|
5188
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5198
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#136
|
5189
5199
|
def fuse_deletions(action, fusible, other_sibblings); end
|
5190
5200
|
|
5191
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5201
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#216
|
5192
5202
|
def merge(action); end
|
5193
5203
|
|
5194
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5204
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#111
|
5195
5205
|
def place_in_hierarchy(action); end
|
5196
5206
|
|
5197
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5207
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#233
|
5198
5208
|
def swallow(children); end
|
5199
5209
|
|
5200
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5210
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#97
|
5201
5211
|
def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end
|
5202
5212
|
end
|
5203
5213
|
|
@@ -5215,90 +5225,122 @@ Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
|
|
5215
5225
|
class Parser::StaticEnvironment
|
5216
5226
|
# @return [StaticEnvironment] a new instance of StaticEnvironment
|
5217
5227
|
#
|
5218
|
-
# source://parser//lib/parser/static_environment.rb#
|
5228
|
+
# source://parser//lib/parser/static_environment.rb#17
|
5219
5229
|
def initialize; end
|
5220
5230
|
|
5221
|
-
# source://parser//lib/parser/static_environment.rb#
|
5231
|
+
# source://parser//lib/parser/static_environment.rb#55
|
5222
5232
|
def declare(name); end
|
5223
5233
|
|
5224
|
-
#
|
5234
|
+
# Anonymous blockarg
|
5235
|
+
#
|
5236
|
+
# source://parser//lib/parser/static_environment.rb#77
|
5225
5237
|
def declare_anonymous_blockarg; end
|
5226
5238
|
|
5227
|
-
#
|
5239
|
+
# Anonymous kwresarg
|
5240
|
+
#
|
5241
|
+
# source://parser//lib/parser/static_environment.rb#113
|
5228
5242
|
def declare_anonymous_kwrestarg; end
|
5229
5243
|
|
5230
|
-
#
|
5244
|
+
# Anonymous restarg
|
5245
|
+
#
|
5246
|
+
# source://parser//lib/parser/static_environment.rb#95
|
5231
5247
|
def declare_anonymous_restarg; end
|
5232
5248
|
|
5233
|
-
#
|
5249
|
+
# Forward args
|
5250
|
+
#
|
5251
|
+
# source://parser//lib/parser/static_environment.rb#67
|
5234
5252
|
def declare_forward_args; end
|
5235
5253
|
|
5236
5254
|
# @return [Boolean]
|
5237
5255
|
#
|
5238
|
-
# source://parser//lib/parser/static_environment.rb#
|
5256
|
+
# source://parser//lib/parser/static_environment.rb#61
|
5239
5257
|
def declared?(name); end
|
5240
5258
|
|
5241
5259
|
# @return [Boolean]
|
5242
5260
|
#
|
5243
|
-
# source://parser//lib/parser/static_environment.rb#
|
5261
|
+
# source://parser//lib/parser/static_environment.rb#81
|
5244
5262
|
def declared_anonymous_blockarg?; end
|
5245
5263
|
|
5246
5264
|
# @return [Boolean]
|
5247
5265
|
#
|
5248
|
-
# source://parser//lib/parser/static_environment.rb#
|
5266
|
+
# source://parser//lib/parser/static_environment.rb#85
|
5267
|
+
def declared_anonymous_blockarg_in_current_scpe?; end
|
5268
|
+
|
5269
|
+
# @return [Boolean]
|
5270
|
+
#
|
5271
|
+
# source://parser//lib/parser/static_environment.rb#117
|
5249
5272
|
def declared_anonymous_kwrestarg?; end
|
5250
5273
|
|
5251
5274
|
# @return [Boolean]
|
5252
5275
|
#
|
5253
|
-
# source://parser//lib/parser/static_environment.rb#
|
5276
|
+
# source://parser//lib/parser/static_environment.rb#121
|
5277
|
+
def declared_anonymous_kwrestarg_in_current_scope?; end
|
5278
|
+
|
5279
|
+
# @return [Boolean]
|
5280
|
+
#
|
5281
|
+
# source://parser//lib/parser/static_environment.rb#99
|
5254
5282
|
def declared_anonymous_restarg?; end
|
5255
5283
|
|
5256
5284
|
# @return [Boolean]
|
5257
5285
|
#
|
5258
|
-
# source://parser//lib/parser/static_environment.rb#
|
5286
|
+
# source://parser//lib/parser/static_environment.rb#103
|
5287
|
+
def declared_anonymous_restarg_in_current_scope?; end
|
5288
|
+
|
5289
|
+
# @return [Boolean]
|
5290
|
+
#
|
5291
|
+
# source://parser//lib/parser/static_environment.rb#71
|
5259
5292
|
def declared_forward_args?; end
|
5260
5293
|
|
5261
5294
|
# @return [Boolean]
|
5262
5295
|
#
|
5263
|
-
# source://parser//lib/parser/static_environment.rb#
|
5296
|
+
# source://parser//lib/parser/static_environment.rb#129
|
5264
5297
|
def empty?; end
|
5265
5298
|
|
5266
|
-
# source://parser//lib/parser/static_environment.rb#
|
5299
|
+
# source://parser//lib/parser/static_environment.rb#33
|
5267
5300
|
def extend_dynamic; end
|
5268
5301
|
|
5269
|
-
# source://parser//lib/parser/static_environment.rb#
|
5302
|
+
# source://parser//lib/parser/static_environment.rb#26
|
5270
5303
|
def extend_static; end
|
5271
5304
|
|
5272
5305
|
# @return [Boolean]
|
5273
5306
|
#
|
5274
|
-
# source://parser//lib/parser/static_environment.rb#
|
5307
|
+
# source://parser//lib/parser/static_environment.rb#89
|
5275
5308
|
def parent_has_anonymous_blockarg?; end
|
5276
5309
|
|
5277
5310
|
# @return [Boolean]
|
5278
5311
|
#
|
5279
|
-
# source://parser//lib/parser/static_environment.rb#
|
5312
|
+
# source://parser//lib/parser/static_environment.rb#125
|
5280
5313
|
def parent_has_anonymous_kwrestarg?; end
|
5281
5314
|
|
5282
5315
|
# @return [Boolean]
|
5283
5316
|
#
|
5284
|
-
# source://parser//lib/parser/static_environment.rb#
|
5317
|
+
# source://parser//lib/parser/static_environment.rb#107
|
5285
5318
|
def parent_has_anonymous_restarg?; end
|
5286
5319
|
|
5287
|
-
# source://parser//lib/parser/static_environment.rb#
|
5320
|
+
# source://parser//lib/parser/static_environment.rb#21
|
5288
5321
|
def reset; end
|
5289
5322
|
|
5290
|
-
# source://parser//lib/parser/static_environment.rb#
|
5323
|
+
# source://parser//lib/parser/static_environment.rb#49
|
5291
5324
|
def unextend; end
|
5292
5325
|
end
|
5293
5326
|
|
5294
|
-
# source://parser//lib/parser/static_environment.rb#
|
5295
|
-
Parser::StaticEnvironment::
|
5327
|
+
# source://parser//lib/parser/static_environment.rb#15
|
5328
|
+
Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_INHERITED = T.let(T.unsafe(nil), Symbol)
|
5329
|
+
|
5330
|
+
# source://parser//lib/parser/static_environment.rb#14
|
5331
|
+
Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
|
5332
|
+
|
5333
|
+
# source://parser//lib/parser/static_environment.rb#12
|
5334
|
+
Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_INHERITED = T.let(T.unsafe(nil), Symbol)
|
5335
|
+
|
5336
|
+
# source://parser//lib/parser/static_environment.rb#11
|
5337
|
+
Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
|
5296
5338
|
|
5297
5339
|
# source://parser//lib/parser/static_environment.rb#9
|
5298
|
-
Parser::StaticEnvironment::
|
5340
|
+
Parser::StaticEnvironment::ANONYMOUS_RESTARG_INHERITED = T.let(T.unsafe(nil), Symbol)
|
5299
5341
|
|
5300
5342
|
# source://parser//lib/parser/static_environment.rb#8
|
5301
|
-
Parser::StaticEnvironment::
|
5343
|
+
Parser::StaticEnvironment::ANONYMOUS_RESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
|
5302
5344
|
|
5303
5345
|
# source://parser//lib/parser/static_environment.rb#6
|
5304
5346
|
Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
|
@@ -5438,6 +5480,17 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
|
|
5438
5480
|
def wrap(range, before, after); end
|
5439
5481
|
end
|
5440
5482
|
|
5483
|
+
# {Parser::UnknownEncodingInMagicComment} is raised when a magic encoding
|
5484
|
+
# comment is encountered that the currently running Ruby version doesn't
|
5485
|
+
# recognize. It inherits from {ArgumentError} since that is the exception
|
5486
|
+
# Ruby itself raises when trying to execute a file with an unknown encoding.
|
5487
|
+
# As such, it is also not a {Parser::SyntaxError}.
|
5488
|
+
#
|
5489
|
+
# @api public
|
5490
|
+
#
|
5491
|
+
# source://parser//lib/parser/unknown_encoding_in_magic_comment_error.rb#13
|
5492
|
+
class Parser::UnknownEncodingInMagicComment < ::ArgumentError; end
|
5493
|
+
|
5441
5494
|
# source://parser//lib/parser/version.rb#4
|
5442
5495
|
Parser::VERSION = T.let(T.unsafe(nil), String)
|
5443
5496
|
|