sorbet-result 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +1 -1
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +11 -0
  6. data/Gemfile +1 -1
  7. data/Gemfile.lock +52 -57
  8. data/README.md +3 -3
  9. data/lib/typed/result.rb +32 -2
  10. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  11. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
  12. data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
  13. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.5.rbi} +148 -72
  14. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
  15. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  16. data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.1.rbi} +252 -241
  17. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  18. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
  19. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.5.1.rbi} +233 -186
  20. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  21. data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
  22. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
  23. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  24. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  25. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  26. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  27. data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.5.10.rbi} +1 -0
  28. data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.33.1.rbi} +1143 -671
  29. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.22.1.rbi} +1 -0
  30. data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +1 -0
  31. data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.66.1.rbi} +3312 -2415
  32. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  33. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.5.0.rbi} +2009 -854
  34. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  35. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.5.0.rbi} +1 -0
  36. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
  37. data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.41.1.rbi} +171 -95
  38. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
  39. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.3.rbi} +357 -257
  40. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
  41. data/sorbet/rbi/gems/{unicode-display_width@2.5.0.rbi → unicode-display_width@2.6.0.rbi} +1 -0
  42. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  43. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
  44. metadata +28 -45
  45. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  46. data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
  47. data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
  48. data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
  49. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
@@ -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 < ::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#10
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#10
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#10
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#116
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#10
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#10
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#103
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#10
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#10
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#10
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#32
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#10
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#10
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#10
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#116
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#10
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#10
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#10
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#10
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#87
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#10
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#79
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#10
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
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#32
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#56
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#158
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#10
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#167
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#10
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#10
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#10
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#286
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#10
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#10
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#10
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#10
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#116
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#10
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#10
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#32
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#56
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#10
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#10
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#10
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#10
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#10
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#10
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#10
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#10
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#10
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#10
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#32
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#56
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#116
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#10
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#10
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#116
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#116
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#10
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#10
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#32
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#56
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#10
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#10
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#10
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#10
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#10
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#10
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#10
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#32
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#10
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#10
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#10
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#10
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#10
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#32
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#196
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#68
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#116
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#10
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#10
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#10
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#10
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#10
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#10
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#130
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#10
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#10
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#10
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#10
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#116
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#10
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#10
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#10
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#10
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#179
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#116
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#10
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#10
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#10
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#10
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#10
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#10
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#27
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#43
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#10
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#10
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#10
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#10
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#10
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#279
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#10
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#271
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#263
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#77
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
@@ -3329,7 +3332,7 @@ class Parser::Source::Buffer
3329
3332
  # @api public
3330
3333
  # @return [Buffer] a new instance of Buffer
3331
3334
  #
3332
- # source://parser//lib/parser/source/buffer.rb#105
3335
+ # source://parser//lib/parser/source/buffer.rb#110
3333
3336
  def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
3334
3337
 
3335
3338
  # Convert a character index into the source to a column number.
@@ -3338,7 +3341,7 @@ class Parser::Source::Buffer
3338
3341
  # @param position [Integer]
3339
3342
  # @return [Integer] column
3340
3343
  #
3341
- # source://parser//lib/parser/source/buffer.rb#242
3344
+ # source://parser//lib/parser/source/buffer.rb#247
3342
3345
  def column_for_position(position); end
3343
3346
 
3344
3347
  # Convert a character index into the source to a `[line, column]` tuple.
@@ -3347,7 +3350,7 @@ class Parser::Source::Buffer
3347
3350
  # @param position [Integer]
3348
3351
  # @return [[Integer, Integer]] `[line, column]`
3349
3352
  #
3350
- # source://parser//lib/parser/source/buffer.rb#217
3353
+ # source://parser//lib/parser/source/buffer.rb#222
3351
3354
  def decompose_position(position); end
3352
3355
 
3353
3356
  # First line of the buffer, 1 by default.
@@ -3360,12 +3363,12 @@ class Parser::Source::Buffer
3360
3363
 
3361
3364
  # @api public
3362
3365
  #
3363
- # source://parser//lib/parser/source/buffer.rb#312
3366
+ # source://parser//lib/parser/source/buffer.rb#317
3364
3367
  def freeze; end
3365
3368
 
3366
3369
  # @api public
3367
3370
  #
3368
- # source://parser//lib/parser/source/buffer.rb#318
3371
+ # source://parser//lib/parser/source/buffer.rb#323
3369
3372
  def inspect; end
3370
3373
 
3371
3374
  # Number of last line in the buffer
@@ -3373,7 +3376,7 @@ class Parser::Source::Buffer
3373
3376
  # @api public
3374
3377
  # @return [Integer]
