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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +7 -0
  3. data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
  4. data/.github/workflows/ci.yml +1 -1
  5. data/.ruby-version +1 -1
  6. data/.simplecov +2 -2
  7. data/Gemfile +2 -3
  8. data/Gemfile.lock +90 -84
  9. data/lib/lunchmoney/api.rb +1 -0
  10. data/lib/lunchmoney/calls/categories.rb +0 -2
  11. data/lib/lunchmoney/calls/transactions.rb +0 -1
  12. data/lib/lunchmoney/deprecate.rb +35 -0
  13. data/lib/lunchmoney/objects/asset.rb +6 -1
  14. data/lib/lunchmoney/objects/plaid_account.rb +6 -1
  15. data/lib/lunchmoney/objects/transaction.rb +9 -1
  16. data/lib/lunchmoney/version.rb +1 -1
  17. data/sorbet/rbi/annotations/activesupport.rbi +36 -0
  18. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  19. data/sorbet/rbi/gems/{activesupport@7.1.3.2.rbi → activesupport@7.2.2.1.rbi} +1407 -1292
  20. data/sorbet/rbi/gems/{addressable@2.8.6.rbi → addressable@2.8.7.rbi} +2 -1
  21. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  22. data/sorbet/rbi/gems/{bigdecimal@3.1.7.rbi → bigdecimal@3.1.9.rbi} +1 -0
  23. data/sorbet/rbi/gems/{chef-utils@18.4.2.rbi → chef-utils@18.5.0.rbi} +1 -0
  24. data/sorbet/rbi/gems/{concurrent-ruby@1.2.3.rbi → concurrent-ruby@1.3.5.rbi} +108 -41
  25. data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.0.rbi} +1 -0
  26. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +1 -0
  27. data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.7.rbi} +21 -29
  28. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
  29. data/sorbet/rbi/gems/{faraday-net_http@3.1.0.rbi → faraday-net_http@3.4.0.rbi} +30 -29
  30. data/sorbet/rbi/gems/{faraday@2.9.0.rbi → faraday@2.12.2.rbi} +104 -49
  31. data/sorbet/rbi/gems/{hashdiff@1.1.0.rbi → hashdiff@1.1.2.rbi} +3 -2
  32. data/sorbet/rbi/gems/{i18n@1.14.4.rbi → i18n@1.14.7.rbi} +109 -80
  33. data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.10.2.rbi} +697 -146
  34. data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
  35. data/sorbet/rbi/gems/logger@1.6.6.rbi +940 -0
  36. data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.25.5.rbi} +319 -302
  37. data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.2.8.rbi} +1 -0
  38. data/sorbet/rbi/gems/{mocha@2.2.0.rbi → mocha@2.7.1.rbi} +174 -149
  39. data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
  40. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
  41. data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.7.1.rbi} +256 -203
  42. data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.4.0.rbi} +15882 -12137
  43. data/sorbet/rbi/gems/{public_suffix@5.0.4.rbi → public_suffix@6.0.1.rbi} +1 -0
  44. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +34 -33
  45. data/sorbet/rbi/gems/{rack@3.0.10.rbi → rack@3.1.9.rbi} +704 -989
  46. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  47. data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
  48. data/sorbet/rbi/gems/rbs@3.9.0.rbi +6978 -0
  49. data/sorbet/rbi/gems/{regexp_parser@2.9.1.rbi → regexp_parser@2.10.0.rbi} +195 -172
  50. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.1.rbi} +844 -279
  51. data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.38.0.rbi} +1380 -732
  52. data/sorbet/rbi/gems/{rubocop-minitest@0.35.0.rbi → rubocop-minitest@0.36.0.rbi} +13 -10
  53. data/sorbet/rbi/gems/{rubocop-rails@2.24.1.rbi → rubocop-rails@2.29.1.rbi} +9604 -6343
  54. data/sorbet/rbi/gems/{rubocop-sorbet@0.8.3.rbi → rubocop-sorbet@0.8.7.rbi} +168 -67
  55. data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.71.2.rbi} +6831 -4378
  56. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
  57. data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
  58. data/sorbet/rbi/gems/{tapioca@0.14.1.rbi → tapioca@0.16.11.rbi} +471 -384
  59. data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +58 -31
  60. data/sorbet/rbi/gems/{toys-core@0.15.5.rbi → toys-core@0.15.6.rbi} +1 -0
  61. data/sorbet/rbi/gems/{toys@0.15.5.rbi → toys@0.15.6.rbi} +4 -3
  62. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  63. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  64. data/sorbet/rbi/gems/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
  65. data/sorbet/rbi/gems/{vcr@6.2.0.rbi → vcr@6.3.1.rbi} +72 -68
  66. data/sorbet/rbi/gems/{webmock@3.23.0.rbi → webmock@3.25.1.rbi} +102 -78
  67. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  68. data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
  69. metadata +55 -58
  70. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
  71. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
  72. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
  73. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +0 -93
  74. data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +0 -966
  75. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10077
  76. data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
  77. data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4421
  78. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -160,12 +160,16 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
160
160
  #
161
161
  # @return [Boolean] whether the array is enclosed in percent or square
162
162
  #
163
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#60
163
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#64
164
164
  def bracketed?; end
165
165
 
166
- # @deprecated Use `values.each` (a.k.a. `children.each`)
166
+ # Calls the given block for each `value` node in the `array` literal.
167
+ # If no block is given, an `Enumerator` is returned.
168
+ #
169
+ # @return [self] if a block is given
170
+ # @return [Enumerator] if no block is given
167
171
  #
168
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#21
172
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#25
169
173
  def each_value(&block); end
170
174
 
171
175
  # Checks whether the `array` literal is delimited by percent brackets.
@@ -174,14 +178,14 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
174
178
  # @overload percent_literal?
175
179
  # @return [Boolean] whether the array is enclosed in percent brackets
176
180
  #
177
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#47
181
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#51
178
182
  def percent_literal?(type = T.unsafe(nil)); end
179
183
 
180
184
  # Checks whether the `array` literal is delimited by square brackets.
181
185
  #
182
186
  # @return [Boolean] whether the array is enclosed in square brackets
183
187
  #
184
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#32
188
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#36
185
189
  def square_brackets?; end
186
190
 
187
191
  # Returns an array of all value nodes in the `array` literal.
@@ -205,19 +209,33 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
205
209
  #
206
210
  # @return [Node] the expression being assigned.
207
211
  #
208
- # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#19
212
+ # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
209
213
  def expression; end
210
214
 
215
+ # The name of the variable being assigned as a symbol.
216
+ #
217
+ # @return [Symbol] the name of the variable being assigned
218
+ #
219
+ # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
220
+ def lhs; end
221
+
211
222
  # The name of the variable being assigned as a symbol.
212
223
  #
213
224
  # @return [Symbol] the name of the variable being assigned
214
225
  #
215
226
  # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
216
227
  def name; end
228
+
229
+ # The expression being assigned to the variable.
230
+ #
231
+ # @return [Node] the expression being assigned.
232
+ #
233
+ # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
234
+ def rhs; end
217
235
  end
218
236
 
219
237
  # Common functionality for primitive literal nodes: `sym`, `str`,
220
- # `int`, `float`, ...
238
+ # `int`, `float`, `rational`...
221
239
  #
222
240
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7
223
241
  module RuboCop::AST::BasicLiteralNode
@@ -439,18 +457,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default
439
457
  #
440
458
  # @return [Node] the generated node
441
459
  #
442
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#98
460
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#106
443
461
  def n(type, children, source_map); end
444
462
 
445
463
  # TODO: Figure out what to do about literal encoding handling...
446
464
  # More details here https://github.com/whitequark/parser/issues/283
447
465
  #
448
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#104
466
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#112
449
467
  def string_value(token); end
450
468
 
451
469
  private
452
470
 
453
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#110
471
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#118
454
472
  def node_klass(type); end
455
473
  end
456
474
 
@@ -570,26 +588,27 @@ end
570
588
  #
571
589
  # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8
572
590
  class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
591
+ include ::RuboCop::AST::ConstantNode
592
+
573
593
  # The expression being assigned to the variable.
574
594
  #
575
595
  # @return [Node] the expression being assigned.
576
596
  #
577
- # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#26
597
+ # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
578
598
  def expression; end
579
599
 
580
- # The name of the variable being assigned as a symbol.
581
- #
582
- # @return [Symbol] the name of the variable being assigned
583
- #
584
- # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#19
600
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
601
+ def lhs; end
602
+
603
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
585
604
  def name; end
586
605
 
587
- # The namespace of the constant being assigned.
606
+ # The expression being assigned to the variable.
588
607
  #
589
- # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...)
608
+ # @return [Node] the expression being assigned.
590
609
  #
591
- # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12
592
- def namespace; end
610
+ # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
611
+ def rhs; end
593
612
  end
594
613
 
595
614
  # A node extension for `class` nodes. This will be used in place of a plain
@@ -624,412 +643,412 @@ end
624
643
  #
625
644
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#6
626
645
  module RuboCop::AST::CollectionNode
627
- extend ::Forwardable
646
+ extend ::RuboCop::SimpleForwardable
628
647
 
629
- # source://forwardable/1.3.3/forwardable.rb#231
630
- def &(*args, **_arg1, &block); end
648
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
649
+ def &(*_arg0, **_arg1, &_arg2); end
631
650
 
632
- # source://forwardable/1.3.3/forwardable.rb#231
633
- def *(*args, **_arg1, &block); end
651
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
652
+ def *(*_arg0, **_arg1, &_arg2); end
634
653
 
635
- # source://forwardable/1.3.3/forwardable.rb#231
636
- def +(*args, **_arg1, &block); end
654
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
655
+ def +(*_arg0, **_arg1, &_arg2); end
637
656
 
638
- # source://forwardable/1.3.3/forwardable.rb#231
639
- def -(*args, **_arg1, &block); end
657
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
658
+ def -(*_arg0, **_arg1, &_arg2); end
640
659
 
641
- # source://forwardable/1.3.3/forwardable.rb#231
642
- def <<(*args, **_arg1, &block); end
660
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
661
+ def <<(*_arg0, **_arg1, &_arg2); end
643
662
 
644
- # source://forwardable/1.3.3/forwardable.rb#231
645
- def [](*args, **_arg1, &block); end
663
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
664
+ def [](*_arg0, **_arg1, &_arg2); end
646
665
 
647
- # source://forwardable/1.3.3/forwardable.rb#231
648
- def []=(*args, **_arg1, &block); end
666
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
667
+ def []=(*_arg0, **_arg1, &_arg2); end
649
668
 
650
- # source://forwardable/1.3.3/forwardable.rb#231
651
- def all?(*args, **_arg1, &block); end
669
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
670
+ def all?(*_arg0, **_arg1, &_arg2); end
652
671
 
653
- # source://forwardable/1.3.3/forwardable.rb#231
654
- def any?(*args, **_arg1, &block); end
672
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
673
+ def any?(*_arg0, **_arg1, &_arg2); end
655
674
 
656
- # source://forwardable/1.3.3/forwardable.rb#231
657
- def append(*args, **_arg1, &block); end
675
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
676
+ def append(*_arg0, **_arg1, &_arg2); end
658
677
 
659
- # source://forwardable/1.3.3/forwardable.rb#231
660
- def assoc(*args, **_arg1, &block); end
678
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
679
+ def assoc(*_arg0, **_arg1, &_arg2); end
661
680
 
662
- # source://forwardable/1.3.3/forwardable.rb#231
663
- def at(*args, **_arg1, &block); end
681
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
682
+ def at(*_arg0, **_arg1, &_arg2); end
664
683
 
665
- # source://forwardable/1.3.3/forwardable.rb#231
666
- def bsearch(*args, **_arg1, &block); end
684
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
685
+ def bsearch(*_arg0, **_arg1, &_arg2); end
667
686
 
668
- # source://forwardable/1.3.3/forwardable.rb#231
669
- def bsearch_index(*args, **_arg1, &block); end
687
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
688
+ def bsearch_index(*_arg0, **_arg1, &_arg2); end
670
689
 
671
- # source://forwardable/1.3.3/forwardable.rb#231
672
- def chain(*args, **_arg1, &block); end
690
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
691
+ def chain(*_arg0, **_arg1, &_arg2); end
673
692
 
674
- # source://forwardable/1.3.3/forwardable.rb#231
675
- def chunk(*args, **_arg1, &block); end
693
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
694
+ def chunk(*_arg0, **_arg1, &_arg2); end
676
695
 
677
- # source://forwardable/1.3.3/forwardable.rb#231
678
- def chunk_while(*args, **_arg1, &block); end
696
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
697
+ def chunk_while(*_arg0, **_arg1, &_arg2); end
679
698
 
680
- # source://forwardable/1.3.3/forwardable.rb#231
681
- def clear(*args, **_arg1, &block); end
699
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
700
+ def clear(*_arg0, **_arg1, &_arg2); end
682
701
 
683
- # source://forwardable/1.3.3/forwardable.rb#231
684
- def collect(*args, **_arg1, &block); end
702
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
703
+ def collect(*_arg0, **_arg1, &_arg2); end
685
704
 
686
- # source://forwardable/1.3.3/forwardable.rb#231
687
- def collect!(*args, **_arg1, &block); end
705
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
706
+ def collect!(*_arg0, **_arg1, &_arg2); end
688
707
 
689
- # source://forwardable/1.3.3/forwardable.rb#231
690
- def collect_concat(*args, **_arg1, &block); end
708
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
709
+ def collect_concat(*_arg0, **_arg1, &_arg2); end
691
710
 
692
- # source://forwardable/1.3.3/forwardable.rb#231
693
- def combination(*args, **_arg1, &block); end
711
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
712
+ def combination(*_arg0, **_arg1, &_arg2); end
694
713
 
695
- # source://forwardable/1.3.3/forwardable.rb#231
696
- def compact(*args, **_arg1, &block); end
714
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
715
+ def compact(*_arg0, **_arg1, &_arg2); end
697
716
 
698
- # source://forwardable/1.3.3/forwardable.rb#231
699
- def compact!(*args, **_arg1, &block); end
717
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
718
+ def compact!(*_arg0, **_arg1, &_arg2); end
700
719
 
701
- # source://forwardable/1.3.3/forwardable.rb#231
702
- def concat(*args, **_arg1, &block); end
720
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
721
+ def concat(*_arg0, **_arg1, &_arg2); end
703
722
 
704
- # source://forwardable/1.3.3/forwardable.rb#231
705
- def count(*args, **_arg1, &block); end
723
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
724
+ def count(*_arg0, **_arg1, &_arg2); end
706
725
 
707
- # source://forwardable/1.3.3/forwardable.rb#231
708
- def cycle(*args, **_arg1, &block); end
726
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
727
+ def cycle(*_arg0, **_arg1, &_arg2); end
709
728
 
710
- # source://forwardable/1.3.3/forwardable.rb#231
711
- def deconstruct(*args, **_arg1, &block); end
729
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
730
+ def deconstruct(*_arg0, **_arg1, &_arg2); end
712
731
 
713
- # source://forwardable/1.3.3/forwardable.rb#231
714
- def delete(*args, **_arg1, &block); end
732
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
733
+ def delete(*_arg0, **_arg1, &_arg2); end
715
734
 
716
- # source://forwardable/1.3.3/forwardable.rb#231
717
- def delete_at(*args, **_arg1, &block); end
735
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
736
+ def delete_at(*_arg0, **_arg1, &_arg2); end
718
737
 
719
- # source://forwardable/1.3.3/forwardable.rb#231
720
- def delete_if(*args, **_arg1, &block); end
738
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
739
+ def delete_if(*_arg0, **_arg1, &_arg2); end
721
740
 
722
- # source://forwardable/1.3.3/forwardable.rb#231
723
- def detect(*args, **_arg1, &block); end
741
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
742
+ def detect(*_arg0, **_arg1, &_arg2); end
724
743
 
725
- # source://forwardable/1.3.3/forwardable.rb#231
726
- def difference(*args, **_arg1, &block); end
744
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
745
+ def difference(*_arg0, **_arg1, &_arg2); end
727
746
 
728
- # source://forwardable/1.3.3/forwardable.rb#231
729
- def dig(*args, **_arg1, &block); end
747
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
748
+ def dig(*_arg0, **_arg1, &_arg2); end
730
749
 
731
- # source://forwardable/1.3.3/forwardable.rb#231
732
- def drop(*args, **_arg1, &block); end
750
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
751
+ def drop(*_arg0, **_arg1, &_arg2); end
733
752
 
734
- # source://forwardable/1.3.3/forwardable.rb#231
735
- def drop_while(*args, **_arg1, &block); end
753
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
754
+ def drop_while(*_arg0, **_arg1, &_arg2); end
736
755
 
737
- # source://forwardable/1.3.3/forwardable.rb#231
738
- def each(*args, **_arg1, &block); end
756
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
757
+ def each(*_arg0, **_arg1, &_arg2); end
739
758
 
740
- # source://forwardable/1.3.3/forwardable.rb#231
741
- def each_cons(*args, **_arg1, &block); end
759
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
760
+ def each_cons(*_arg0, **_arg1, &_arg2); end
742
761
 