3375
3378
  #
3376
- # source://parser//lib/parser/source/buffer.rb#307
3379
+ # source://parser//lib/parser/source/buffer.rb#312
3377
3380
  def last_line; end
3378
3381
 
3379
3382
  # Convert a character index into the source to a line number.
@@ -3382,7 +3385,7 @@ class Parser::Source::Buffer
3382
3385
  # @param position [Integer]
3383
3386
  # @return [Integer] line
3384
3387
  #
3385
- # source://parser//lib/parser/source/buffer.rb#231
3388
+ # source://parser//lib/parser/source/buffer.rb#236
3386
3389
  def line_for_position(position); end
3387
3390
 
3388
3391
  # Extract line `lineno` as a new `Range`, taking `first_line` into account.
@@ -3392,7 +3395,7 @@ class Parser::Source::Buffer
3392
3395
  # @raise [IndexError] if `lineno` is out of bounds
3393
3396
  # @return [Range]
3394
3397
  #
3395
- # source://parser//lib/parser/source/buffer.rb#284
3398
+ # source://parser//lib/parser/source/buffer.rb#289
3396
3399
  def line_range(lineno); end
3397
3400
 
3398
3401
  # Buffer name. If the buffer was created from a file, the name corresponds
@@ -3411,7 +3414,7 @@ class Parser::Source::Buffer
3411
3414
  # @raise [ArgumentError] if already populated
3412
3415
  # @return [String]
3413
3416
  #
3414
- # source://parser//lib/parser/source/buffer.rb#180
3417
+ # source://parser//lib/parser/source/buffer.rb#185
3415
3418
  def raw_source=(input); end
3416
3419
 
3417
3420
  # Populate this buffer from correspondingly named file.
@@ -3422,12 +3425,12 @@ class Parser::Source::Buffer
3422
3425
  # @raise [ArgumentError] if already populated
3423
3426
  # @return [Buffer] self
3424
3427
  #
3425
- # source://parser//lib/parser/source/buffer.rb#131
3428
+ # source://parser//lib/parser/source/buffer.rb#136
3426
3429
  def read; end
3427
3430
 
3428
3431
  # @api public
3429
3432
  #
3430
- # source://parser//lib/parser/source/buffer.rb#194
3433
+ # source://parser//lib/parser/source/buffer.rb#199
3431
3434
  def slice(start, length = T.unsafe(nil)); end
3432
3435
 
3433
3436
  # Source code contained in this buffer.
@@ -3436,7 +3439,7 @@ class Parser::Source::Buffer
3436
3439
  # @raise [RuntimeError] if buffer is not populated yet
3437
3440
  # @return [String] source code
3438
3441
  #
3439
- # source://parser//lib/parser/source/buffer.rb#145
3442
+ # source://parser//lib/parser/source/buffer.rb#150
3440
3443
  def source; end
3441
3444
 
3442
3445
  # Populate this buffer from a string with encoding autodetection.
@@ -3448,7 +3451,7 @@ class Parser::Source::Buffer
3448
3451
  # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding
3449
3452
  # @return [String]
3450
3453
  #
3451
- # source://parser//lib/parser/source/buffer.rb#162
3454
+ # source://parser//lib/parser/source/buffer.rb#167
3452
3455
  def source=(input); end
3453
3456
 
3454
3457
  # Extract line `lineno` from source, taking `first_line` into account.
@@ -3458,7 +3461,7 @@ class Parser::Source::Buffer
3458
3461
  # @raise [IndexError] if `lineno` is out of bounds
3459
3462
  # @return [String]
3460
3463
  #
3461
- # source://parser//lib/parser/source/buffer.rb#273
3464
+ # source://parser//lib/parser/source/buffer.rb#278
3462
3465
  def source_line(lineno); end
3463
3466
 
3464
3467
  # Return an `Array` of source code lines.
@@ -3466,30 +3469,30 @@ class Parser::Source::Buffer
3466
3469
  # @api public
3467
3470
  # @return [Array<String>]
3468
3471
  #
3469
- # source://parser//lib/parser/source/buffer.rb#252
3472
+ # source://parser//lib/parser/source/buffer.rb#257
3470
3473
  def source_lines; end
3471
3474
 
3472
3475
  # @api public
3473
3476
  # @return [Range] A range covering the whole source
3474
3477
  #
3475
- # source://parser//lib/parser/source/buffer.rb#298
3478
+ # source://parser//lib/parser/source/buffer.rb#303
3476
3479
  def source_range; end
3477
3480
 
3478
3481
  private
3479
3482
 
3480
3483
  # @api public
3481
3484
  #
3482
- # source://parser//lib/parser/source/buffer.rb#348
3485
+ # source://parser//lib/parser/source/buffer.rb#353
3483
3486
  def bsearch(line_begins, position); end
3484
3487
 
3485
3488
  # @api public
3486
3489
  #
3487
- # source://parser//lib/parser/source/buffer.rb#325
3490
+ # source://parser//lib/parser/source/buffer.rb#330
3488
3491
  def line_begins; end
3489
3492
 
3490
3493
  # @api public
3491
3494
  #
3492
- # source://parser//lib/parser/source/buffer.rb#339
3495
+ # source://parser//lib/parser/source/buffer.rb#344
3493
3496
  def line_index_for_position(position); end
3494
3497
 
3495
3498
  class << self
@@ -3498,9 +3501,10 @@ class Parser::Source::Buffer
3498
3501
  #
3499
3502
  # @api public
3500
3503
  # @param string [String]
3504
+ # @raise [Parser::UnknownEncodingInMagicComment] if the encoding is not recognized
3501
3505
  # @return [String, nil] encoding name, if recognized
3502
3506
  #
3503
- # source://parser//lib/parser/source/buffer.rb#51
3507
+ # source://parser//lib/parser/source/buffer.rb#52
3504
3508
  def recognize_encoding(string); end
3505
3509
 
3506
3510
  # Recognize encoding of `input` and process it so it could be lexed.
@@ -3518,7 +3522,7 @@ class Parser::Source::Buffer
3518
3522
  # @raise [EncodingError]
3519
3523
  # @return [String]
3520
3524
  #
3521
- # source://parser//lib/parser/source/buffer.rb#90
3525
+ # source://parser//lib/parser/source/buffer.rb#95
3522
3526
  def reencode_string(input); end
3523
3527
  end
3524
3528
  end
@@ -5124,80 +5128,80 @@ end
5124
5128
  # source://parser//lib/parser/source/tree_rewriter.rb#391
5125
5129
  Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array)
5126
5130
 
5127
- # source://parser//lib/parser/source/tree_rewriter/action.rb#13
5131
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#14
5128
5132
  class Parser::Source::TreeRewriter::Action
5129
- # source://parser//lib/parser/source/tree_rewriter/action.rb#16
5133
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#17
5130
5134
  def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end
5131
5135
 
5132
- # source://parser//lib/parser/source/tree_rewriter/action.rb#28
5136
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#29
5133
5137
  def combine(action); end
5134
5138
 
5135
- # source://parser//lib/parser/source/tree_rewriter/action.rb#67
5139
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#68
5136
5140
  def contract; end
5137
5141
 
5138
- # source://parser//lib/parser/source/tree_rewriter/action.rb#33
5142
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#34
5139
5143
  def empty?; end
5140
5144
 
5141
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
5145
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#15
5142
5146
  def insert_after; end
5143
5147
 
5144
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
5148
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#15
5145
5149
  def insert_before; end
5146
5150
 
5147
- # source://parser//lib/parser/source/tree_rewriter/action.rb#57
5151
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#58
5148
5152
  def insertion?; end
5149
5153
 
5150
- # source://parser//lib/parser/source/tree_rewriter/action.rb#80
5154
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#81
5151
5155
  def moved(source_buffer, offset); end
5152
5156
 
5153
- # source://parser//lib/parser/source/tree_rewriter/action.rb#49
5157
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#50
5154
5158
  def nested_actions; end
5155
5159
 
5156
- # source://parser//lib/parser/source/tree_rewriter/action.rb#40
5160
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#41
5157
5161
  def ordered_replacements; end
5158
5162
 
5159
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
5163
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#15
5160
5164
  def range; end
5161
5165
 
5162
- # source://parser//lib/parser/source/tree_rewriter/action.rb#14
5166
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#15
5163
5167
  def replacement; end
5164
5168
 
5165
5169
  protected
5166
5170
 
5167
- # source://parser//lib/parser/source/tree_rewriter/action.rb#158
5171
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#159
5168
5172
  def analyse_hierarchy(action); end
5169
5173
 
5170
- # source://parser//lib/parser/source/tree_rewriter/action.rb#145
5174
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#146
5171
5175
  def bsearch_child_index(from = T.unsafe(nil)); end
5172
5176
 
5173
- # source://parser//lib/parser/source/tree_rewriter/action.rb#224
5177
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#225
5174
5178
  def call_enforcer_for_merge(action); end
5175
5179
 
5176
- # source://parser//lib/parser/source/tree_rewriter/action.rb#204
5180
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#205
5177
5181
  def check_fusible(action, *fusible); end
5178
5182
 