743
- # source://forwardable/1.3.3/forwardable.rb#231
744
- def each_entry(*args, **_arg1, &block); end
762
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
763
+ def each_entry(*_arg0, **_arg1, &_arg2); end
745
764
 
746
- # source://forwardable/1.3.3/forwardable.rb#231
747
- def each_index(*args, **_arg1, &block); end
765
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
766
+ def each_index(*_arg0, **_arg1, &_arg2); end
748
767
 
749
- # source://forwardable/1.3.3/forwardable.rb#231
750
- def each_slice(*args, **_arg1, &block); end
768
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
769
+ def each_slice(*_arg0, **_arg1, &_arg2); end
751
770
 
752
- # source://forwardable/1.3.3/forwardable.rb#231
753
- def each_with_index(*args, **_arg1, &block); end
771
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
772
+ def each_with_index(*_arg0, **_arg1, &_arg2); end
754
773
 
755
- # source://forwardable/1.3.3/forwardable.rb#231
756
- def each_with_object(*args, **_arg1, &block); end
774
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
775
+ def each_with_object(*_arg0, **_arg1, &_arg2); end
757
776
 
758
- # source://forwardable/1.3.3/forwardable.rb#231
759
- def empty?(*args, **_arg1, &block); end
777
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
778
+ def empty?(*_arg0, **_arg1, &_arg2); end
760
779
 
761
- # source://forwardable/1.3.3/forwardable.rb#231
762
- def entries(*args, **_arg1, &block); end
780
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
781
+ def entries(*_arg0, **_arg1, &_arg2); end
763
782
 
764
- # source://forwardable/1.3.3/forwardable.rb#231
765
- def fetch(*args, **_arg1, &block); end
783
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
784
+ def fetch(*_arg0, **_arg1, &_arg2); end
766
785
 
767
- # source://forwardable/1.3.3/forwardable.rb#231
768
- def fill(*args, **_arg1, &block); end
786
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
787
+ def fill(*_arg0, **_arg1, &_arg2); end
769
788
 
770
- # source://forwardable/1.3.3/forwardable.rb#231
771
- def filter(*args, **_arg1, &block); end
789
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
790
+ def filter(*_arg0, **_arg1, &_arg2); end
772
791
 
773
- # source://forwardable/1.3.3/forwardable.rb#231
774
- def filter!(*args, **_arg1, &block); end
792
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
793
+ def filter!(*_arg0, **_arg1, &_arg2); end
775
794
 
776
- # source://forwardable/1.3.3/forwardable.rb#231
777
- def filter_map(*args, **_arg1, &block); end
795
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
796
+ def filter_map(*_arg0, **_arg1, &_arg2); end
778
797
 
779
- # source://forwardable/1.3.3/forwardable.rb#231
780
- def find(*args, **_arg1, &block); end
798
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
799
+ def find(*_arg0, **_arg1, &_arg2); end
781
800
 
782
- # source://forwardable/1.3.3/forwardable.rb#231
783
- def find_all(*args, **_arg1, &block); end
801
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
802
+ def find_all(*_arg0, **_arg1, &_arg2); end
784
803
 
785
- # source://forwardable/1.3.3/forwardable.rb#231
786
- def find_index(*args, **_arg1, &block); end
804
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
805
+ def find_index(*_arg0, **_arg1, &_arg2); end
787
806
 
788
- # source://forwardable/1.3.3/forwardable.rb#231
789
- def first(*args, **_arg1, &block); end
807
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
808
+ def first(*_arg0, **_arg1, &_arg2); end
790
809
 
791
- # source://forwardable/1.3.3/forwardable.rb#231
792
- def flat_map(*args, **_arg1, &block); end
810
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
811
+ def flat_map(*_arg0, **_arg1, &_arg2); end
793
812
 
794
- # source://forwardable/1.3.3/forwardable.rb#231
795
- def flatten(*args, **_arg1, &block); end
813
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
814
+ def flatten(*_arg0, **_arg1, &_arg2); end
796
815
 
797
- # source://forwardable/1.3.3/forwardable.rb#231
798
- def flatten!(*args, **_arg1, &block); end
816
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
817
+ def flatten!(*_arg0, **_arg1, &_arg2); end
799
818
 
800
- # source://forwardable/1.3.3/forwardable.rb#231
801
- def grep(*args, **_arg1, &block); end
819
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
820
+ def grep(*_arg0, **_arg1, &_arg2); end
802
821
 
803
- # source://forwardable/1.3.3/forwardable.rb#231
804
- def grep_v(*args, **_arg1, &block); end
822
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
823
+ def grep_v(*_arg0, **_arg1, &_arg2); end
805
824
 
806
- # source://forwardable/1.3.3/forwardable.rb#231
807
- def group_by(*args, **_arg1, &block); end
825
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
826
+ def group_by(*_arg0, **_arg1, &_arg2); end
808
827
 
809
- # source://forwardable/1.3.3/forwardable.rb#231
810
- def include?(*args, **_arg1, &block); end
828
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
829
+ def include?(*_arg0, **_arg1, &_arg2); end
811
830
 
812
- # source://forwardable/1.3.3/forwardable.rb#231
813
- def index(*args, **_arg1, &block); end
831
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
832
+ def index(*_arg0, **_arg1, &_arg2); end
814
833
 
815
- # source://forwardable/1.3.3/forwardable.rb#231
816
- def inject(*args, **_arg1, &block); end
834
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
835
+ def inject(*_arg0, **_arg1, &_arg2); end
817
836
 
818
- # source://forwardable/1.3.3/forwardable.rb#231
819
- def insert(*args, **_arg1, &block); end
837
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
838
+ def insert(*_arg0, **_arg1, &_arg2); end
820
839
 
821
- # source://forwardable/1.3.3/forwardable.rb#231
822
- def intersect?(*args, **_arg1, &block); end
840
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
841
+ def intersect?(*_arg0, **_arg1, &_arg2); end
823
842
 
824
- # source://forwardable/1.3.3/forwardable.rb#231
825
- def intersection(*args, **_arg1, &block); end
843
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
844
+ def intersection(*_arg0, **_arg1, &_arg2); end
826
845
 
827
- # source://forwardable/1.3.3/forwardable.rb#231
828
- def join(*args, **_arg1, &block); end
846
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
847
+ def join(*_arg0, **_arg1, &_arg2); end
829
848
 
830
- # source://forwardable/1.3.3/forwardable.rb#231
831
- def keep_if(*args, **_arg1, &block); end
849
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
850
+ def keep_if(*_arg0, **_arg1, &_arg2); end
832
851
 
833
- # source://forwardable/1.3.3/forwardable.rb#231
834
- def last(*args, **_arg1, &block); end
852
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
853
+ def last(*_arg0, **_arg1, &_arg2); end
835
854
 
836
- # source://forwardable/1.3.3/forwardable.rb#231
837
- def lazy(*args, **_arg1, &block); end
855
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
856
+ def lazy(*_arg0, **_arg1, &_arg2); end
838
857
 
839
- # source://forwardable/1.3.3/forwardable.rb#231
840
- def length(*args, **_arg1, &block); end
858
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
859
+ def length(*_arg0, **_arg1, &_arg2); end
841
860
 
842
- # source://forwardable/1.3.3/forwardable.rb#231
843
- def map(*args, **_arg1, &block); end
861
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
862
+ def map(*_arg0, **_arg1, &_arg2); end
844
863
 
845
- # source://forwardable/1.3.3/forwardable.rb#231
846
- def map!(*args, **_arg1, &block); end
864
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
865
+ def map!(*_arg0, **_arg1, &_arg2); end
847
866
 
848
- # source://forwardable/1.3.3/forwardable.rb#231
849
- def max(*args, **_arg1, &block); end
867
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
868
+ def max(*_arg0, **_arg1, &_arg2); end
850
869
 
851
- # source://forwardable/1.3.3/forwardable.rb#231
852
- def max_by(*args, **_arg1, &block); end
870
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
871
+ def max_by(*_arg0, **_arg1, &_arg2); end
853
872
 
854
- # source://forwardable/1.3.3/forwardable.rb#231
855
- def member?(*args, **_arg1, &block); end
873
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
874
+ def member?(*_arg0, **_arg1, &_arg2); end
856
875
 
857
- # source://forwardable/1.3.3/forwardable.rb#231
858
- def min(*args, **_arg1, &block); end
876
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
877
+ def min(*_arg0, **_arg1, &_arg2); end
859
878
 
860
- # source://forwardable/1.3.3/forwardable.rb#231
861
- def min_by(*args, **_arg1, &block); end
879
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
880
+ def min_by(*_arg0, **_arg1, &_arg2); end
862
881
 
863
- # source://forwardable/1.3.3/forwardable.rb#231
864
- def minmax(*args, **_arg1, &block); end
882
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
883
+ def minmax(*_arg0, **_arg1, &_arg2); end
865
884
 
866
- # source://forwardable/1.3.3/forwardable.rb#231
867
- def minmax_by(*args, **_arg1, &block); end
885
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
886
+ def minmax_by(*_arg0, **_arg1, &_arg2); end
868
887
 
869
- # source://forwardable/1.3.3/forwardable.rb#231
870
- def none?(*args, **_arg1, &block); end
888
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
889
+ def none?(*_arg0, **_arg1, &_arg2); end
871
890
 
872
- # source://forwardable/1.3.3/forwardable.rb#231
873
- def one?(*args, **_arg1, &block); end
891
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
892
+ def one?(*_arg0, **_arg1, &_arg2); end
874
893
 
875
- # source://forwardable/1.3.3/forwardable.rb#231
876
- def pack(*args, **_arg1, &block); end
894
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
895
+ def pack(*_arg0, **_arg1, &_arg2); end
877
896
 
878
- # source://forwardable/1.3.3/forwardable.rb#231
879
- def partition(*args, **_arg1, &block); end
897
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
898
+ def partition(*_arg0, **_arg1, &_arg2); end
880
899
 
881
- # source://forwardable/1.3.3/forwardable.rb#231
882
- def permutation(*args, **_arg1, &block); end
900
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
901
+ def permutation(*_arg0, **_arg1, &_arg2); end
883
902
 
884
- # source://forwardable/1.3.3/forwardable.rb#231
885
- def place(*args, **_arg1, &block); end
903
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
904
+ def place(*_arg0, **_arg1, &_arg2); end
886
905
 
887
- # source://forwardable/1.3.3/forwardable.rb#231
888
- def pop(*args, **_arg1, &block); end
906
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
907
+ def pop(*_arg0, **_arg1, &_arg2); end
889
908
 
890
- # source://forwardable/1.3.3/forwardable.rb#231
891
- def prepend(*args, **_arg1, &block); end
909
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
910
+ def prepend(*_arg0, **_arg1, &_arg2); end
892
911
 
893
- # source://forwardable/1.3.3/forwardable.rb#231
894
- def product(*args, **_arg1, &block); end
912
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
913
+ def product(*_arg0, **_arg1, &_arg2); end
895
914
 
896
- # source://forwardable/1.3.3/forwardable.rb#231
897
- def push(*args, **_arg1, &block); end
915
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
916
+ def push(*_arg0, **_arg1, &_arg2); end
898
917
 
899
- # source://forwardable/1.3.3/forwardable.rb#231
900
- def rassoc(*args, **_arg1, &block); end
918
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
919
+ def rassoc(*_arg0, **_arg1, &_arg2); end
901
920
 
902
- # source://forwardable/1.3.3/forwardable.rb#231
903
- def reduce(*args, **_arg1, &block); end
921
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
922
+ def reduce(*_arg0, **_arg1, &_arg2); end
904
923
 
905
- # source://forwardable/1.3.3/forwardable.rb#231
906
- def reject(*args, **_arg1, &block); end
924
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
925
+ def reject(*_arg0, **_arg1, &_arg2); end
907
926
 
908
- # source://forwardable/1.3.3/forwardable.rb#231
909
- def reject!(*args, **_arg1, &block); end
927
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
928
+ def reject!(*_arg0, **_arg1, &_arg2); end
910
929
 
911
- # source://forwardable/1.3.3/forwardable.rb#231
912
- def repeated_combination(*args, **_arg1, &block); end
930
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
931
+ def repeated_combination(*_arg0, **_arg1, &_arg2); end
913
932
 
914
- # source://forwardable/1.3.3/forwardable.rb#231
915
- def repeated_permutation(*args, **_arg1, &block); end
933
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
934
+ def repeated_permutation(*_arg0, **_arg1, &_arg2); end
916
935
 
917
- # source://forwardable/1.3.3/forwardable.rb#231
918
- def replace(*args, **_arg1, &block); end
936
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
937
+ def replace(*_arg0, **_arg1, &_arg2); end
919
938
 
920
- # source://forwardable/1.3.3/forwardable.rb#231
921
- def reverse(*args, **_arg1, &block); end
939
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
940
+ def reverse(*_arg0, **_arg1, &_arg2); end
922
941
 
923
- # source://forwardable/1.3.3/forwardable.rb#231
924
- def reverse!(*args, **_arg1, &block); end
942
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
943
+ def reverse!(*_arg0, **_arg1, &_arg2); end
925
944
 
926
- # source://forwardable/1.3.3/forwardable.rb#231
927
- def reverse_each(*args, **_arg1, &block); end
945
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
946
+ def reverse_each(*_arg0, **_arg1, &_arg2); end
928
947
 
929
- # source://forwardable/1.3.3/forwardable.rb#231
930
- def rindex(*args, **_arg1, &block); end
948
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
949
+ def rindex(*_arg0, **_arg1, &_arg2); end
931
950
 
932
- # source://forwardable/1.3.3/forwardable.rb#231
933
- def rotate(*args, **_arg1, &block); end
951
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
952
+ def rotate(*_arg0, **_arg1, &_arg2); end
934
953
 
935
- # source://forwardable/1.3.3/forwardable.rb#231
936
- def rotate!(*args, **_arg1, &block); end
954
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
955
+ def rotate!(*_arg0, **_arg1, &_arg2); end
937
956
 
938
- # source://forwardable/1.3.3/forwardable.rb#231
939
- def sample(*args, **_arg1, &block); end
957
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
958
+ def sample(*_arg0, **_arg1, &_arg2); end
940
959
 
941
- # source://forwardable/1.3.3/forwardable.rb#231
942
- def select(*args, **_arg1, &block); end
960
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
961
+ def select(*_arg0, **_arg1, &_arg2); end
943
962
 
944
- # source://forwardable/1.3.3/forwardable.rb#231
945
- def select!(*args, **_arg1, &block); end
963
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
964
+ def select!(*_arg0, **_arg1, &_arg2); end
946
965
 
947
- # source://forwardable/1.3.3/forwardable.rb#231
948
- def shelljoin(*args, **_arg1, &block); end
966
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
967
+ def shelljoin(*_arg0, **_arg1, &_arg2); end
949
968
 
950
- # source://forwardable/1.3.3/forwardable.rb#231
951
- def shift(*args, **_arg1, &block); end
969
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
970
+ def shift(*_arg0, **_arg1, &_arg2); end
952
971
 
953
- # source://forwardable/1.3.3/forwardable.rb#231
954
- def shuffle(*args, **_arg1, &block); end
972
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
973
+ def shuffle(*_arg0, **_arg1, &_arg2); end
955
974
 
956
- # source://forwardable/1.3.3/forwardable.rb#231
957
- def shuffle!(*args, **_arg1, &block); end
975
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
976
+ def shuffle!(*_arg0, **_arg1, &_arg2); end
958
977
 
959
- # source://forwardable/1.3.3/forwardable.rb#231
960
- def size(*args, **_arg1, &block); end
978
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
979
+ def size(*_arg0, **_arg1, &_arg2); end
961
980
 
962
- # source://forwardable/1.3.3/forwardable.rb#231
963
- def slice(*args, **_arg1, &block); end
981
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
982
+ def slice(*_arg0, **_arg1, &_arg2); end
964
983
 
965
- # source://forwardable/1.3.3/forwardable.rb#231
966
- def slice!(*args, **_arg1, &block); end
984
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
985
+ def slice!(*_arg0, **_arg1, &_arg2); end
967
986
 
968
- # source://forwardable/1.3.3/forwardable.rb#231
969
- def slice_after(*args, **_arg1, &block); end
987
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
988
+ def slice_after(*_arg0, **_arg1, &_arg2); end
970
989
 
971
- # source://forwardable/1.3.3/forwardable.rb#231
972
- def slice_before(*args, **_arg1, &block); end
990
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
991
+ def slice_before(*_arg0, **_arg1, &_arg2); end
973
992
 
974
- # source://forwardable/1.3.3/forwardable.rb#231
975
- def slice_when(*args, **_arg1, &block); end
993
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
994
+ def slice_when(*_arg0, **_arg1, &_arg2); end
976
995
 
977
- # source://forwardable/1.3.3/forwardable.rb#231
978
- def sort(*args, **_arg1, &block); end
996
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
997
+ def sort(*_arg0, **_arg1, &_arg2); end
979
998
 