5179
- # source://parser//lib/parser/source/tree_rewriter/action.rb#94
5183
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#95
5180
5184
  def children; end
5181
5185
 
5182
- # source://parser//lib/parser/source/tree_rewriter/action.rb#129
5186
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#130
5183
5187
  def combine_children(more_children); end
5184
5188
 
5185
- # source://parser//lib/parser/source/tree_rewriter/action.rb#102
5189
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#103
5186
5190
  def do_combine(action); end
5187
5191
 
5188
- # source://parser//lib/parser/source/tree_rewriter/action.rb#135
5192
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#136
5189
5193
  def fuse_deletions(action, fusible, other_sibblings); end
5190
5194
 
5191
- # source://parser//lib/parser/source/tree_rewriter/action.rb#215
5195
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#216
5192
5196
  def merge(action); end
5193
5197
 
5194
- # source://parser//lib/parser/source/tree_rewriter/action.rb#110
5198
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#111
5195
5199
  def place_in_hierarchy(action); end
5196
5200
 
5197
- # source://parser//lib/parser/source/tree_rewriter/action.rb#232
5201
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#233
5198
5202
  def swallow(children); end
5199
5203
 
5200
- # source://parser//lib/parser/source/tree_rewriter/action.rb#96
5204
+ # source://parser//lib/parser/source/tree_rewriter/action.rb#97
5201
5205
  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
5206
  end
5203
5207
 
@@ -5215,90 +5219,122 @@ Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
5215
5219
  class Parser::StaticEnvironment
5216
5220
  # @return [StaticEnvironment] a new instance of StaticEnvironment
5217
5221
  #
5218
- # source://parser//lib/parser/static_environment.rb#11
5222
+ # source://parser//lib/parser/static_environment.rb#17
5219
5223
  def initialize; end
5220
5224
 
5221
- # source://parser//lib/parser/static_environment.rb#40
5225
+ # source://parser//lib/parser/static_environment.rb#55
5222
5226
  def declare(name); end
5223
5227
 
5224
- # source://parser//lib/parser/static_environment.rb#58
5228
+ # Anonymous blockarg
5229
+ #
5230
+ # source://parser//lib/parser/static_environment.rb#77
5225
5231
  def declare_anonymous_blockarg; end
5226
5232
 
5227
- # source://parser//lib/parser/static_environment.rb#82
5233
+ # Anonymous kwresarg
5234
+ #
5235
+ # source://parser//lib/parser/static_environment.rb#113
5228
5236
  def declare_anonymous_kwrestarg; end
5229
5237
 
5230
- # source://parser//lib/parser/static_environment.rb#70
5238
+ # Anonymous restarg
5239
+ #
5240
+ # source://parser//lib/parser/static_environment.rb#95
5231
5241
  def declare_anonymous_restarg; end
5232
5242
 
5233
- # source://parser//lib/parser/static_environment.rb#50
5243
+ # Forward args
5244
+ #
5245
+ # source://parser//lib/parser/static_environment.rb#67
5234
5246
  def declare_forward_args; end
5235
5247
 
5236
5248
  # @return [Boolean]
5237
5249
  #
5238
- # source://parser//lib/parser/static_environment.rb#46
5250
+ # source://parser//lib/parser/static_environment.rb#61
5239
5251
  def declared?(name); end
5240
5252
 
5241
5253
  # @return [Boolean]
5242
5254
  #
5243
- # source://parser//lib/parser/static_environment.rb#62
5255
+ # source://parser//lib/parser/static_environment.rb#81
5244
5256
  def declared_anonymous_blockarg?; end
5245
5257
 
5246
5258
  # @return [Boolean]
5247
5259
  #
5248
- # source://parser//lib/parser/static_environment.rb#86
5260
+ # source://parser//lib/parser/static_environment.rb#85
5261
+ def declared_anonymous_blockarg_in_current_scpe?; end
5262
+
5263
+ # @return [Boolean]
5264
+ #
5265
+ # source://parser//lib/parser/static_environment.rb#117
5249
5266
  def declared_anonymous_kwrestarg?; end
5250
5267
 
5251
5268
  # @return [Boolean]
5252
5269
  #
5253
- # source://parser//lib/parser/static_environment.rb#74
5270
+ # source://parser//lib/parser/static_environment.rb#121
5271
+ def declared_anonymous_kwrestarg_in_current_scope?; end
5272
+
5273
+ # @return [Boolean]
5274
+ #
5275
+ # source://parser//lib/parser/static_environment.rb#99
5254
5276
  def declared_anonymous_restarg?; end
5255
5277
 
5256
5278
  # @return [Boolean]
5257
5279
  #