980
- # source://forwardable/1.3.3/forwardable.rb#231
981
- def sort!(*args, **_arg1, &block); end
999
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1000
+ def sort!(*_arg0, **_arg1, &_arg2); end
982
1001
 
983
- # source://forwardable/1.3.3/forwardable.rb#231
984
- def sort_by(*args, **_arg1, &block); end
1002
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1003
+ def sort_by(*_arg0, **_arg1, &_arg2); end
985
1004
 
986
- # source://forwardable/1.3.3/forwardable.rb#231
987
- def sort_by!(*args, **_arg1, &block); end
1005
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1006
+ def sort_by!(*_arg0, **_arg1, &_arg2); end
988
1007
 
989
- # source://forwardable/1.3.3/forwardable.rb#231
990
- def sum(*args, **_arg1, &block); end
1008
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1009
+ def sum(*_arg0, **_arg1, &_arg2); end
991
1010
 
992
- # source://forwardable/1.3.3/forwardable.rb#231
993
- def take(*args, **_arg1, &block); end
1011
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1012
+ def take(*_arg0, **_arg1, &_arg2); end
994
1013
 
995
- # source://forwardable/1.3.3/forwardable.rb#231
996
- def take_while(*args, **_arg1, &block); end
1014
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1015
+ def take_while(*_arg0, **_arg1, &_arg2); end
997
1016
 
998
- # source://forwardable/1.3.3/forwardable.rb#231
999
- def tally(*args, **_arg1, &block); end
1017
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1018
+ def tally(*_arg0, **_arg1, &_arg2); end
1000
1019
 
1001
- # source://forwardable/1.3.3/forwardable.rb#231
1002
- def to_ary(*args, **_arg1, &block); end
1020
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1021
+ def to_ary(*_arg0, **_arg1, &_arg2); end
1003
1022
 
1004
- # source://forwardable/1.3.3/forwardable.rb#231
1005
- def to_h(*args, **_arg1, &block); end
1023
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1024
+ def to_h(*_arg0, **_arg1, &_arg2); end
1006
1025
 
1007
- # source://forwardable/1.3.3/forwardable.rb#231
1008
- def to_set(*args, **_arg1, &block); end
1026
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1027
+ def to_set(*_arg0, **_arg1, &_arg2); end
1009
1028
 
1010
- # source://forwardable/1.3.3/forwardable.rb#231
1011
- def transpose(*args, **_arg1, &block); end
1029
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1030
+ def transpose(*_arg0, **_arg1, &_arg2); end
1012
1031
 
1013
- # source://forwardable/1.3.3/forwardable.rb#231
1014
- def union(*args, **_arg1, &block); end
1032
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1033
+ def union(*_arg0, **_arg1, &_arg2); end
1015
1034
 
1016
- # source://forwardable/1.3.3/forwardable.rb#231
1017
- def uniq(*args, **_arg1, &block); end
1035
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1036
+ def uniq(*_arg0, **_arg1, &_arg2); end
1018
1037
 
1019
- # source://forwardable/1.3.3/forwardable.rb#231
1020
- def uniq!(*args, **_arg1, &block); end
1038
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1039
+ def uniq!(*_arg0, **_arg1, &_arg2); end
1021
1040
 
1022
- # source://forwardable/1.3.3/forwardable.rb#231
1023
- def unshift(*args, **_arg1, &block); end
1041
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1042
+ def unshift(*_arg0, **_arg1, &_arg2); end
1024
1043
 
1025
- # source://forwardable/1.3.3/forwardable.rb#231
1026
- def values_at(*args, **_arg1, &block); end
1044
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1045
+ def values_at(*_arg0, **_arg1, &_arg2); end
1027
1046
 
1028
- # source://forwardable/1.3.3/forwardable.rb#231
1029
- def zip(*args, **_arg1, &block); end
1047
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1048
+ def zip(*_arg0, **_arg1, &_arg2); end
1030
1049
 
1031
- # source://forwardable/1.3.3/forwardable.rb#231
1032
- def |(*args, **_arg1, &block); end
1050
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
1051
+ def |(*_arg0, **_arg1, &_arg2); end
1033
1052
  end
1034
1053
 
1035
1054
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9
@@ -1080,16 +1099,24 @@ end
1080
1099
  #
1081
1100
  # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6
1082
1101
  class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
1102
+ include ::RuboCop::AST::ConstantNode
1103
+ end
1104
+
1105
+ # Common functionality for nodes that deal with constants:
1106
+ # `const`, `casgn`.
1107
+ #
1108
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#7
1109
+ module RuboCop::AST::ConstantNode
1083
1110
  # @return [Boolean] if the constant starts with `::` (aka s(:cbase))
1084
1111
  #
1085
- # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#26
1112
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#27
1086
1113
  def absolute?; end
1087
1114
 
1088
1115
  # @return [Boolean] if the constant is a Module / Class, according to the standard convention.
1089
1116
  # Note: some classes might have uppercase in which case this method
1090
1117
  # returns false
1091
1118
  #
1092
- # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20
1119
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
1093
1120
  def class_name?; end
1094
1121
 
1095
1122
  # Yield nodes for the namespace
@@ -1099,29 +1126,29 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
1099
1126
  # s(:const, :Foo), then
1100
1127
  # s(:const, s(:const, :Foo), :Bar)
1101
1128
  #
1102
- # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#43
1129
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#44
1103
1130
  def each_path(&block); end
1104
1131
 
1105
1132
  # @return [Boolean] if the constant is a Module / Class, according to the standard convention.
1106
1133
  # Note: some classes might have uppercase in which case this method
1107
1134
  # returns false
1108
1135
  #
1109
- # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20
1136
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
1110
1137
  def module_name?; end
1111
1138
 
1112
1139
  # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...)
1113
1140
  #
1114
- # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#8
1141
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#9
1115
1142
  def namespace; end
1116
1143
 
1117
1144
  # @return [Boolean] if the constant does not start with `::` (aka s(:cbase))
1118
1145
  #
1119
- # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#33
1146
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#34
1120
1147
  def relative?; end
1121
1148
 
1122
1149
  # @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar
1123
1150
  #
1124
- # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#13
1151
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
1125
1152
  def short_name; end
1126
1153
  end
1127
1154
 
@@ -1307,10 +1334,33 @@ end
1307
1334
  class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
1308
1335
  # Returns the body of the `ensure` clause.
1309
1336
  #
1337
+ # @deprecated Use `EnsureNode#branch`
1310
1338
  # @return [Node, nil] The body of the `ensure`.
1311
1339
  #
1312
- # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#12
1340
+ # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#13
1313
1341
  def body; end
1342
+
1343
+ # Returns an the ensure branch in the exception handling statement.
1344
+ #
1345
+ # @return [Node, nil] the body of the ensure branch.
1346
+ #
1347
+ # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#20
1348
+ def branch; end
1349
+
1350
+ # Returns the `rescue` node of the `ensure`, if present.
1351
+ #
1352
+ # @return [Node, nil] The `rescue` node.
1353
+ #
1354
+ # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#27
1355
+ def rescue_node; end
1356
+
1357
+ # Checks whether this node body is a void context.
1358
+ # Always `true` for `ensure`.
1359
+ #
1360
+ # @return [true] whether the `ensure` node body is a void context
1361
+ #
1362
+ # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#35
1363
+ def void_context?; end
1314
1364
  end
1315
1365
 
1316
1366
  # source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5
@@ -1338,11 +1388,6 @@ module RuboCop::AST::Ext::Range
1338
1388
  def line_span(exclude_end: T.unsafe(nil)); end
1339
1389
  end
1340
1390
 
1341
- # Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6-
1342
- #
1343
- # source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7
1344
- module RuboCop::AST::Ext::RangeMinMax; end
1345
-
1346
1391
  # A node extension for `float` nodes. This will be used in place of a plain
1347
1392
  # node when the builder constructs the AST, making its methods available to
1348
1393
  # all `float` nodes within RuboCop.
@@ -1648,12 +1693,12 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1648
1693
  #
1649
1694
  # @return [Array<Node>] an array of branch nodes
1650
1695
  #
1651
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#147
1696
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#154
1652
1697
  def branches; end
1653
1698
 
1654
1699
  # @deprecated Use `branches.each`
1655
1700
  #
1656
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#164
1701
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#171
1657
1702
  def each_branch(&block); end
1658
1703
 
1659
1704
  # Checks whether the `if` node has an `else` clause.
@@ -1662,7 +1707,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1662
1707
  # This is legacy behavior, and many cops rely on it.
1663
1708
  # @return [Boolean] whether the node has an `else` clause
1664
1709
  #
1665
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#42
1710
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49
1666
1711
  def else?; end
1667
1712
 
1668
1713
  # Returns the branch of the `if` node that gets evaluated when its
@@ -1672,7 +1717,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1672
1717
  # @return [Node] the falsey branch node of the `if` node
1673
1718
  # @return [nil] when there is no else branch
1674
1719
  #
1675
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#126
1720
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#133
1676
1721
  def else_branch; end
1677
1722
 
1678
1723
  # Checks whether the `if` is an `elsif`. Parser handles these by nesting
@@ -1680,7 +1725,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1680
1725
  #
1681
1726
  # @return [Boolean] whether the node is an `elsif`
1682
1727
  #
1683
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#32
1728
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#39
1684
1729
  def elsif?; end
1685
1730
 
1686
1731
  # Checks whether the `if` node has at least one `elsif` branch. Returns
@@ -1688,7 +1733,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1688
1733
  #
1689
1734
  # @return [Boolean] whether the `if` node has at least one `elsif` branch
1690
1735
  #
1691
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#104
1736
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#111
1692
1737
  def elsif_conditional?; end
1693
1738
 
1694
1739
  # Checks whether this node is an `if` statement. (This is not true of
@@ -1706,7 +1751,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1706
1751
  # @return [Node] the truthy branch node of the `if` node
1707
1752
  # @return [nil] if the truthy branch is empty
1708
1753
  #
1709
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#115
1754
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#122
1710
1755
  def if_branch; end
1711
1756
 
1712
1757
  # Returns the inverse keyword of the `if` node as a string. Returns `if`
@@ -1715,7 +1760,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1715
1760
  #
1716
1761
  # @return [String] the inverse keyword of the `if` statement
1717
1762
  #
1718
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#66
1763
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#73
1719
1764
  def inverse_keyword; end
1720
1765
 
1721
1766
  # Returns the keyword of the `if` statement as a string. Returns an empty
@@ -1723,7 +1768,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1723
1768
  #
1724
1769
  # @return [String] the keyword of the `if` statement
1725
1770
  #
1726
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#57
1771
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#64
1727
1772
  def keyword; end
1728
1773
 
1729
1774
  # Checks whether the `if` node is in a modifier form, i.e. a condition
@@ -1732,7 +1777,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1732
1777
  #
1733
1778
  # @return [Boolean] whether the `if` node is a modifier
1734
1779
  #
1735
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#80
1780
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#87
1736
1781
  def modifier_form?; end
1737
1782
 
1738
1783
  # Checks whether the `if` node has nested `if` nodes in any of its
@@ -1741,7 +1786,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1741
1786
  # @note This performs a shallow search.
1742
1787
  # @return [Boolean] whether the `if` node contains nested conditionals
1743
1788
  #
1744
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#90
1789
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#97
1745
1790
  def nested_conditional?; end
1746
1791
 
1747
1792
  # Custom destructuring method. This is used to normalize the branches
@@ -1749,16 +1794,23 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1749
1794
  #
1750
1795
  # @return [Array<Node>] the different parts of the `if` statement
1751
1796
  #
1752
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#134
1797
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#141
1753
1798
  def node_parts; end
1754
1799
 
1755
1800
  # Checks whether the `if` node is a ternary operator.
1756
1801
  #
1757
1802
  # @return [Boolean] whether the `if` node is a ternary operator
1758
1803
  #
1759
- # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49
1804
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#56
1760
1805
  def ternary?; end
1761
1806
 
1807
+ # Checks whether the `if` node has an `then` clause.
1808
+ #
1809
+ # @return [Boolean] whether the node has an `then` clause
1810
+ #
1811
+ # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#31
1812
+ def then?; end
1813
+
1762
1814
  # Checks whether this node is an `unless` statement. (This is not true
1763
1815
  # of ternary operators and `if` statements.)
1764
1816
  #
@@ -1917,6 +1969,35 @@ class RuboCop::AST::IntNode < ::RuboCop::AST::Node
1917
1969
  include ::RuboCop::AST::NumericNode
1918
1970
  end
1919
1971
 
1972
+ # A node extension for `kwbegin` nodes. This will be used in place of a plain
1973
+ # node when the builder constructs the AST, making its methods available
1974
+ # to all `kwbegin` nodes within RuboCop.
1975
+ #
1976
+ # source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#8
1977
+ class RuboCop::AST::KeywordBeginNode < ::RuboCop::AST::Node
1978
+ # Returns the body of the `kwbegin` block. Returns `self` if the `kwbegin` contains
1979
+ # multiple nodes.
1980
+ #
1981
+ # @return [Node, nil] The body of the `kwbegin`.
1982
+ #
1983
+ # source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#13
1984
+ def body; end
1985
+
1986
+ # Returns the `rescue` node of the `kwbegin` block, if one is present.
1987
+ #
1988
+ # @return [Node, nil] The `rescue` node within `kwbegin`.
1989
+ #
1990
+ # source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#30
1991
+ def ensure_node; end
1992
+
1993
+ # Returns the `rescue` node of the `kwbegin` block, if one is present.
1994
+ #
1995
+ # @return [Node, nil] The `rescue` node within `kwbegin`.
1996
+ #
1997
+ # source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#37
1998
+ def rescue_node; end
1999
+ end
2000
+
1920
2001
  # A node extension for `kwsplat` and `forwarded_kwrestarg` nodes. This will be used in
1921
2002
  # place of a plain node when the builder constructs the AST, making its methods available to
1922
2003
  # all `kwsplat` and `forwarded_kwrestarg` nodes within RuboCop.
@@ -2039,6 +2120,71 @@ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
2039
2120
  def first_argument_index; end
2040
2121
  end
2041
2122
 
2123
+ # A node extension for `masgn` nodes.
2124
+ # This will be used in place of a plain node when the builder constructs
2125
+ # the AST, making its methods available to all assignment nodes within RuboCop.
2126
+ #
2127
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#8
2128
+ class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node
2129
+ # @return [Array<Node>] the assignment nodes of the multiple assignment
2130
+ #
2131
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#16
2132
+ def assignments; end
2133
+
2134
+ # The RHS (right hand side) of the multiple assignment. This returns
2135
+ # the nodes as parsed: either a single node if the RHS has a single value,
2136
+ # or an `array` node containing multiple nodes.
2137
+ #
2138
+ # NOTE: Due to how parsing works, `expression` will return the same for
2139
+ # `a, b = x, y` and `a, b = [x, y]`.
2140
+ #
2141
+ # @return [Node] the right hand side of a multiple assignment.
2142
+ #
2143
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
2144
+ def expression; end
2145
+
2146
+ # @return [MlhsNode] the `mlhs` node
2147
+ #
2148
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#10
2149
+ def lhs; end
2150
+
2151
+ # @return [Array<Symbol>] names of all the variables being assigned
2152
+ #
2153
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#21
2154
+ def names; end
2155
+
2156
+ # The RHS (right hand side) of the multiple assignment. This returns
2157
+ # the nodes as parsed: either a single node if the RHS has a single value,
2158
+ # or an `array` node containing multiple nodes.
2159
+ #
2160
+ # NOTE: Due to how parsing works, `expression` will return the same for
2161
+ # `a, b = x, y` and `a, b = [x, y]`.
2162
+ #
2163
+ # @return [Node] the right hand side of a multiple assignment.
2164
+ #
2165
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
2166
+ def rhs; end
2167
+
2168
+ # In contrast to `expression`, `values` always returns a Ruby array
2169
+ # containing all the nodes being assigned on the RHS.
2170
+ #
2171
+ # Literal arrays are considered a singular value; but unlike `expression`,
2172
+ # implied `array` nodes from assigning multiple values on the RHS are treated
2173
+ # as separate.
2174
+ #
2175
+ # @return [Array<Node>] individual values being assigned on the RHS of the multiple assignment
2176
+ #
2177
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#52
2178
+ def values; end
2179
+
2180
+ private
2181
+
2182
+ # @return [Boolean]
2183
+ #
2184
+ # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#58
2185
+ def multiple_rhs?; end
2186
+ end
2187
+
2042
2188
  # Common functionality for nodes that are a kind of method dispatch:
2043
2189
  # `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`,
2044
2190
  # and (modern only): `index`, `indexasgn`, `lambda`
@@ -2471,6 +2617,23 @@ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T
2471
2617
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20
2472
2618
  RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
2473
2619
 