5258
- # source://parser//lib/parser/static_environment.rb#54
5280
+ # source://parser//lib/parser/static_environment.rb#103
5281
+ def declared_anonymous_restarg_in_current_scope?; end
5282
+
5283
+ # @return [Boolean]
5284
+ #
5285
+ # source://parser//lib/parser/static_environment.rb#71
5259
5286
  def declared_forward_args?; end
5260
5287
 
5261
5288
  # @return [Boolean]
5262
5289
  #
5263
- # source://parser//lib/parser/static_environment.rb#94
5290
+ # source://parser//lib/parser/static_environment.rb#129
5264
5291
  def empty?; end
5265
5292
 
5266
- # source://parser//lib/parser/static_environment.rb#27
5293
+ # source://parser//lib/parser/static_environment.rb#33
5267
5294
  def extend_dynamic; end
5268
5295
 
5269
- # source://parser//lib/parser/static_environment.rb#20
5296
+ # source://parser//lib/parser/static_environment.rb#26
5270
5297
  def extend_static; end
5271
5298
 
5272
5299
  # @return [Boolean]
5273
5300
  #
5274
- # source://parser//lib/parser/static_environment.rb#66
5301
+ # source://parser//lib/parser/static_environment.rb#89
5275
5302
  def parent_has_anonymous_blockarg?; end
5276
5303
 
5277
5304
  # @return [Boolean]
5278
5305
  #
5279
- # source://parser//lib/parser/static_environment.rb#90
5306
+ # source://parser//lib/parser/static_environment.rb#125
5280
5307
  def parent_has_anonymous_kwrestarg?; end
5281
5308
 
5282
5309
  # @return [Boolean]
5283
5310
  #
5284
- # source://parser//lib/parser/static_environment.rb#78
5311
+ # source://parser//lib/parser/static_environment.rb#107
5285
5312
  def parent_has_anonymous_restarg?; end
5286
5313
 
5287
- # source://parser//lib/parser/static_environment.rb#15
5314
+ # source://parser//lib/parser/static_environment.rb#21
5288
5315
  def reset; end
5289
5316
 
5290
- # source://parser//lib/parser/static_environment.rb#34
5317
+ # source://parser//lib/parser/static_environment.rb#49
5291
5318
  def unextend; end
5292
5319
  end
5293
5320
 
5294
- # source://parser//lib/parser/static_environment.rb#7
5295
- Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol)
5321
+ # source://parser//lib/parser/static_environment.rb#15
5322
+ Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_INHERITED = T.let(T.unsafe(nil), Symbol)
5323
+
5324
+ # source://parser//lib/parser/static_environment.rb#14
5325
+ Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
5326
+
5327
+ # source://parser//lib/parser/static_environment.rb#12
5328
+ Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_INHERITED = T.let(T.unsafe(nil), Symbol)
5329
+
5330
+ # source://parser//lib/parser/static_environment.rb#11
5331
+ Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
5296
5332
 
5297
5333
  # source://parser//lib/parser/static_environment.rb#9
5298
- Parser::StaticEnvironment::ANONYMOUS_KWRESTARG = T.let(T.unsafe(nil), Symbol)
5334
+ Parser::StaticEnvironment::ANONYMOUS_RESTARG_INHERITED = T.let(T.unsafe(nil), Symbol)
5299
5335
 
5300
5336
  # source://parser//lib/parser/static_environment.rb#8
5301
- Parser::StaticEnvironment::ANONYMOUS_RESTARG = T.let(T.unsafe(nil), Symbol)
5337
+ Parser::StaticEnvironment::ANONYMOUS_RESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
5302
5338
 
5303
5339
  # source://parser//lib/parser/static_environment.rb#6
5304
5340
  Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
@@ -5438,6 +5474,17 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
5438
5474
  def wrap(range, before, after); end
5439
5475
  end
5440
5476
 
5477
+ # {Parser::UnknownEncodingInMagicComment} is raised when a magic encoding
5478
+ # comment is encountered that the currently running Ruby version doesn't
5479
+ # recognize. It inherits from {ArgumentError} since that is the exception
5480
+ # Ruby itself raises when trying to execute a file with an unknown encoding.
5481
+ # As such, it is also not a {Parser::SyntaxError}.
5482
+ #
5483
+ # @api public
5484
+ #
5485
+ # source://parser//lib/parser/unknown_encoding_in_magic_comment_error.rb#13
5486
+ class Parser::UnknownEncodingInMagicComment < ::ArgumentError; end
5487
+
5441
5488
  # source://parser//lib/parser/version.rb#4
5442
5489
  Parser::VERSION = T.let(T.unsafe(nil), String)
5443
5490