2620
+ # A node extension for `mlhs` nodes.
2621
+ # This will be used in place of a plain node when the builder constructs
2622
+ # the AST, making its methods available to all assignment nodes within RuboCop.
2623
+ #
2624
+ # source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#8
2625
+ class RuboCop::AST::MlhsNode < ::RuboCop::AST::Node
2626
+ # Returns all the assignment nodes on the left hand side (LHS) of a multiple assignment.
2627
+ # These are generally assignment nodes (`lvasgn`, `ivasgn`, `cvasgn`, `gvasgn`, `casgn`)
2628
+ # but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ... =`,
2629
+ # or a `splat` node for `*, ... =`.
2630
+ #
2631
+ # @return [Array<Node>] the assignment nodes of the multiple assignment LHS
2632
+ #
2633
+ # source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#15
2634
+ def assignments; end
2635
+ end
2636
+
2474
2637
  # Common functionality for nodes that can be used as modifiers:
2475
2638
  # `if`, `while`, `until`
2476
2639
  #
@@ -2541,19 +2704,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2541
2704
  # @return [Node] a new instance of Node
2542
2705
  # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
2543
2706
  #
2544
- # source://rubocop-ast//lib/rubocop/ast/node.rb#92
2707
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#141
2545
2708
  def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
2546
2709
 
2547
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2710
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2548
2711
  def __ENCODING___type?; end
2549
2712
 
2550
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2713
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2551
2714
  def __FILE___type?; end
2552
2715
 
2553
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2716
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2554
2717
  def __LINE___type?; end
2555
2718
 
2556
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2719
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2557
2720
  def alias_type?; end
2558
2721
 
2559
2722
  # Returns an array of ancestor nodes.
@@ -2561,173 +2724,178 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2561
2724
  #
2562
2725
  # @return [Array<Node>] an array of ancestor nodes
2563
2726
  #
2564
- # source://rubocop-ast//lib/rubocop/ast/node.rb#247
2727
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#306
2565
2728
  def ancestors; end
2566
2729
 
2567
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2730
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2568
2731
  def and_asgn_type?; end
2569
2732
 
2570
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2733
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2571
2734
  def and_type?; end
2572
2735
 
2573
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2736
+ # @return [Boolean]
2737
+ #
2738
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#531
2739
+ def any_block_type?; end
2740
+
2741
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2574
2742
  def arg_expr_type?; end
2575
2743
 
2576
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2744
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2577
2745
  def arg_type?; end
2578
2746
 
2579
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2747
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2580
2748
  def args_type?; end
2581
2749
 
2582
2750
  # @return [Boolean]
2583
2751
  #
2584
- # source://rubocop-ast//lib/rubocop/ast/node.rb#464
2752
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#511
2585
2753
  def argument?; end
2586
2754
 
2587
2755
  # @return [Boolean]
2588
2756
  #
2589
- # source://rubocop-ast//lib/rubocop/ast/node.rb#468
2757
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#515
2590
2758
  def argument_type?; end
2591
2759
 
2592
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2760
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2593
2761
  def array_pattern_type?; end
2594
2762
 
2595
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2763
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2596
2764
  def array_pattern_with_tail_type?; end
2597
2765
 
2598
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2766
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2599
2767
  def array_type?; end
2600
2768
 
2601
2769
  # @return [Boolean]
2602
2770
  #
2603
- # source://rubocop-ast//lib/rubocop/ast/node.rb#416
2771
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#463
2604
2772
  def assignment?; end
2605
2773
 
2606
2774
  # Some cops treat the shovel operator as a kind of assignment.
2607
2775
  #
2608
- # source://rubocop-ast//lib/rubocop/ast/node.rb#355
2776
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#413
2609
2777
  def assignment_or_similar?(param0 = T.unsafe(nil)); end
2610
2778
 
2611
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2779
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2612
2780
  def back_ref_type?; end
2613
2781
 
2614
2782
  # @return [Boolean]
2615
2783
  #
2616
- # source://rubocop-ast//lib/rubocop/ast/node.rb#420
2784
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#467
2617
2785
  def basic_conditional?; end
2618
2786
 
2619
2787
  # @return [Boolean]
2620
2788
  #
2621
- # source://rubocop-ast//lib/rubocop/ast/node.rb#363
2789
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#421
2622
2790
  def basic_literal?; end
2623
2791
 
2624
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2792
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2625
2793
  def begin_type?; end
2626
2794
 
2627
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2795
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2628
2796
  def block_pass_type?; end
2629
2797
 
2630
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2798
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2631
2799
  def block_type?; end
2632
2800
 
2633
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2801
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2634
2802
  def blockarg_expr_type?; end
2635
2803
 
2636
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2804
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2637
2805
  def blockarg_type?; end
2638
2806
 
2639
2807
  # @return [Boolean]
2640
2808
  #
2641
- # source://rubocop-ast//lib/rubocop/ast/node.rb#472
2809
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#519
2642
2810
  def boolean_type?; end
2643
2811
 
2644
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2812
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2645
2813
  def break_type?; end
2646
2814
 
2647
2815
  # @return [Boolean]
2648
2816
  #
2649
- # source://rubocop-ast//lib/rubocop/ast/node.rb#456
2817
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#503
2650
2818
  def call_type?; end
2651
2819
 
2652
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2820
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2653
2821
  def case_match_type?; end
2654
2822
 
2655
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2823
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2656
2824
  def case_type?; end
2657
2825
 
2658
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2826
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2659
2827
  def casgn_type?; end
2660
2828
 
2661
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2829
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2662
2830
  def cbase_type?; end
2663
2831
 
2664
2832
  # @return [Boolean]
2665
2833
  #
2666
- # source://rubocop-ast//lib/rubocop/ast/node.rb#460
2834
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#507
2667
2835
  def chained?; end
2668
2836
 
2669
- # source://rubocop-ast//lib/rubocop/ast/node.rb#512
2837
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#579
2670
2838
  def class_constructor?(param0 = T.unsafe(nil)); end
2671
2839
 
2672
- # source://rubocop-ast//lib/rubocop/ast/node.rb#530
2840
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#597
2673
2841
  def class_definition?(param0 = T.unsafe(nil)); end
2674
2842
 
2675
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2843
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2676
2844
  def class_type?; end
2677
2845
 
2678
- # source://rubocop-ast//lib/rubocop/ast/node.rb#144
2846
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#203
2679
2847
  def complete!; end
2680
2848
 
2681
2849
  # @return [Boolean]
2682
2850
  #
2683
- # source://rubocop-ast//lib/rubocop/ast/node.rb#149
2851
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#208
2684
2852
  def complete?; end
2685
2853
 
2686
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2854
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2687
2855
  def complex_type?; end
2688
2856
 
2689
2857
  # @return [Boolean]
2690
2858
  #
2691
- # source://rubocop-ast//lib/rubocop/ast/node.rb#424
2859
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#471
2692
2860
  def conditional?; end
2693
2861
 
2694
- # source://rubocop-ast//lib/rubocop/ast/node.rb#293
2862
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#352
2695
2863
  def const_name; end
2696
2864
 
2697
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2865
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2698
2866
  def const_pattern_type?; end
2699
2867
 
2700
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2868
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2701
2869
  def const_type?; end
2702
2870
 
2703
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2871
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2704
2872
  def csend_type?; end
2705
2873
 
2706
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2874
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2707
2875
  def cvar_type?; end
2708
2876
 
2709
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2877
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2710
2878
  def cvasgn_type?; end
2711
2879
 
2712
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2880
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2713
2881
  def def_type?; end
2714
2882
 
2715
- # source://rubocop-ast//lib/rubocop/ast/node.rb#314
2883
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#372
2716
2884
  def defined_module; end
2717
2885
 
2718
- # source://rubocop-ast//lib/rubocop/ast/node.rb#319
2886
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#377
2719
2887
  def defined_module_name; end
2720
2888
 
2721
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2889
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2722
2890
  def defined_type?; end
2723
2891
 
2724
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2892
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2725
2893
  def defs_type?; end
2726
2894
 
2727
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2895
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2728
2896
  def dstr_type?; end
2729
2897
 
2730
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2898
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2731
2899
  def dsym_type?; end
2732
2900
 
2733
2901
  # Calls the given block for each ancestor node from parent to root.
@@ -2740,163 +2908,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2740
2908
  # @return [Enumerator] if no block is given
2741
2909
  # @yieldparam node [Node] each ancestor node
2742
2910
  #
2743
- # source://rubocop-ast//lib/rubocop/ast/node.rb#235
2911
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#294
2744
2912
  def each_ancestor(*types, &block); end
2745
2913
 
2746
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2914
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2747
2915
  def eflipflop_type?; end
2748
2916
 
2749
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2917
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2750
2918
  def empty_else_type?; end
2751
2919
 
2752
2920
  # @return [Boolean]
2753
2921
  #
2754
- # source://rubocop-ast//lib/rubocop/ast/node.rb#349
2922
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#407
2755
2923
  def empty_source?; end
2756
2924
 
2757
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2925
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2758
2926
  def ensure_type?; end
2759
2927
 
2760
2928
  # @return [Boolean]
2761
2929
  #
2762
- # source://rubocop-ast//lib/rubocop/ast/node.rb#408
2930
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#455
2763
2931
  def equals_asgn?; end
2764
2932
 
2765
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2933
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2766
2934
  def erange_type?; end
2767
2935
 
2768
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2936
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2769
2937
  def false_type?; end
2770
2938
 
2771
2939
  # @return [Boolean]
2772
2940
  #
2773
- # source://rubocop-ast//lib/rubocop/ast/node.rb#371
2941
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#429
2774
2942
  def falsey_literal?; end
2775
2943
 
2776
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2944
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2777
2945
  def find_pattern_type?; end
2778
2946
 
2779
- # source://rubocop-ast//lib/rubocop/ast/node.rb#261
2947
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#320
2780
2948
  def first_line; end
2781
2949
 
2782
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2950
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2783
2951
  def float_type?; end
2784
2952
 
2785
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2953
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2786
2954
  def for_type?; end
2787
2955
 
2788
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2956
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2789
2957
  def forward_arg_type?; end
2790
2958
 
2791
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2959
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2792
2960
  def forward_args_type?; end
2793
2961
 
2794
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2962
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2795
2963
  def forwarded_args_type?; end
2796
2964
 
2797
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2965
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2798
2966
  def forwarded_kwrestarg_type?; end
2799
2967
 
2800
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2968
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2801
2969
  def forwarded_restarg_type?; end
2802
2970
 
2803
- # source://rubocop-ast//lib/rubocop/ast/node.rb#509
2971
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#576
2804
2972
  def global_const?(param0 = T.unsafe(nil), param1); end
2805
2973
 
2806
2974
  # @return [Boolean]
2807
2975
  #
2808
- # source://rubocop-ast//lib/rubocop/ast/node.rb#484
2976
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#535
2809
2977
  def guard_clause?; end
2810
2978
 
2811
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2979
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2812
2980
  def gvar_type?; end
2813
2981
 
2814
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2982
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2815
2983
  def gvasgn_type?; end
2816
2984
 
2817
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2985
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2818
2986
  def hash_pattern_type?; end
2819
2987
 
2820
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2988
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2821
2989
  def hash_type?; end
2822
2990
 
2823
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2991
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2824
2992
  def ident_type?; end
2825
2993
 
2826
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2994
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2827
2995
  def if_guard_type?; end
2828
2996
 
2829
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2997
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2830
2998
  def if_type?; end
2831
2999
 
2832
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3000
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2833
3001
  def iflipflop_type?; end
2834
3002
 
2835
3003
  # @return [Boolean]
2836
3004
  #
2837
- # source://rubocop-ast//lib/rubocop/ast/node.rb#379
3005
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#437
2838
3006
  def immutable_literal?; end
2839
3007
 
2840
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3008
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2841
3009
  def in_match_type?; end
2842
3010
 
2843
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3011
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2844
3012
  def in_pattern_type?; end
2845
3013
 
2846
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3014
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2847
3015
  def index_type?; end
2848
3016
 
2849
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3017
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2850
3018
  def indexasgn_type?; end
2851
3019
 
2852
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3020
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2853
3021
  def int_type?; end
2854
3022
 
2855
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3023
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2856
3024
  def irange_type?; end
2857
3025
 
2858
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3026
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2859
3027
  def ivar_type?; end
2860
3028
 
2861
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3029
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2862
3030
  def ivasgn_type?; end
2863
3031
 
2864
3032
  # @return [Boolean]
2865
3033
  #
2866
- # source://rubocop-ast//lib/rubocop/ast/node.rb#437
3034
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#484
2867
3035
  def keyword?; end
2868
3036
 
2869
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3037
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2870
3038
  def kwarg_type?; end
2871
3039
 
2872
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3040
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2873
3041
  def kwargs_type?; end
2874
3042
 
2875
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3043
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2876
3044
  def kwbegin_type?; end
2877
3045
 
2878
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3046
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2879
3047
  def kwnilarg_type?; end
2880
3048
 
2881
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3049
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2882
3050
  def kwoptarg_type?; end
2883
3051
 
2884
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3052
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2885
3053
  def kwrestarg_type?; end
2886
3054
 
2887
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3055
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2888
3056
  def kwsplat_type?; end
2889
3057
 
2890
- # source://rubocop-ast//lib/rubocop/ast/node.rb#503
3058
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#570
2891
3059
  def lambda?(param0 = T.unsafe(nil)); end
2892
3060
 
2893
- # source://rubocop-ast//lib/rubocop/ast/node.rb#506
3061
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#573
2894
3062
  def lambda_or_proc?(param0 = T.unsafe(nil)); end
2895
3063
 
2896
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3064
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2897
3065
  def lambda_type?; end
2898
3066
 
2899
- # source://rubocop-ast//lib/rubocop/ast/node.rb#265
3067
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#324
2900
3068
  def last_line; end
2901
3069
 
2902
3070
  # Use is discouraged, this is a potentially slow method and can lead
@@ -2904,7 +3072,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2904
3072
  #
2905
3073
  # @return [Node, nil] the left (aka previous) sibling
2906
3074
  #
2907
- # source://rubocop-ast//lib/rubocop/ast/node.rb#187
3075
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#246
2908
3076
  def left_sibling; end
2909
3077
 
2910
3078
  # Use is discouraged, this is a potentially slow method and can lead
@@ -2912,94 +3080,109 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2912
3080
  #
2913
3081
  # @return [Array<Node>] the left (aka previous) siblings
2914
3082
  #
2915
- # source://rubocop-ast//lib/rubocop/ast/node.rb#197
3083
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#256
2916
3084
  def left_siblings; end
2917
3085
 
2918
- # source://rubocop-ast//lib/rubocop/ast/node.rb#269
3086
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#328
2919
3087
  def line_count; end
2920
3088
 
2921
3089
  # @return [Boolean]
2922
3090
  #
2923
- # source://rubocop-ast//lib/rubocop/ast/node.rb#359
3091
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#417
2924
3092
  def literal?; end
2925
3093
 
3094
+ # Shortcut to safely check if a location is present
3095
+ #
3096
+ # @return [Boolean]
3097
+ #
3098
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#543
3099
+ def loc?(which_loc); end
3100
+
3101
+ # Shortcut to safely test a particular location, even if
3102
+ # this location does not exist or is `nil`
3103
+ #
3104
+ # @return [Boolean]
3105
+ #
3106
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#551
3107
+ def loc_is?(which_loc, str); end
3108
+
2926
3109
  # NOTE: `loop { }` is a normal method call and thus not a loop keyword.
2927
3110
  #
2928
3111
  # @return [Boolean]
2929
3112
  #
2930
- # source://rubocop-ast//lib/rubocop/ast/node.rb#433
3113
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#480
2931
3114
  def loop_keyword?; end
2932
3115
 
2933
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3116
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2934
3117
  def lvar_type?; end
2935
3118
 
2936
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3119
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2937
3120
  def lvasgn_type?; end
2938
3121
 
2939
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3122
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2940
3123
  def masgn_type?; end
2941
3124
 
2942
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3125
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2943
3126
  def match_alt_type?; end
2944
3127
 
2945
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3128
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2946
3129
  def match_as_type?; end
2947
3130
 
2948
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3131
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2949
3132
  def match_current_line_type?; end
2950
3133
 
2951
- # source://rubocop-ast//lib/rubocop/ast/node.rb#491
3134
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#558
2952
3135
  def match_guard_clause?(param0 = T.unsafe(nil)); end
2953
3136
 
2954
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3137
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2955
3138
  def match_nil_pattern_type?; end
2956
3139
 
2957
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3140
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2958
3141
  def match_pattern_p_type?; end
2959
3142
 
2960
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3143
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2961
3144
  def match_pattern_type?; end
2962
3145
 
2963
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3146
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2964
3147
  def match_rest_type?; end
2965
3148
 
2966
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3149
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2967
3150
  def match_var_type?; end
2968
3151
 
2969
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3152
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2970
3153
  def match_with_lvasgn_type?; end
2971
3154
 
2972
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3155
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2973
3156
  def match_with_trailing_comma_type?; end
2974
3157
 
2975
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3158
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2976
3159
  def mlhs_type?; end
2977
3160
 
2978
- # source://rubocop-ast//lib/rubocop/ast/node.rb#537
3161
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#604
2979
3162
  def module_definition?(param0 = T.unsafe(nil)); end
2980
3163
 
2981
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3164
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2982
3165
  def module_type?; end
2983
3166
 
2984
3167
  # Predicates
2985
3168
  #
2986
3169
  # @return [Boolean]
2987
3170
  #
2988
- # source://rubocop-ast//lib/rubocop/ast/node.rb#341
3171
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#399
2989
3172
  def multiline?; end
2990
3173
 
2991
3174
  # @return [Boolean]
2992
3175
  #
2993
- # source://rubocop-ast//lib/rubocop/ast/node.rb#375
3176
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#433
2994
3177
  def mutable_literal?; end
2995
3178
 
2996
- # source://rubocop-ast//lib/rubocop/ast/node.rb#671
3179
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#735
2997
3180
  def new_class_or_module_block?(param0 = T.unsafe(nil)); end
2998
3181
 
2999
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3182
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3000
3183
  def next_type?; end
3001
3184
 
3002
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3185
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3003
3186
  def nil_type?; end
3004
3187
 
3005
3188
  # Common destructuring method. This can be used to normalize
@@ -3012,95 +3195,95 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3012
3195
  # source://ast/2.4.2/lib/ast/node.rb#56
3013
3196
  def node_parts; end
3014
3197
 
3015
- # source://rubocop-ast//lib/rubocop/ast/node.rb#275
3198
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#334
3016
3199
  def nonempty_line_count; end
3017
3200
 
3018
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3201
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3019
3202
  def not_type?; end
3020
3203
 
3021
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3204
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3022
3205
  def nth_ref_type?; end
3023
3206
 
3024
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3207
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3025
3208
  def numargs_type?; end
3026
3209
 
3027
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3210
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3028
3211
  def numblock_type?; end
3029
3212
 
3030
3213
  # @return [Boolean]
3031
3214
  #
3032
- # source://rubocop-ast//lib/rubocop/ast/node.rb#476
3215
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#523
3033
3216
  def numeric_type?; end
3034
3217
 
3035
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3218
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3036
3219
  def objc_kwarg_type?; end
3037
3220
 
3038
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3221
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3039
3222
  def objc_restarg_type?; end
3040
3223
 
3041
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3224
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3042
3225
  def objc_varargs_type?; end
3043
3226
 
3044
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3227
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3045
3228
  def op_asgn_type?; end
3046
3229
 
3047
3230
  # @return [Boolean]
3048
3231
  #
3049
- # source://rubocop-ast//lib/rubocop/ast/node.rb#448
3232
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#495
3050
3233
  def operator_keyword?; end
3051
3234
 
3052
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3235
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3053
3236
  def optarg_type?; end
3054
3237
 
3055
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3238
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3056
3239
  def or_asgn_type?; end
3057
3240
 
3058
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3241
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3059
3242
  def or_type?; end
3060
3243
 
3061
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3244
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3062
3245
  def pair_type?; end
3063
3246
 
3064
3247
  # Returns the parent node, or `nil` if the receiver is a root node.
3065
3248
  #
3066
3249
  # @return [Node, nil] the parent node or `nil`
3067
3250
  #
3068
- # source://rubocop-ast//lib/rubocop/ast/node.rb#126
3251
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#185
3069
3252
  def parent; end
3070
3253
 
3071
3254
  # @return [Boolean]
3072
3255
  #
3073
- # source://rubocop-ast//lib/rubocop/ast/node.rb#135
3256
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#194
3074
3257
  def parent?; end
3075
3258
 
3076
3259
  # Searching the AST
3077
3260
  #
3078
- # source://rubocop-ast//lib/rubocop/ast/node.rb#325
3261
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#383
3079
3262
  def parent_module_name; end
3080
3263
 
3081
3264
  # @return [Boolean]
3082
3265
  #
3083
- # source://rubocop-ast//lib/rubocop/ast/node.rb#452
3266
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#499
3084
3267
  def parenthesized_call?; end
3085
3268
 
3086
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3269
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3087
3270
  def pin_type?; end
3088
3271
 
3089
3272
  # @return [Boolean]
3090
3273
  #
3091
- # source://rubocop-ast//lib/rubocop/ast/node.rb#428
3274
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#475
3092
3275
  def post_condition_loop?; end
3093
3276
 
3094
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3277
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3095
3278
  def postexe_type?; end
3096
3279
 
3097
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3280
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3098
3281
  def preexe_type?; end
3099
3282
 
3100
- # source://rubocop-ast//lib/rubocop/ast/node.rb#496
3283
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#563
3101
3284
  def proc?(param0 = T.unsafe(nil)); end
3102
3285
 
3103
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3286
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3104
3287
  def procarg0_type?; end
3105
3288
 
3106
3289
  # Some expressions are evaluated for their value, some for their side
@@ -3113,56 +3296,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3113
3296
  #
3114
3297
  # @return [Boolean]
3115
3298
  #
3116
- # source://rubocop-ast//lib/rubocop/ast/node.rb#582
3299
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#647
3117
3300
  def pure?; end
3118
3301
 
3119
3302
  # @return [Boolean]
3120
3303
  #
3121
- # source://rubocop-ast//lib/rubocop/ast/node.rb#480
3304
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#527
3122
3305
  def range_type?; end
3123
3306
 
3124
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3307
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3125
3308
  def rational_type?; end
3126
3309
 
3127
- # source://rubocop-ast//lib/rubocop/ast/node.rb#286
3310
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#345
3128
3311
  def receiver(param0 = T.unsafe(nil)); end
3129
3312
 
3130
- # source://rubocop-ast//lib/rubocop/ast/node.rb#386
3313
+ # @return [Boolean]
3314
+ #
3315
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#125
3131
3316
  def recursive_basic_literal?; end
3132
3317
 
3133
- # source://rubocop-ast//lib/rubocop/ast/node.rb#386
3318
+ # @return [Boolean]
3319
+ #
3320
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#125
3134
3321
  def recursive_literal?; end
3135
3322
 
3136
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3323
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3137
3324
  def redo_type?; end
3138
3325
 
3139
3326
  # @return [Boolean]
3140
3327
  #
3141
- # source://rubocop-ast//lib/rubocop/ast/node.rb#404
3328
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#451
3142
3329
  def reference?; end
3143
3330
 
3144
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3331
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3145
3332
  def regexp_type?; end
3146
3333
 
3147
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3334
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3148
3335
  def regopt_type?; end
3149
3336
 
3150
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3337
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3151
3338
  def resbody_type?; end
3152
3339
 
3153
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3340
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3154
3341
  def rescue_type?; end
3155
3342
 
3156
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3343
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3157
3344
  def restarg_expr_type?; end
3158
3345
 
3159
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3346
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3160
3347
  def restarg_type?; end
3161
3348
 
3162
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3349
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3163
3350
  def retry_type?; end
3164
3351
 
3165
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3352
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3166
3353
  def return_type?; end
3167
3354
 
3168
3355
  # Use is discouraged, this is a potentially slow method and can lead
@@ -3170,7 +3357,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3170
3357
  #
3171
3358
  # @return [Node, nil] the right (aka next) sibling
3172
3359
  #
3173
- # source://rubocop-ast//lib/rubocop/ast/node.rb#178
3360
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#237
3174
3361
  def right_sibling; end
3175
3362
 
3176
3363
  # Use is discouraged, this is a potentially slow method and can lead
@@ -3178,18 +3365,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3178
3365
  #
3179
3366
  # @return [Array<Node>] the right (aka next) siblings
3180
3367
  #
3181
- # source://rubocop-ast//lib/rubocop/ast/node.rb#206
3368
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#265
3182
3369
  def right_siblings; end
3183
3370
 
3184
3371
  # @return [Boolean]
3185
3372
  #
3186
- # source://rubocop-ast//lib/rubocop/ast/node.rb#140
3373
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#199
3187
3374
  def root?; end
3188
3375
 
3189
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3376
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3190
3377
  def sclass_type?; end
3191
3378
 
3192
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3379
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3193
3380
  def self_type?; end
3194
3381
 
3195
3382
  # Most nodes are of 'send' type, so this method is defined
@@ -3197,15 +3384,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3197
3384
  #
3198
3385
  # @return [Boolean]
3199
3386
  #
3200
- # source://rubocop-ast//lib/rubocop/ast/node.rb#119
3387
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#178
3201
3388
  def send_type?; end
3202
3389
 
3203
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3390
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3204
3391
  def shadowarg_type?; end
3205
3392
 
3206
3393
  # @return [Boolean]
3207
3394
  #
3208
- # source://rubocop-ast//lib/rubocop/ast/node.rb#412
3395
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#459
3209
3396
  def shorthand_asgn?; end
3210
3397
 
3211
3398
  # Returns the index of the receiver node in its siblings. (Sibling index
@@ -3214,70 +3401,79 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3214
3401
  #
3215
3402
  # @return [Integer, nil] the index of the receiver node in its siblings
3216
3403
  #
3217
- # source://rubocop-ast//lib/rubocop/ast/node.rb#171
3404
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#230
3218
3405
  def sibling_index; end
3219
3406
 
3220
3407
  # @return [Boolean]
3221
3408
  #
3222
- # source://rubocop-ast//lib/rubocop/ast/node.rb#345
3409
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#403
3223
3410
  def single_line?; end
3224
3411
 
3225
3412
  # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
3226
3413
  #
3227
3414
  # @return [String, nil]
3228
3415
  #
3229
- # source://rubocop-ast//lib/rubocop/ast/node.rb#253
3416
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#312
3230
3417
  def source; end
3231
3418
 
3232
- # source://rubocop-ast//lib/rubocop/ast/node.rb#279
3419
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#338
3233
3420
  def source_length; end
3234
3421
 
3235
- # source://rubocop-ast//lib/rubocop/ast/node.rb#257
3422
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#316
3236
3423
  def source_range; end
3237
3424
 
3238
3425
  # @return [Boolean]
3239
3426
  #
3240
- # source://rubocop-ast//lib/rubocop/ast/node.rb#444
3427
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#491
3241
3428
  def special_keyword?; end
3242
3429
 
3243
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3430
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3244
3431
  def splat_type?; end
3245
3432
 
3246
- # source://rubocop-ast//lib/rubocop/ast/node.rb#291
3433
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#350
3247
3434
  def str_content(param0 = T.unsafe(nil)); end
3248
3435
 
3249
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3436
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3250
3437
  def str_type?; end
3251
3438
 
3252
3439
  # @deprecated Use `:class_constructor?`
3253
3440
  #
3254
- # source://rubocop-ast//lib/rubocop/ast/node.rb#525
3441
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#592
3255
3442
  def struct_constructor?(param0 = T.unsafe(nil)); end
3256
3443
 
3257
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3444
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3258
3445
  def super_type?; end
3259
3446
 
3260
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3447
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3261
3448
  def sym_type?; end
3262
3449
 
3263
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3450
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3264
3451
  def true_type?; end
3265
3452
 
3266
3453
  # @return [Boolean]
3267
3454
  #
3268
- # source://rubocop-ast//lib/rubocop/ast/node.rb#367
3455
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#425
3269
3456
  def truthy_literal?; end
3270
3457
 
3271
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3458
+ # Determine if the node is one of several node types in a single query
3459
+ # Allows specific single node types, as well as "grouped" types
3460
+ # (e.g. `:boolean` for `:true` or `:false`)
3461
+ #
3462
+ # @return [Boolean]
3463
+ #
3464
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#160
3465
+ def type?(*types); end
3466
+
3467
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3272
3468
  def undef_type?; end
3273
3469
 
3274
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3470
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3275
3471
  def unless_guard_type?; end
3276
3472
 
3277
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3473
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3278
3474
  def until_post_type?; end
3279
3475
 
3280
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3476
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3281
3477
  def until_type?; end
3282
3478
 
3283
3479
  # Override `AST::Node#updated` so that `AST::Processor` does not try to
@@ -3286,7 +3482,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3286
3482
  # identical subtrees. Rather, the entire AST must be copied any time any
3287
3483
  # part of it is changed.
3288
3484
  #
3289
- # source://rubocop-ast//lib/rubocop/ast/node.rb#160
3485
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#219
3290
3486
  def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
3291
3487
 
3292
3488
  # Some expressions are evaluated for their value, some for their side
@@ -3297,82 +3493,83 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3297
3493
  # So, does the return value of this node matter? If we changed it to
3298
3494
  # `(...; nil)`, might that affect anything?
3299
3495
  #
3300
- #
3301
3496
  # @return [Boolean]
3302
3497
  #
3303
- # source://rubocop-ast//lib/rubocop/ast/node.rb#551
3498
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#617
3304
3499
  def value_used?; end
3305
3500
 
3306
3501
  # @return [Boolean]
3307
3502
  #
3308
- # source://rubocop-ast//lib/rubocop/ast/node.rb#400
3503
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#447
3309
3504
  def variable?; end
3310
3505
 
3311
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3506
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3312
3507
  def when_type?; end
3313
3508
 
3314
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3509
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3315
3510
  def while_post_type?; end
3316
3511
 
3317
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3512
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3318
3513
  def while_type?; end
3319
3514
 
3320
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3515
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3321
3516
  def xstr_type?; end
3322
3517
 
3323
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3518
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3324
3519
  def yield_type?; end
3325
3520
 
3326
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3521
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
3327
3522
  def zsuper_type?; end
3328
3523
 
3329
3524
  protected
3330
3525
 
3331
- # source://rubocop-ast//lib/rubocop/ast/node.rb#130
3526
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#189
3332
3527
  def parent=(node); end
3333
3528
 
3334
3529
  private
3335
3530
 
3336
3531
  # @return [Boolean]
3337
3532
  #
3338
- # source://rubocop-ast//lib/rubocop/ast/node.rb#610
3533
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#674
3339
3534
  def begin_value_used?; end
3340
3535
 
3341
3536
  # @return [Boolean]
3342
3537
  #
3343
- # source://rubocop-ast//lib/rubocop/ast/node.rb#621
3538
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#685
3344
3539
  def case_if_value_used?; end
3345
3540
 
3346
- # source://rubocop-ast//lib/rubocop/ast/node.rb#305
3541
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#363
3347
3542
  def defined_module0(param0 = T.unsafe(nil)); end
3348
3543
 
3349
3544
  # @return [Boolean]
3350
3545
  #
3351
- # source://rubocop-ast//lib/rubocop/ast/node.rb#615
3546
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#679
3352
3547
  def for_value_used?; end
3353
3548
 
3354
- # source://rubocop-ast//lib/rubocop/ast/node.rb#657
3549
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#721
3355
3550
  def parent_module_name_for_block(ancestor); end
3356
3551
 
3357
- # source://rubocop-ast//lib/rubocop/ast/node.rb#645
3552
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#709
3358
3553
  def parent_module_name_for_sclass(sclass_node); end
3359
3554
 
3360
- # source://rubocop-ast//lib/rubocop/ast/node.rb#632
3555
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#696
3361
3556
  def parent_module_name_part(node); end
3362
3557
 
3363
- # source://rubocop-ast//lib/rubocop/ast/node.rb#600
3558
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#665
3364
3559
  def visit_ancestors(types); end
3365
3560
 
3366
3561
  # @return [Boolean]
3367
3562
  #
3368
- # source://rubocop-ast//lib/rubocop/ast/node.rb#627
3563
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#691
3369
3564
  def while_until_value_used?; end
3370
- end
3371
3565
 
3372
- # @api private
3373
- #
3374
- # source://rubocop-ast//lib/rubocop/ast/node.rb#80
3375
- RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set)
3566
+ class << self
3567
+ private
3568
+
3569
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#120
3570
+ def def_recursive_literal_predicate(kind); end
3571
+ end
3572
+ end
3376
3573
 
3377
3574
  # @api private
3378
3575
  #
@@ -3406,10 +3603,10 @@ RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
3406
3603
  # source://rubocop-ast//lib/rubocop/ast/node.rb#60
3407
3604
  RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
3408
3605
 
3409
- # source://rubocop-ast//lib/rubocop/ast/node.rb#87
3606
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#84
3410
3607
  RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array)
3411
3608
 
3412
- # source://rubocop-ast//lib/rubocop/ast/node.rb#88
3609
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#85
3413
3610
  RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash)
3414
3611
 
3415
3612
  # @api private
@@ -3422,6 +3619,11 @@ RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
3422
3619
  # source://rubocop-ast//lib/rubocop/ast/node.rb#35
3423
3620
  RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set)
3424
3621
 
3622
+ # @api private
3623
+ #
3624
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#89
3625
+ RuboCop::AST::Node::GROUP_FOR_TYPE = T.let(T.unsafe(nil), Hash)
3626
+
3425
3627
  # @api private
3426
3628
  #
3427
3629
  # source://rubocop-ast//lib/rubocop/ast/node.rb#47
@@ -3437,10 +3639,10 @@ RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set)
3437
3639
  # source://rubocop-ast//lib/rubocop/ast/node.rb#37
3438
3640
  RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set)
3439
3641
 
3440
- # source://rubocop-ast//lib/rubocop/ast/node.rb#83
3642
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#80
3441
3643
  RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set)
3442
3644
 
3443
- # source://rubocop-ast//lib/rubocop/ast/node.rb#84
3645
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#81
3444
3646
  RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set)
3445
3647
 
3446
3648
  # @api private
@@ -3510,7 +3712,7 @@ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set)
3510
3712
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5
3511
3713
  class RuboCop::AST::NodePattern
3512
3714
  include ::RuboCop::AST::NodePattern::MethodDefiner
3513
- extend ::Forwardable
3715
+ extend ::RuboCop::SimpleForwardable
3514
3716
 
3515
3717
  # @return [NodePattern] a new instance of NodePattern
3516
3718
  #
@@ -3528,8 +3730,8 @@ class RuboCop::AST::NodePattern
3528
3730
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
3529
3731
  def ast; end
3530
3732
 
3531
- # source://forwardable/1.3.3/forwardable.rb#231
3532
- def captures(*args, **_arg1, &block); end
3733
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
3734
+ def captures(*_arg0, **_arg1, &_arg2); end
3533
3735
 
3534
3736
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
3535
3737
  def encode_with(coder); end
@@ -3557,16 +3759,16 @@ class RuboCop::AST::NodePattern
3557
3759
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
3558
3760
  def match_code; end
3559
3761
 
3560
- # source://forwardable/1.3.3/forwardable.rb#231
3561
- def named_parameters(*args, **_arg1, &block); end
3762
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
3763
+ def named_parameters(*_arg0, **_arg1, &_arg2); end
3562
3764
 
3563
3765
  # Returns the value of attribute pattern.
3564
3766
  #
3565
3767
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
3566
3768
  def pattern; end
3567
3769
 
3568
- # source://forwardable/1.3.3/forwardable.rb#231
3569
- def positional_parameters(*args, **_arg1, &block); end
3770
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
3771
+ def positional_parameters(*_arg0, **_arg1, &_arg2); end
3570
3772
 
3571
3773
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
3572
3774
  def to_s; end
@@ -3671,15 +3873,15 @@ end
3671
3873
  #
3672
3874
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11
3673
3875
  class RuboCop::AST::NodePattern::Compiler
3674
- extend ::Forwardable
3876
+ extend ::RuboCop::SimpleForwardable
3675
3877
 
3676
3878
  # @return [Compiler] a new instance of Compiler
3677
3879
  #
3678
3880
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
3679
3881
  def initialize; end
3680
3882
 
3681
- # source://forwardable/1.3.3/forwardable.rb#231
3682
- def bind(*args, **_arg1, &block); end
3883
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
3884
+ def bind(*_arg0, **_arg1, &_arg2); end
3683
3885
 
3684
3886
  # Returns the value of attribute binding.
3685
3887
  #
@@ -3804,7 +4006,10 @@ class RuboCop::AST::NodePattern::Compiler::Binding
3804
4006
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#16
3805
4007
  def bind(name); end
3806
4008
 
3807
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#30
4009
+ # Yields for each branch of the given union, forbidding unification of
4010
+ # bindings which only appear in a subset of the union.
4011
+ #
4012
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#31
3808
4013
  def union_bind(enum); end
3809
4014
 
3810
4015
  private
@@ -3822,8 +4027,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
3822
4027
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
3823
4028
  def initialize; end
3824
4029
 
3825
- # source://forwardable/1.3.3/forwardable.rb#231
3826
- def comments(*args, **_arg1, &block); end
4030
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
4031
+ def comments(*_arg0, **_arg1, &_arg2); end
3827
4032
 
3828
4033
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128
3829
4034
  def named_parameters; end
@@ -3836,8 +4041,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
3836
4041
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132
3837
4042
  def parser; end
3838
4043
 
3839
- # source://forwardable/1.3.3/forwardable.rb#231
3840
- def tokens(*args, **_arg1, &block); end
4044
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
4045
+ def tokens(*_arg0, **_arg1, &_arg2); end
3841
4046
  end
3842
4047
 
3843
4048
  # @api private
@@ -4152,7 +4357,6 @@ end
4152
4357
  # Doc on how this fits in the compiling process:
4153
4358
  # /docs/modules/ROOT/pages/node_pattern.adoc
4154
4359
  #
4155
- #
4156
4360
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17
4157
4361
  class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
4158
4362
  # Calls `compile_sequence`; the actual `compile` method
@@ -4306,6 +4510,8 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST:
4306
4510
  def within_loop; end
4307
4511
  end
4308
4512
 
4513
+ # Shift of 1 from standard Ruby indices
4514
+ #
4309
4515
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18
4310
4516
  RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer)
4311
4517
 
@@ -4438,7 +4644,7 @@ class RuboCop::AST::NodePattern::LexerRex
4438
4644
 
4439
4645
  # The current location in the parse.
4440
4646
  #
4441
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104
4647
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103
4442
4648
  def location; end
4443
4649
 
4444
4650
  # The StringScanner for this lexer.
@@ -4453,22 +4659,22 @@ class RuboCop::AST::NodePattern::LexerRex
4453
4659
 
4454
4660
  # Lex the next token.
4455
4661
  #
4456
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113
4662
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112
4457
4663
  def next_token; end
4458
4664
 
4459
4665
  # Parse the given string.
4460
4666
  #
4461
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84
4667
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#83
4462
4668
  def parse(str); end
4463
4669
 
4464
4670
  # Read in and parse the file at +path+.
4465
4671
  #
4466
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94
4672
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#93
4467
4673
  def parse_file(path); end
4468
4674
 
4469
4675
  # The current scanner class. Must be overridden in subclasses.
4470
4676
  #
4471
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77
4677
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#76
4472
4678
  def scanner_class; end
4473
4679
 
4474
4680
  # The StringScanner for this lexer.
@@ -4612,219 +4818,225 @@ end
4612
4818
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7
4613
4819
  class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
4614
4820
  include ::RuboCop::AST::Descendence
4615
- extend ::Forwardable
4821
+ extend ::RuboCop::SimpleForwardable
4616
4822
 
4617
4823
  # Note: `arity.end` may be `Float::INFINITY`
4618
4824
  #
4619
4825
  # @return [Integer, Range] An Integer for fixed length terms, otherwise a Range.
4620
4826
  #
4621
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#29
4827
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#28
4622
4828
  def arity; end
4623
4829
 
4624
4830
  # @return [Range] arity as a Range
4625
4831
  #
4626
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#69
4832
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#68
4627
4833
  def arity_range; end
4628
4834
 
4629
4835
  # @return [Boolean]
4630
4836
  #
4631
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#23
4837
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#22
4632
4838
  def capture?; end
4633
4839
 
4634
4840
  # @return [Node] most nodes have only one child
4635
4841
  #
4636
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#48
4842
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#47
4637
4843
  def child; end
4638
4844
 
4639
4845
  # @return [Array<Node>]
4640
4846
  #
4641
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#43
4847
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#42
4642
4848
  def children_nodes; end
4643
4849
 
4644
4850
  # @return [Array<Node>, nil] replace node with result, or `nil` if no change requested.
4645
4851
  #
4646
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#34
4852
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#33
4647
4853
  def in_sequence_head; end
4648
4854
 
4649
4855
  # that matches within a Set (e.g. `42`, `:sym` but not `/regexp/`)
4650
4856
  #
4651
4857
  # @return [Boolean] returns true for nodes having a Ruby literal equivalent
4652
4858
  #
4653
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#64
4859
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#63
4654
4860
  def matches_within_set?; end
4655
4861
 
4656
- # @return [Integer] nb of captures of that node and its descendants
4862
+ # @return [Integer] nb of captures that this node will emit
4657
4863
  #
4658
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#53
4864
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#52
4659
4865
  def nb_captures; end
4660
4866
 
4661
4867
  # To be overridden by subclasses
4662
4868
  #
4663
4869
  # @return [Boolean]
4664
4870
  #
4665
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#19
4871
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#18
4666
4872
  def rest?; end
4667
4873
 
4668
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#78
4874
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#77
4669
4875
  def source_range; end
4670
4876
 
4671
4877
  # @return [Boolean] returns whether it matches a variable number of elements
4672
4878
  #
4673
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#58
4879
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#57
4674
4880
  def variadic?; end
4675
4881
 
4676
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#74
4882
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#73
4677
4883
  def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end
4678
4884
  end
4679
4885
 
4680
4886
  # Node class for `<int str ...>`
4681
4887
  #
4682
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#180
4888
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#179
4683
4889
  class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
4684
4890
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4685
4891
 
4686
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#198
4892
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#197
4687
4893
  def arity; end
4688
4894
 
4689
4895
  # @return [Boolean]
4690
4896
  #
4691
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#190
4897
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#189
4692
4898
  def ends_with_rest?; end
4693
4899
 
4694
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#194
4900
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#193
4695
4901
  def rest_node; end
4696
4902
 
4697
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#186
4903
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#185
4698
4904
  def term_nodes; end
4699
4905
  end
4700
4906
 
4701
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#183
4907
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#182
4702
4908
  RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
4703
4909
 
4704
4910
  # Node class for `$something`
4705
4911
  #
4706
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97
4912
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96
4707
4913
  class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
4708
- # source://forwardable/1.3.3/forwardable.rb#231
4709
- def arity(*args, **_arg1, &block); end
4914
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
4915
+ def arity(*_arg0, **_arg1, &_arg2); end
4710
4916
 
4711
4917
  # @return [Boolean]
4712
4918
  #
4713
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101
4919
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#100
4714
4920
  def capture?; end
4715
4921
 
4716
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#109
4922
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#108
4717
4923
  def in_sequence_head; end
4718
4924
 
4719
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105
4925
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104
4720
4926
  def nb_captures; end
4721
4927
 
4722
- # source://forwardable/1.3.3/forwardable.rb#231
4723
- def rest?(*args, **_arg1, &block); end
4928
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
4929
+ def rest?(*_arg0, **_arg1, &_arg2); end
4724
4930
  end
4725
4931
 
4726
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86
4932
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#85
4727
4933
  module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4728
4934
  # @raise [NodePattern::Invalid]
4729
4935
  #
4730
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#87
4936
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86
4731
4937
  def in_sequence_head; end
4732
4938
  end
4733
4939
 
4734
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#140
4940
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139
4735
4941
  RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate
4736
4942
 
4737
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82
4943
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#81
4738
4944
  RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
4739
4945
 
4740
4946
  # Registry
4741
4947
  #
4742
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#250
4948
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#255
4743
4949
  RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
4744
4950
 
4745
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#12
4951
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#11
4746
4952
  RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
4747
4953
 
4748
4954
  # Node class for `predicate?(:arg, :list)`
4749
4955
  #
4750
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131
4956
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#130
4751
4957
  class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
4752
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#136
4958
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#135
4753
4959
  def arg_list; end
4754
4960
 
4755
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132
4961
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131
4756
4962
  def method_name; end
4757
4963
  end
4758
4964
 
4759
4965
  # Node class for `int+`
4760
4966
  #
4761
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#143
4967
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#142
4762
4968
  class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
4763
4969
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4764
4970
 
4765
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#156
4971
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#155
4766
4972
  def arity; end
4767
4973
 
4768
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#146
4974
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#145
4769
4975
  def operator; end
4770
4976
  end
4771
4977
 
4772
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#150
4978
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#149
4773
4979
  RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
4774
4980
 
4775
4981
  # Node class for `...`
4776
4982
  #
4777
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162
4983
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#161
4778
4984
  class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
4779
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#170
4985
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#169
4780
4986
  def arity; end
4781
4987
 
4782
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#174
4988
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#173
4783
4989
  def in_sequence_head; end
4784
4990
 
4785
4991
  # @return [Boolean]
4786
4992
  #
4787
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166
4993
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#165
4788
4994
  def rest?; end
4789
4995
  end
4790
4996
 
4791
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#163
4997
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162
4792
4998
  RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
4793
4999
 
4794
5000
  # Node class for `(type first second ...)`
4795
5001
  #
4796
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#118
5002
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#117
4797
5003
  class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
4798
5004
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4799
5005
 
4800
5006
  # @return [Sequence] a new instance of Sequence
4801
5007
  #
4802
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#121
5008
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#120
4803
5009
  def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
4804
5010
  end
4805
5011
 
4806
5012
  # A list (potentially empty) of nodes; part of a Union
4807
5013
  #
4808
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#206
5014
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#205
4809
5015
  class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
4810
5016
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4811
5017
 
4812
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#209
5018
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#208
4813
5019
  def arity; end
4814
5020
 
4815
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#214
5021
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#213
4816
5022
  def in_sequence_head; end
4817
5023
  end
4818
5024
 
4819
5025
  # Node class for `{ ... }`
4820
5026
  #
4821
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224
5027
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#223
4822
5028
  class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
4823
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#225
5029
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224
4824
5030
  def arity; end
4825
5031
 
4826
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#232
5032
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#231
4827
5033
  def in_sequence_head; end
5034
+
5035
+ # Each child in a union must contain the same number
5036
+ # of captures. Only one branch ends up capturing.
5037
+ #
5038
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#249
5039
+ def nb_captures; end
4828
5040
  end
4829
5041
 
4830
5042
  # Parser for NodePattern
@@ -4835,7 +5047,7 @@ end
4835
5047
  #
4836
5048
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12
4837
5049
  class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
4838
- extend ::Forwardable
5050
+ extend ::RuboCop::SimpleForwardable
4839
5051
 
4840
5052
  # @return [Parser] a new instance of Parser
4841
5053
  #
@@ -4954,29 +5166,29 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
4954
5166
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
4955
5167
  def _reduce_none(val, _values); end
4956
5168
 
4957
- # source://forwardable/1.3.3/forwardable.rb#231
4958
- def emit_atom(*args, **_arg1, &block); end
5169
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
5170
+ def emit_atom(*_arg0, **_arg1, &_arg2); end
4959
5171
 
4960
- # source://forwardable/1.3.3/forwardable.rb#231
4961
- def emit_call(*args, **_arg1, &block); end
5172
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
5173
+ def emit_call(*_arg0, **_arg1, &_arg2); end
4962
5174
 
4963
- # source://forwardable/1.3.3/forwardable.rb#231
4964
- def emit_capture(*args, **_arg1, &block); end
5175
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
5176
+ def emit_capture(*_arg0, **_arg1, &_arg2); end
4965
5177
 
4966
- # source://forwardable/1.3.3/forwardable.rb#231
4967
- def emit_list(*args, **_arg1, &block); end
5178
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
5179
+ def emit_list(*_arg0, **_arg1, &_arg2); end
4968
5180
 
4969
- # source://forwardable/1.3.3/forwardable.rb#231
4970
- def emit_unary_op(*args, **_arg1, &block); end
5181
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
5182
+ def emit_unary_op(*_arg0, **_arg1, &_arg2); end
4971
5183
 
4972
- # source://forwardable/1.3.3/forwardable.rb#231
4973
- def emit_union(*args, **_arg1, &block); end
5184
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
5185
+ def emit_union(*_arg0, **_arg1, &_arg2); end
4974
5186
 
4975
5187
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
4976
5188
  def inspect; end
4977
5189
 
4978
- # source://forwardable/1.3.3/forwardable.rb#231
4979
- def next_token(*args, **_arg1, &block); end
5190
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
5191
+ def next_token(*_arg0, **_arg1, &_arg2); end
4980
5192
 
4981
5193
  # (Similar API to `parser` gem)
4982
5194
  # Parses a source and returns the AST.
@@ -5133,7 +5345,7 @@ RuboCop::AST::NodePattern::Sets::SET_AFTER_ACTION_APPEND_AFTER_ACTION_APPEND_ARO
5133
5345
  RuboCop::AST::NodePattern::Sets::SET_ALL_ANY_CLASS_OF_ETC = T.let(T.unsafe(nil), Set)
5134
5346
 
5135
5347
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5136
- RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set)
5348
+ RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE = T.let(T.unsafe(nil), Set)
5137
5349
 
5138
5350
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5139
5351
  RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set)
@@ -5141,6 +5353,9 @@ RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), S
5141
5353
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5142
5354
  RuboCop::AST::NodePattern::Sets::SET_AP_P_PP_ETC = T.let(T.unsafe(nil), Set)
5143
5355
 
5356
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5357
+ RuboCop::AST::NodePattern::Sets::SET_ARRAY_HASH = T.let(T.unsafe(nil), Set)
5358
+
5144
5359
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5145
5360
  RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set)
5146
5361
 
@@ -5243,6 +5458,9 @@ RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE = T.let(T.unsafe(nil), Set
5243
5458
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5244
5459
  RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE_BELONGS_TO = T.let(T.unsafe(nil), Set)
5245
5460
 
5461
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5462
+ RuboCop::AST::NodePattern::Sets::SET_HEAD_ASSERT_RESPONSE = T.let(T.unsafe(nil), Set)
5463
+
5246
5464
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5247
5465
  RuboCop::AST::NodePattern::Sets::SET_HTML_HTML5 = T.let(T.unsafe(nil), Set)
5248
5466
 
@@ -5291,6 +5509,9 @@ RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set)
5291
5509
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5292
5510
  RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set)
5293
5511
 
5512
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5513
+ RuboCop::AST::NodePattern::Sets::SET_MAP_FILTER_MAP = T.let(T.unsafe(nil), Set)
5514
+
5294
5515
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5295
5516
  RuboCop::AST::NodePattern::Sets::SET_MATCH_MATCH_ = T.let(T.unsafe(nil), Set)
5296
5517
 
@@ -5322,7 +5543,7 @@ RuboCop::AST::NodePattern::Sets::SET_ONLY_EXCEPT = T.let(T.unsafe(nil), Set)
5322
5543
  RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
5323
5544
 
5324
5545
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5325
- RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_EMPTY = T.let(T.unsafe(nil), Set)
5546
+ RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_ETC = T.let(T.unsafe(nil), Set)
5326
5547
 
5327
5548
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5328
5549
  RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T.let(T.unsafe(nil), Set)
@@ -5355,7 +5576,10 @@ RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
5355
5576
  RuboCop::AST::NodePattern::Sets::SET_REFERER_REFERRER = T.let(T.unsafe(nil), Set)
5356
5577
 
5357
5578
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5358
- RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set)
5579
+ RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF = T.let(T.unsafe(nil), Set)
5580
+
5581
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5582
+ RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
5359
5583
 
5360
5584
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5361
5585
  RuboCop::AST::NodePattern::Sets::SET_RENDER_REDIRECT_TO = T.let(T.unsafe(nil), Set)
@@ -5373,11 +5597,17 @@ RuboCop::AST::NodePattern::Sets::SET_ROOT_PUBLIC_PATH = T.let(T.unsafe(nil), Set
5373
5597
  RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set)
5374
5598
 
5375
5599
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5376
- RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
5600
+ RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_KEEP_IF = T.let(T.unsafe(nil), Set)
5601
+
5602
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5603
+ RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT_FILTER_FILTER = T.let(T.unsafe(nil), Set)
5377
5604
 
5378
5605
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5379
5606
  RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
5380
5607
 
5608
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5609
+ RuboCop::AST::NodePattern::Sets::SET_SET_SORTEDSET = T.let(T.unsafe(nil), Set)
5610
+
5381
5611
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5382
5612
  RuboCop::AST::NodePattern::Sets::SET_SIG_HELPERS = T.let(T.unsafe(nil), Set)
5383
5613
 
@@ -5435,6 +5665,9 @@ RuboCop::AST::NodePattern::Sets::SET_TRY_TRY = T.let(T.unsafe(nil), Set)
5435
5665
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5436
5666
  RuboCop::AST::NodePattern::Sets::SET_T_TRANSLATE_L_LOCALIZE = T.let(T.unsafe(nil), Set)
5437
5667
 
5668
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5669
+ RuboCop::AST::NodePattern::Sets::SET_WHERE_NOT = T.let(T.unsafe(nil), Set)
5670
+
5438
5671
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5439
5672
  RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set)
5440
5673
 
@@ -5480,12 +5713,6 @@ RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set)
5480
5713
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5481
5714
  RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set)
5482
5715
 
5483
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5484
- RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set)
5485
-
5486
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5487
- RuboCop::AST::NodePattern::Sets::SET___EQL_INCLUDE = T.let(T.unsafe(nil), Set)
5488
-
5489
5716
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5490
5717
  RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set)
5491
5718
 
@@ -5513,7 +5740,7 @@ RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set)
5513
5740
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55
5514
5741
  RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String)
5515
5742
 
5516
- # Common functionality for primitive numeric nodes: `int`, `float`, ...
5743
+ # Common functionality for primitive numeric nodes: `int`, `float`, `rational`...
5517
5744
  #
5518
5745
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6
5519
5746
  module RuboCop::AST::NumericNode
@@ -5546,22 +5773,34 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
5546
5773
  #
5547
5774
  # @return [Node] the expression being assigned.
5548
5775
  #
5549
- # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#31
5776
+ # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
5550
5777
  def expression; end
5551
5778
 
5779
+ # @return [AsgnNode] the assignment node
5780
+ #
5781
+ # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10
5782
+ def lhs; end
5783
+
5552
5784
  # The name of the variable being assigned as a symbol.
5553
5785
  #
5554
5786
  # @return [Symbol] the name of the variable being assigned
5555
5787
  #
5556
- # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#17
5788
+ # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#18
5557
5789
  def name; end
5558
5790
 
5559
5791
  # The operator being used for assignment as a symbol.
5560
5792
  #
5561
5793
  # @return [Symbol] the assignment operator
5562
5794
  #
5563
- # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#24
5795
+ # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#25
5564
5796
  def operator; end
5797
+
5798
+ # The expression being assigned to the variable.
5799
+ #
5800
+ # @return [Node] the expression being assigned.
5801
+ #
5802
+ # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
5803
+ def rhs; end
5565
5804
  end
5566
5805
 
5567
5806
  # A node extension for `op_asgn` nodes.
@@ -5802,33 +6041,39 @@ module RuboCop::AST::PredicateOperatorNode
5802
6041
  #
5803
6042
  # @return [Boolean] whether this is a logical operator
5804
6043
  #
5805
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#27
6044
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#32
5806
6045
  def logical_operator?; end
5807
6046
 
5808
6047
  # Returns the operator as a string.
5809
6048
  #
5810
6049
  # @return [String] the operator
5811
6050
  #
5812
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#20
6051
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#25
5813
6052
  def operator; end
5814
6053
 
5815
6054
  # Checks whether this is a semantic operator.
5816
6055
  #
5817
6056
  # @return [Boolean] whether this is a semantic operator
5818
6057
  #
5819
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#34
6058
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#39
5820
6059
  def semantic_operator?; end
5821
6060
  end
5822
6061
 
5823
6062
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#8
5824
6063
  RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String)
5825
6064
 
6065
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#17
6066
+ RuboCop::AST::PredicateOperatorNode::LOGICAL_OPERATORS = T.let(T.unsafe(nil), Array)
6067
+
5826
6068
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#12
5827
6069
  RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String)
5828
6070
 
5829
6071
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#10
5830
6072
  RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String)
5831
6073
 
6074
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#19
6075
+ RuboCop::AST::PredicateOperatorNode::SEMANTIC_OPERATORS = T.let(T.unsafe(nil), Array)
6076
+
5832
6077
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#14
5833
6078
  RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String)
5834
6079
 
@@ -5850,42 +6095,42 @@ end
5850
6095
  # and other information such as disabled lines for cops.
5851
6096
  # It also provides a convenient way to access source lines.
5852
6097
  #
5853
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#11
6098
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#10
5854
6099
  class RuboCop::AST::ProcessedSource
5855
6100
  # @return [ProcessedSource] a new instance of ProcessedSource
5856
6101
  #
5857
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#29
6102
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#28
5858
6103
  def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
5859
6104
 
5860
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#73
6105
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#72
5861
6106
  def [](*args); end
5862
6107
 
5863
6108
  # Returns the value of attribute ast.
5864
6109
  #
5865
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6110
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5866
6111
  def ast; end
5867
6112
 
5868
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#51
6113
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#50
5869
6114
  def ast_with_comments; end
5870
6115
 
5871
6116
  # @return [Boolean]
5872
6117
  #
5873
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
6118
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#111
5874
6119
  def blank?; end
5875
6120
 
5876
6121
  # Returns the value of attribute buffer.
5877
6122
  #
5878
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6123
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5879
6124
  def buffer; end
5880
6125
 
5881
6126
  # Raw source checksum for tracking infinite loops.
5882
6127
  #
5883
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84
6128
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#83
5884
6129
  def checksum; end
5885
6130
 
5886
6131
  # @return [Comment, nil] the comment at that line, if any.
5887
6132
  #
5888
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
6133
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#116
5889
6134
  def comment_at_line(line); end
5890
6135
 
5891
6136
  # Consider using `each_comment_in_lines` instead
@@ -5893,181 +6138,193 @@ class RuboCop::AST::ProcessedSource
5893
6138
  # @deprecated use contains_comment?
5894
6139
  # @return [Boolean] if any of the lines in the given `source_range` has a comment.
5895
6140
  #
5896
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
6141
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
5897
6142
  def commented?(source_range); end
5898
6143
 
5899
6144
  # Returns the value of attribute comments.
5900
6145
  #
5901
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6146
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5902
6147
  def comments; end
5903
6148
 
5904
6149
  # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
5905
6150
  #
5906
6151
  # @deprecated Use `each_comment_in_lines`
5907
6152
  #
5908
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
6153
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#146
5909
6154
  def comments_before_line(line); end
5910
6155
 
5911
6156
  # Consider using `each_comment_in_lines` instead
5912
6157
  #
5913
6158
  # @return [Boolean] if any of the lines in the given `source_range` has a comment.
5914
6159
  #
5915
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
6160
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
5916
6161
  def contains_comment?(source_range); end
5917
6162
 
5918
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161
6163
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#160
5919
6164
  def current_line(token); end
5920
6165
 
5921
6166
  # Returns the value of attribute diagnostics.
5922
6167
  #
5923
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6168
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5924
6169
  def diagnostics; end
5925
6170
 
5926
6171
  # @deprecated Use `comments.each`
5927
6172
  #
5928
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89
6173
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#88
5929
6174
  def each_comment(&block); end
5930
6175
 
5931
6176
  # Enumerates on the comments contained with the given `line_range`
5932
6177
  #
5933
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#127
6178
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#126
5934
6179
  def each_comment_in_lines(line_range); end
5935
6180
 
5936
6181
  # @deprecated Use `tokens.each`
5937
6182
  #
5938
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#99
6183
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98
5939
6184
  def each_token(&block); end
5940
6185
 
5941
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#108
6186
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107
5942
6187
  def file_path; end
5943
6188
 
5944
6189
  # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
5945
6190
  #
5946
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94
6191
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#93
5947
6192
  def find_comment(&block); end
5948
6193
 
5949
6194
  # @deprecated Use `tokens.find`
5950
6195
  #
5951
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#104
6196
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#103
5952
6197
  def find_token(&block); end
5953
6198
 
5954
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#182
6199
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#181
5955
6200
  def first_token_of(range_or_node); end
5956
6201
 
5957
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#165
6202
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#164
5958
6203
  def following_line(token); end
5959
6204
 
5960
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#186
6205
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#185
5961
6206
  def last_token_of(range_or_node); end
5962
6207
 
5963
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#169
6208
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#168
5964
6209
  def line_indentation(line_number); end
5965
6210
 
5966
6211
  # @return [Boolean] if the given line number has a comment.
5967
6212
  #
5968
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#122
6213
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#121
5969
6214
  def line_with_comment?(line); end
5970
6215
 
5971
6216
  # Returns the source lines, line break characters removed, excluding a
5972
6217
  # possible __END__ and everything that comes after.
5973
6218
  #
5974
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#59
6219
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58
5975
6220
  def lines; end
5976
6221
 
5977
6222
  # Returns the value of attribute parser_engine.
5978
6223
  #
5979
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6224
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5980
6225
  def parser_engine; end
5981
6226
 
5982
6227
  # Returns the value of attribute parser_error.
5983
6228
  #
5984
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6229
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5985
6230
  def parser_error; end
5986
6231
 
5987
6232
  # Returns the value of attribute path.
5988
6233
  #
5989
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6234
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5990
6235
  def path; end
5991
6236
 
5992
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
6237
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#156
5993
6238
  def preceding_line(token); end
5994
6239
 
5995
6240
  # Returns the value of attribute raw_source.
5996
6241
  #
5997
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6242
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5998
6243
  def raw_source; end
5999
6244
 
6000
6245
  # Returns the value of attribute ruby_version.
6001
6246
  #
6002
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6247
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
6003
6248
  def ruby_version; end
6004
6249
 
6005
6250
  # The tokens list is always sorted by token position, except for cases when heredoc
6006
6251
  # is passed as a method argument. In this case tokens are interleaved by
6007
6252
  # heredoc contents' tokens.
6008
6253
  #
6009
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#193
6254
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#192
6010
6255
  def sorted_tokens; end
6011
6256
 
6012
6257
  # @return [Boolean]
6013
6258
  #
6014
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151
6259
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#150
6015
6260
  def start_with?(string); end
6016
6261
 
6017
6262
  # Returns the value of attribute tokens.
6018
6263
  #
6019
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6264
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
6020
6265
  def tokens; end
6021
6266
 
6022
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176
6267
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#175
6023
6268
  def tokens_within(range_or_node); end
6024
6269
 
6025
6270
  # @return [Boolean]
6026
6271
  #
6027
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77
6272
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#76
6028
6273
  def valid_syntax?; end
6029
6274
 
6030
6275
  private
6031
6276
 
6032
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#200
6277
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#199
6033
6278
  def comment_index; end
6034
6279
 
6035
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#312
6280
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#329
6036
6281
  def create_parser(ruby_version, parser_engine); end
6037
6282
 
6038
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#328
6283
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#345
6039
6284
  def first_token_index(range_or_node); end
6040
6285
 
6041
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#333
6286
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#350
6042
6287
  def last_token_index(range_or_node); end
6043
6288
 
6044
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#206
6289
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#205
6045
6290
  def parse(source, ruby_version, parser_engine); end
6046
6291
 
6047
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#240
6292
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#238
6048
6293
  def parser_class(ruby_version, parser_engine); end
6049
6294
 
6050
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#338
6295
+ # Prism is a native extension, a `LoadError` will be raised if linked to an incompatible
6296
+ # Ruby version. Only raise if it really was caused by Prism not being present.
6297
+ #
6298
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#306
6299
+ def require_prism; end
6300
+
6301
+ # While Prism is not yet a dependency, users may run with outdated versions that
6302
+ # don't have all the parsers.
6303
+ #
6304
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#317
6305
+ def require_prism_translation_parser(version); end
6306
+
6307
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#355
6051
6308
  def source_range(range_or_node); end
6052
6309
 
6053
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#223
6310
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#222
6054
6311
  def tokenize(parser); end
6055
6312
 
6056
6313
  class << self
6057
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#24
6314
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#23
6058
6315
  def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
6059
6316
  end
6060
6317
  end
6061
6318
 
6062
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
6319
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#14
6063
6320
  RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
6064
6321
 
6065
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
6322
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#17
6066
6323
  RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
6067
6324
 
6068
6325
  # @api private
6069
6326
  #
6070
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13
6327
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#12
6071
6328
  RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String)
6072
6329
 
6073
6330
  # A node extension for `irange` and `erange` nodes. This will be used in
@@ -6083,6 +6340,16 @@ class RuboCop::AST::RangeNode < ::RuboCop::AST::Node
6083
6340
  def end; end
6084
6341
  end
6085
6342
 
6343
+ # A node extension for `rational` nodes. This will be used in place of a plain
6344
+ # node when the builder constructs the AST, making its methods available to
6345
+ # all `rational` nodes within RuboCop.
6346
+ #
6347
+ # source://rubocop-ast//lib/rubocop/ast/node/rational_node.rb#8
6348
+ class RuboCop::AST::RationalNode < ::RuboCop::AST::Node
6349
+ include ::RuboCop::AST::BasicLiteralNode
6350
+ include ::RuboCop::AST::NumericNode
6351
+ end
6352
+
6086
6353
  # A node extension for `regexp` nodes. This will be used in place of a plain
6087
6354
  # node when the builder constructs the AST, making its methods available
6088
6355
  # to all `regexp` nodes within RuboCop.
@@ -6353,15 +6620,38 @@ class RuboCop::AST::StrNode < ::RuboCop::AST::Node
6353
6620
 
6354
6621
  # @return [Boolean]
6355
6622
  #
6356
- # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11
6623
+ # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#26
6357
6624
  def character_literal?; end
6358
6625
 
6359
6626
  # @return [Boolean]
6360
6627
  #
6361
- # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#15
6628
+ # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#22
6629
+ def double_quoted?; end
6630
+
6631
+ # @return [Boolean]
6632
+ #
6633
+ # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#30
6362
6634
  def heredoc?; end
6635
+
6636
+ # Checks whether the string literal is delimited by percent brackets.
6637
+ #
6638
+ # @overload percent_literal?
6639
+ # @overload percent_literal?
6640
+ # @param type [Symbol] an optional percent literal type
6641
+ # @return [Boolean] whether the string is enclosed in percent brackets
6642
+ #
6643
+ # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#45
6644
+ def percent_literal?(type = T.unsafe(nil)); end
6645
+
6646
+ # @return [Boolean]
6647
+ #
6648
+ # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#18
6649
+ def single_quoted?; end
6363
6650
  end
6364
6651
 
6652
+ # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11
6653
+ RuboCop::AST::StrNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
6654
+
6365
6655
  # A node extension for `super`- and `zsuper` nodes. This will be used in
6366
6656
  # place of a plain node when the builder constructs the AST, making its
6367
6657
  # methods available to all `super`- and `zsuper` nodes within RuboCop.
@@ -6399,151 +6689,154 @@ end
6399
6689
  class RuboCop::AST::Token
6400
6690
  # @return [Token] a new instance of Token
6401
6691
  #
6402
- # source://rubocop-ast//lib/rubocop/ast/token.rb#17
6692
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#18
6403
6693
  def initialize(pos, type, text); end
6404
6694
 
6405
- # source://rubocop-ast//lib/rubocop/ast/token.rb#32
6695
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#33
6406
6696
  def begin_pos; end
6407
6697
 
6408
- # source://rubocop-ast//lib/rubocop/ast/token.rb#28
6698
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#29
6409
6699
  def column; end
6410
6700
 
6411
6701
  # @return [Boolean]
6412
6702
  #
6413
- # source://rubocop-ast//lib/rubocop/ast/token.rb#101
6703
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#102
6414
6704
  def comma?; end
6415
6705
 
6416
6706
  # Type Predicates
6417
6707
  #
6418
6708
  # @return [Boolean]
6419
6709
  #
6420
- # source://rubocop-ast//lib/rubocop/ast/token.rb#57
6710
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#58
6421
6711
  def comment?; end
6422
6712
 
6423
6713
  # @return [Boolean]
6424
6714
  #
6425
- # source://rubocop-ast//lib/rubocop/ast/token.rb#105
6715
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#106
6426
6716
  def dot?; end
6427
6717
 
6428
6718
  # @return [Boolean]
6429
6719
  #
6430
- # source://rubocop-ast//lib/rubocop/ast/token.rb#117
6720
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#118
6431
6721
  def end?; end
6432
6722
 
6433
- # source://rubocop-ast//lib/rubocop/ast/token.rb#36
6723
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#37
6434
6724
  def end_pos; end
6435
6725
 
6436
6726
  # @return [Boolean]
6437
6727
  #
6438
- # source://rubocop-ast//lib/rubocop/ast/token.rb#121
6728
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#122
6439
6729
  def equal_sign?; end
6440
6730
 
6441
6731
  # @return [Boolean]
6442
6732
  #
6443
- # source://rubocop-ast//lib/rubocop/ast/token.rb#65
6733
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#66
6444
6734
  def left_array_bracket?; end
6445
6735
 
6446
6736
  # @return [Boolean]
6447
6737
  #
6448
- # source://rubocop-ast//lib/rubocop/ast/token.rb#81
6738
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#82
6449
6739
  def left_brace?; end
6450
6740
 
6451
6741
  # @return [Boolean]
6452
6742
  #
6453
- # source://rubocop-ast//lib/rubocop/ast/token.rb#73
6743
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#74
6454
6744
  def left_bracket?; end
6455
6745
 
6456
6746
  # @return [Boolean]
6457
6747
  #
6458
- # source://rubocop-ast//lib/rubocop/ast/token.rb#85
6748
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#86
6459
6749
  def left_curly_brace?; end
6460
6750
 
6461
6751
  # @return [Boolean]
6462
6752
  #
6463
- # source://rubocop-ast//lib/rubocop/ast/token.rb#93
6753
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#94
6464
6754
  def left_parens?; end
6465
6755
 
6466
6756
  # @return [Boolean]
6467
6757
  #
6468
- # source://rubocop-ast//lib/rubocop/ast/token.rb#69
6758
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#70
6469
6759
  def left_ref_bracket?; end
6470
6760
 
6471
- # source://rubocop-ast//lib/rubocop/ast/token.rb#24
6761
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#25
6472
6762
  def line; end
6473
6763
 
6474
6764
  # @return [Boolean]
6475
6765
  #
6476
- # source://rubocop-ast//lib/rubocop/ast/token.rb#125
6766
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#126
6477
6767
  def new_line?; end
6478
6768
 
6479
6769
  # Returns the value of attribute pos.
6480
6770
  #
6481
- # source://rubocop-ast//lib/rubocop/ast/token.rb#9
6771
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#10
6482
6772
  def pos; end
6483
6773
 
6484
6774
  # @return [Boolean]
6485
6775
  #
6486
- # source://rubocop-ast//lib/rubocop/ast/token.rb#109
6776
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#110
6487
6777
  def regexp_dots?; end
6488
6778
 
6489
6779
  # @return [Boolean]
6490
6780
  #
6491
- # source://rubocop-ast//lib/rubocop/ast/token.rb#113
6781
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#114
6492
6782
  def rescue_modifier?; end
6493
6783
 
6494
6784
  # @return [Boolean]
6495
6785
  #
6496
- # source://rubocop-ast//lib/rubocop/ast/token.rb#77
6786
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#78
6497
6787
  def right_bracket?; end
6498
6788
 
6499
6789
  # @return [Boolean]
6500
6790
  #
6501
- # source://rubocop-ast//lib/rubocop/ast/token.rb#89
6791
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#90
6502
6792
  def right_curly_brace?; end
6503
6793
 
6504
6794
  # @return [Boolean]
6505
6795
  #
6506
- # source://rubocop-ast//lib/rubocop/ast/token.rb#97
6796
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#98
6507
6797
  def right_parens?; end
6508
6798
 
6509
6799
  # @return [Boolean]
6510
6800
  #
6511
- # source://rubocop-ast//lib/rubocop/ast/token.rb#61
6801
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#62
6512
6802
  def semicolon?; end
6513
6803
 
6514
6804
  # Checks if there is whitespace after token
6515
6805
  #
6516
6806
  # @return [Boolean]
6517
6807
  #
6518
- # source://rubocop-ast//lib/rubocop/ast/token.rb#45
6808
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#46
6519
6809
  def space_after?; end
6520
6810
 
6521
6811
  # Checks if there is whitespace before token
6522
6812
  #
6523
6813
  # @return [Boolean]
6524
6814
  #
6525
- # source://rubocop-ast//lib/rubocop/ast/token.rb#50
6815
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#51
6526
6816
  def space_before?; end
6527
6817
 
6528
6818
  # Returns the value of attribute text.
6529
6819
  #
6530
- # source://rubocop-ast//lib/rubocop/ast/token.rb#9
6820
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#10
6531
6821
  def text; end
6532
6822
 
6533
- # source://rubocop-ast//lib/rubocop/ast/token.rb#40
6823
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#41
6534
6824
  def to_s; end
6535
6825
 
6536
6826
  # Returns the value of attribute type.
6537
6827
  #
6538
- # source://rubocop-ast//lib/rubocop/ast/token.rb#9
6828
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#10
6539
6829
  def type; end
6540
6830
 
6541
6831
  class << self
6542
- # source://rubocop-ast//lib/rubocop/ast/token.rb#11
6832
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#12
6543
6833
  def from_parser_token(parser_token); end
6544
6834
  end
6545
6835
  end
6546
6836
 
6837
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#8
6838
+ RuboCop::AST::Token::LEFT_CURLY_TYPES = T.let(T.unsafe(nil), Array)
6839
+
6547
6840
  # source://rubocop-ast//lib/rubocop/ast/token.rb#7
6548
6841
  RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array)
6549
6842
 
@@ -7025,6 +7318,18 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
7025
7318
  def keyword; end
7026
7319
  end
7027
7320
 
7321
+ # A node extension for `lvar`, `ivar`, `cvar` and `gvar` nodes.
7322
+ # This will be used in place of a plain node when the builder constructs
7323
+ # the AST, making its methods available to all assignment nodes within RuboCop.
7324
+ #
7325
+ # source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#8
7326
+ class RuboCop::AST::VarNode < ::RuboCop::AST::Node
7327
+ # @return [Symbol] The name of the variable.
7328
+ #
7329
+ # source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#10
7330
+ def name; end
7331
+ end
7332
+
7028
7333
  # source://rubocop-ast//lib/rubocop/ast/version.rb#5
7029
7334
  module RuboCop::AST::Version; end
7030
7335
 
@@ -7124,3 +7429,346 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
7124
7429
  # source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#16
7125
7430
  def node_parts; end
7126
7431
  end
7432
+
7433
+ class RuboCop::CommentConfig
7434
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#34
7435
+ def initialize(processed_source); end
7436
+
7437
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#63
7438
+ def comment_only_line?(line_number); end
7439
+
7440
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7441
+ def config(*_arg0, **_arg1, &_arg2); end
7442
+
7443
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#51
7444
+ def cop_disabled_line_ranges; end
7445
+
7446
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#39
7447
+ def cop_enabled_at_line?(cop, line_number); end
7448
+
7449
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#47
7450
+ def cop_opted_in?(cop); end
7451
+
7452
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#55
7453
+ def extra_enabled_comments; end
7454
+
7455
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#30
7456
+ def processed_source; end
7457
+
7458
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7459
+ def registry(*_arg0, **_arg1, &_arg2); end
7460
+
7461
+ private
7462
+
7463
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#96
7464
+ def analyze; end
7465
+
7466
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#124
7467
+ def analyze_cop(analysis, directive); end
7468
+
7469
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#144
7470
+ def analyze_disabled(analysis, directive); end
7471
+
7472
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#155
7473
+ def analyze_rest(analysis, directive); end
7474
+
7475
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#135
7476
+ def analyze_single_line(analysis, directive); end
7477
+
7478
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#164
7479
+ def cop_line_ranges(analysis); end
7480
+
7481
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#170
7482
+ def each_directive; end
7483
+
7484
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#69
7485
+ def extra_enabled_comments_with_names(extras:, names:); end
7486
+
7487
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#190
7488
+ def handle_enable_all(directive, names, extras); end
7489
+
7490
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#204
7491
+ def handle_switch(directive, names, extras); end
7492
+
7493
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#115
7494
+ def inject_disabled_cops_directives(analyses); end
7495
+
7496
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#183
7497
+ def non_comment_token_line_numbers; end
7498
+
7499
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#83
7500
+ def opt_in_cops; end
7501
+
7502
+ # source://rubocop/1.71.2/lib/rubocop/comment_config.rb#179
7503
+ def qualified_cop_name(cop_name); end
7504
+ end
7505
+
7506
+ class RuboCop::Config
7507
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#31
7508
+ def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
7509
+
7510
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7511
+ def [](*_arg0, **_arg1, &_arg2); end
7512
+
7513
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7514
+ def []=(*_arg0, **_arg1, &_arg2); end
7515
+
7516
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#179
7517
+ def active_support_extensions_enabled?; end
7518
+
7519
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#94
7520
+ def add_excludes_from_higher_level(highest_config); end
7521
+
7522
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#206
7523
+ def allowed_camel_case_file?(file); end
7524
+
7525
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#250
7526
+ def base_dir_for_path_parameters; end
7527
+
7528
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#280
7529
+ def bundler_lock_file_path; end
7530
+
7531
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#52
7532
+ def check; end
7533
+
7534
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#147
7535
+ def clusivity_config_for_badge?(badge); end
7536
+
7537
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#167
7538
+ def cop_enabled?(name); end
7539
+
7540
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7541
+ def delete(*_arg0, **_arg1, &_arg2); end
7542
+
7543
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#106
7544
+ def deprecation_check; end
7545
+
7546
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7547
+ def dig(*_arg0, **_arg1, &_arg2); end
7548
+
7549
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#171
7550
+ def disabled_new_cops?; end
7551
+
7552
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7553
+ def each(*_arg0, **_arg1, &_arg2); end
7554
+
7555
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7556
+ def each_key(*_arg0, **_arg1, &_arg2); end
7557
+
7558
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#175
7559
+ def enabled_new_cops?; end
7560
+
7561
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7562
+ def fetch(*_arg0, **_arg1, &_arg2); end
7563
+
7564
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#228
7565
+ def file_to_exclude?(file); end
7566
+
7567
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#187
7568
+ def file_to_include?(file); end
7569
+
7570
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#163
7571
+ def for_all_cops; end
7572
+
7573
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#133
7574
+ def for_badge(badge); end
7575
+
7576
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#120
7577
+ def for_cop(cop); end
7578
+
7579
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#158
7580
+ def for_department(department_name); end
7581
+
7582
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#127
7583
+ def for_enabled_cop(cop); end
7584
+
7585
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#305
7586
+ def gem_versions_in_target; end
7587
+
7588
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#309
7589
+ def inspect; end
7590
+
7591
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#77
7592
+ def internal?; end
7593
+
7594
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7595
+ def key?(*_arg0, **_arg1, &_arg2); end
7596
+
7597
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7598
+ def keys(*_arg0, **_arg1, &_arg2); end
7599
+
7600
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#48
7601
+ def loaded_features; end
7602
+
7603
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#21
7604
+ def loaded_path; end
7605
+
7606
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#82
7607
+ def make_excludes_absolute; end
7608
+
7609
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7610
+ def map(*_arg0, **_arg1, &_arg2); end
7611
+
7612
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7613
+ def merge(*_arg0, **_arg1, &_arg2); end
7614
+
7615
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#260
7616
+ def parser_engine; end
7617
+
7618
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#241
7619
+ def path_relative_to_config(path); end
7620
+
7621
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#237
7622
+ def patterns_to_exclude; end
7623
+
7624
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#233
7625
+ def patterns_to_include; end
7626
+
7627
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#291
7628
+ def pending_cops; end
7629
+
7630
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#220
7631
+ def possibly_include_hidden?; end
7632
+
7633
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7634
+ def replace(*_arg0, **_arg1, &_arg2); end
7635
+
7636
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#72
7637
+ def signature; end
7638
+
7639
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#275
7640
+ def smart_loaded_path; end
7641
+
7642
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#183
7643
+ def string_literals_frozen_by_default?; end
7644
+
7645
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#264
7646
+ def target_rails_version; end
7647
+
7648
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7649
+ def target_ruby_version(*_arg0, **_arg1, &_arg2); end
7650
+
7651
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7652
+ def to_h(*_arg0, **_arg1, &_arg2); end
7653
+
7654
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7655
+ def to_hash(*_arg0, **_arg1, &_arg2); end
7656
+
7657
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#68
7658
+ def to_s; end
7659
+
7660
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7661
+ def transform_values(*_arg0, **_arg1, &_arg2); end
7662
+
7663
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7664
+ def validate(*_arg0, **_arg1, &_arg2); end
7665
+
7666
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#59
7667
+ def validate_after_resolution; end
7668
+
7669
+ private
7670
+
7671
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#359
7672
+ def department_of(qualified_cop_name); end
7673
+
7674
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#347
7675
+ def enable_cop?(qualified_cop_name, cop_options); end
7676
+
7677
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#334
7678
+ def gem_version_to_major_minor_float(gem_version); end
7679
+
7680
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#340
7681
+ def read_gem_versions_from_target_lockfile; end
7682
+
7683
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#321
7684
+ def read_rails_version_from_bundler_lock_file; end
7685
+
7686
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#316
7687
+ def target_rails_version_from_bundler_lock_file; end
7688
+
7689
+ class << self
7690
+ # source://rubocop/1.71.2/lib/rubocop/config.rb#23
7691
+ def create(hash, path, check: T.unsafe(nil)); end
7692
+ end
7693
+ end
7694
+
7695
+ class RuboCop::ConfigValidator
7696
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#28
7697
+ def initialize(config); end
7698
+
7699
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7700
+ def for_all_cops(*_arg0, **_arg1, &_arg2); end
7701
+
7702
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
7703
+ def smart_loaded_path(*_arg0, **_arg1, &_arg2); end
7704
+
7705
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#65
7706
+ def target_ruby_version; end
7707
+
7708
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#34
7709
+ def validate; end
7710
+
7711
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#61
7712
+ def validate_after_resolution; end
7713
+
7714
+ private
7715
+
7716
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#100
7717
+ def alert_about_unrecognized_cops(invalid_cop_names); end
7718
+
7719
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#263
7720
+ def check_cop_config_value(hash, parent = T.unsafe(nil)); end
7721
+
7722
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#73
7723
+ def check_obsoletions; end
7724
+
7725
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#80
7726
+ def check_target_ruby; end
7727
+
7728
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#204
7729
+ def each_invalid_parameter(cop_name); end
7730
+
7731
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#116
7732
+ def list_unknown_cops(invalid_cop_names); end
7733
+
7734
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#283
7735
+ def param_error_message(parent, key, value, supposed_values); end
7736
+
7737
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#251
7738
+ def reject_conflicting_safe_settings; end
7739
+
7740
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#242
7741
+ def reject_mutually_exclusive_defaults; end
7742
+
7743
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#138
7744
+ def suggestion(name); end
7745
+
7746
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#71
7747
+ def target_ruby; end
7748
+
7749
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#216
7750
+ def validate_enforced_styles(valid_cop_names); end
7751
+
7752
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#165
7753
+ def validate_new_cops_parameter; end
7754
+
7755
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#190
7756
+ def validate_parameter_names(valid_cop_names); end
7757
+
7758
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#176
7759
+ def validate_parameter_shape(valid_cop_names); end
7760
+
7761
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#236
7762
+ def validate_support_and_has_list(name, formats, valid); end
7763
+
7764
+ # source://rubocop/1.71.2/lib/rubocop/config_validator.rb#154
7765
+ def validate_syntax_cop; end
7766
+ end
7767
+
7768
+ # Similar to `Forwardable#def_delegators`, but simpler & faster
7769
+ #
7770
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#5
7771
+ module RuboCop::SimpleForwardable
7772
+ # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#6
7773
+ def def_delegators(accessor, *methods); end
7774
+ end