lunchmoney 1.2.0 → 1.4.0

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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build_and_publish_yard_docs.yml +1 -1
  3. data/.github/workflows/check_pipeline.yml +2 -2
  4. data/.github/workflows/ci.yml +1 -1
  5. data/.github/workflows/{dependabot-rbi-updater.yml → rbi-updater.yml} +2 -3
  6. data/.simplecov +1 -2
  7. data/Gemfile +2 -3
  8. data/Gemfile.lock +70 -75
  9. data/lib/lunchmoney/objects/transaction.rb +9 -1
  10. data/lib/lunchmoney/objects/user.rb +4 -1
  11. data/lib/lunchmoney/version.rb +1 -1
  12. data/sorbet/rbi/annotations/activesupport.rbi +31 -0
  13. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  14. data/sorbet/rbi/dsl/active_support/callbacks.rbi +1 -0
  15. data/sorbet/rbi/gems/{activesupport@7.1.3.2.rbi → activesupport@7.2.1.rbi} +1345 -1253
  16. data/sorbet/rbi/gems/{addressable@2.8.6.rbi → addressable@2.8.7.rbi} +2 -1
  17. data/sorbet/rbi/gems/{bigdecimal@3.1.7.rbi → bigdecimal@3.1.8.rbi} +1 -0
  18. data/sorbet/rbi/gems/{chef-utils@18.4.2.rbi → chef-utils@18.5.0.rbi} +1 -0
  19. data/sorbet/rbi/gems/{concurrent-ruby@1.2.3.rbi → concurrent-ruby@1.3.4.rbi} +64 -9
  20. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +1 -0
  21. data/sorbet/rbi/gems/{dotenv@3.1.0.rbi → dotenv@3.1.2.rbi} +20 -17
  22. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
  23. data/sorbet/rbi/gems/{faraday-net_http@3.1.0.rbi → faraday-net_http@3.1.1.rbi} +36 -35
  24. data/sorbet/rbi/gems/{faraday@2.9.0.rbi → faraday@2.10.1.rbi} +79 -33
  25. data/sorbet/rbi/gems/{hashdiff@1.1.0.rbi → hashdiff@1.1.1.rbi} +3 -2
  26. data/sorbet/rbi/gems/{i18n@1.14.4.rbi → i18n@1.14.5.rbi} +43 -14
  27. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +72 -72
  28. data/sorbet/rbi/gems/logger@1.6.0.rbi +903 -0
  29. data/sorbet/rbi/gems/{minitest@5.22.3.rbi → minitest@5.25.1.rbi} +245 -235
  30. data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.2.8.rbi} +1 -0
  31. data/sorbet/rbi/gems/{mocha@2.1.0.rbi → mocha@2.4.5.rbi} +169 -144
  32. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
  33. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.4.2.rbi} +233 -186
  34. data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.30.0.rbi} +20933 -12761
  35. data/sorbet/rbi/gems/{public_suffix@5.0.4.rbi → public_suffix@6.0.1.rbi} +1 -0
  36. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +34 -33
  37. data/sorbet/rbi/gems/{rack@3.0.10.rbi → rack@3.1.7.rbi} +694 -987
  38. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  39. data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.14.rbi} +904 -622
  40. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  41. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.6.rbi} +383 -245
  42. data/sorbet/rbi/gems/{rubocop-ast@1.31.2.rbi → rubocop-ast@1.32.1.rbi} +393 -349
  43. data/sorbet/rbi/gems/{rubocop-minitest@0.35.0.rbi → rubocop-minitest@0.35.1.rbi} +11 -8
  44. data/sorbet/rbi/gems/{rubocop-rails@2.24.1.rbi → rubocop-rails@2.26.0.rbi} +604 -275
  45. data/sorbet/rbi/gems/{rubocop-sorbet@0.8.0.rbi → rubocop-sorbet@0.8.5.rbi} +253 -127
  46. data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.65.1.rbi} +2334 -1779
  47. data/sorbet/rbi/gems/securerandom@0.3.1.rbi +73 -0
  48. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.4.2.rbi} +2003 -848
  49. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  50. data/sorbet/rbi/gems/{tapioca@0.13.1.rbi → tapioca@0.16.1.rbi} +294 -259
  51. data/sorbet/rbi/gems/{toys-core@0.15.5.rbi → toys-core@0.15.6.rbi} +1 -0
  52. data/sorbet/rbi/gems/{toys@0.15.5.rbi → toys@0.15.6.rbi} +4 -3
  53. data/sorbet/rbi/gems/{vcr@6.2.0.rbi → vcr@6.3.1.rbi} +72 -68
  54. data/sorbet/rbi/gems/{webmock@3.23.0.rbi → webmock@3.23.1.rbi} +1 -0
  55. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  56. metadata +46 -49
  57. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3426
  58. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
  59. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +0 -93
  60. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  61. data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +0 -966
  62. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10077
  63. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `rubocop-ast` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem rubocop-ast`.
6
6
 
7
+
7
8
  class Parser::Source::Range
8
9
  include ::RuboCop::AST::Ext::Range
9
10
  end
@@ -159,12 +160,16 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
159
160
  #
160
161
  # @return [Boolean] whether the array is enclosed in percent or square
161
162
  #
162
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#60
163
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#64
163
164
  def bracketed?; end
164
165
 
165
- # @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
166
171
  #
167
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#21
172
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#25
168
173
  def each_value(&block); end
169
174
 
170
175
  # Checks whether the `array` literal is delimited by percent brackets.
@@ -173,14 +178,14 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
173
178
  # @overload percent_literal?
174
179
  # @return [Boolean] whether the array is enclosed in percent brackets
175
180
  #
176
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#47
181
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#51
177
182
  def percent_literal?(type = T.unsafe(nil)); end
178
183
 
179
184
  # Checks whether the `array` literal is delimited by square brackets.
180
185
  #
181
186
  # @return [Boolean] whether the array is enclosed in square brackets
182
187
  #
183
- # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#32
188
+ # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#36
184
189
  def square_brackets?; end
185
190
 
186
191
  # Returns an array of all value nodes in the `array` literal.
@@ -216,7 +221,7 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
216
221
  end
217
222
 
218
223
  # Common functionality for primitive literal nodes: `sym`, `str`,
219
- # `int`, `float`, ...
224
+ # `int`, `float`, `rational`...
220
225
  #
221
226
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7
222
227
  module RuboCop::AST::BasicLiteralNode
@@ -438,18 +443,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default
438
443
  #
439
444
  # @return [Node] the generated node
440
445
  #
441
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#98
446
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#99
442
447
  def n(type, children, source_map); end
443
448
 
444
449
  # TODO: Figure out what to do about literal encoding handling...
445
450
  # More details here https://github.com/whitequark/parser/issues/283
446
451
  #
447
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#104
452
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#105
448
453
  def string_value(token); end
449
454
 
450
455
  private
451
456
 
452
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#110
457
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#111
453
458
  def node_klass(type); end
454
459
  end
455
460
 
@@ -1310,6 +1315,14 @@ class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
1310
1315
  #
1311
1316
  # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#12
1312
1317
  def body; end
1318
+
1319
+ # Checks whether this node body is a void context.
1320
+ # Always `true` for `ensure`.
1321
+ #
1322
+ # @return [true] whether the `ensure` node body is a void context
1323
+ #
1324
+ # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#20
1325
+ def void_context?; end
1313
1326
  end
1314
1327
 
1315
1328
  # source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5
@@ -1337,11 +1350,6 @@ module RuboCop::AST::Ext::Range
1337
1350
  def line_span(exclude_end: T.unsafe(nil)); end
1338
1351
  end
1339
1352
 
1340
- # Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6-
1341
- #
1342
- # source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7
1343
- module RuboCop::AST::Ext::RangeMinMax; end
1344
-
1345
1353
  # A node extension for `float` nodes. This will be used in place of a plain
1346
1354
  # node when the builder constructs the AST, making its methods available to
1347
1355
  # all `float` nodes within RuboCop.
@@ -2540,19 +2548,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2540
2548
  # @return [Node] a new instance of Node
2541
2549
  # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
2542
2550
  #
2543
- # source://rubocop-ast//lib/rubocop/ast/node.rb#92
2551
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#113
2544
2552
  def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
2545
2553
 
2546
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2554
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2547
2555
  def __ENCODING___type?; end
2548
2556
 
2549
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2557
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2550
2558
  def __FILE___type?; end
2551
2559
 
2552
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2560
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2553
2561
  def __LINE___type?; end
2554
2562
 
2555
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2563
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2556
2564
  def alias_type?; end
2557
2565
 
2558
2566
  # Returns an array of ancestor nodes.
@@ -2560,173 +2568,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2560
2568
  #
2561
2569
  # @return [Array<Node>] an array of ancestor nodes
2562
2570
  #
2563
- # source://rubocop-ast//lib/rubocop/ast/node.rb#247
2571
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#268
2564
2572
  def ancestors; end
2565
2573
 
2566
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2574
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2567
2575
  def and_asgn_type?; end
2568
2576
 
2569
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2577
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2570
2578
  def and_type?; end
2571
2579
 
2572
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2580
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2573
2581
  def arg_expr_type?; end
2574
2582
 
2575
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2583
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2576
2584
  def arg_type?; end
2577
2585
 
2578
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2586
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2579
2587
  def args_type?; end
2580
2588
 
2581
2589
  # @return [Boolean]
2582
2590
  #
2583
- # source://rubocop-ast//lib/rubocop/ast/node.rb#464
2591
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#474
2584
2592
  def argument?; end
2585
2593
 
2586
2594
  # @return [Boolean]
2587
2595
  #
2588
- # source://rubocop-ast//lib/rubocop/ast/node.rb#468
2596
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#478
2589
2597
  def argument_type?; end
2590
2598
 
2591
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2599
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2592
2600
  def array_pattern_type?; end
2593
2601
 
2594
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2602
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2595
2603
  def array_pattern_with_tail_type?; end
2596
2604
 
2597
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2605
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2598
2606
  def array_type?; end
2599
2607
 
2600
2608
  # @return [Boolean]
2601
2609
  #
2602
- # source://rubocop-ast//lib/rubocop/ast/node.rb#416
2610
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#426
2603
2611
  def assignment?; end
2604
2612
 
2605
2613
  # Some cops treat the shovel operator as a kind of assignment.
2606
2614
  #
2607
- # source://rubocop-ast//lib/rubocop/ast/node.rb#355
2615
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#376
2608
2616
  def assignment_or_similar?(param0 = T.unsafe(nil)); end
2609
2617
 
2610
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2618
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2611
2619
  def back_ref_type?; end
2612
2620
 
2613
2621
  # @return [Boolean]
2614
2622
  #
2615
- # source://rubocop-ast//lib/rubocop/ast/node.rb#420
2623
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#430
2616
2624
  def basic_conditional?; end
2617
2625
 
2618
2626
  # @return [Boolean]
2619
2627
  #
2620
- # source://rubocop-ast//lib/rubocop/ast/node.rb#363
2628
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#384
2621
2629
  def basic_literal?; end
2622
2630
 
2623
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2631
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2624
2632
  def begin_type?; end
2625
2633
 
2626
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2634
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2627
2635
  def block_pass_type?; end
2628
2636
 
2629
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2637
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2630
2638
  def block_type?; end
2631
2639
 
2632
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2640
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2633
2641
  def blockarg_expr_type?; end
2634
2642
 
2635
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2643
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2636
2644
  def blockarg_type?; end
2637
2645
 
2638
2646
  # @return [Boolean]
2639
2647
  #
2640
- # source://rubocop-ast//lib/rubocop/ast/node.rb#472
2648
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#482
2641
2649
  def boolean_type?; end
2642
2650
 
2643
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2651
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2644
2652
  def break_type?; end
2645
2653
 
2646
2654
  # @return [Boolean]
2647
2655
  #
2648
- # source://rubocop-ast//lib/rubocop/ast/node.rb#456
2656
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#466
2649
2657
  def call_type?; end
2650
2658
 
2651
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2659
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2652
2660
  def case_match_type?; end
2653
2661
 
2654
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2662
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2655
2663
  def case_type?; end
2656
2664
 
2657
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2665
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2658
2666
  def casgn_type?; end
2659
2667
 
2660
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2668
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2661
2669
  def cbase_type?; end
2662
2670
 
2663
2671
  # @return [Boolean]
2664
2672
  #
2665
- # source://rubocop-ast//lib/rubocop/ast/node.rb#460
2673
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#470
2666
2674
  def chained?; end
2667
2675
 
2668
- # source://rubocop-ast//lib/rubocop/ast/node.rb#512
2676
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#522
2669
2677
  def class_constructor?(param0 = T.unsafe(nil)); end
2670
2678
 
2671
- # source://rubocop-ast//lib/rubocop/ast/node.rb#530
2679
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#540
2672
2680
  def class_definition?(param0 = T.unsafe(nil)); end
2673
2681
 
2674
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2682
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2675
2683
  def class_type?; end
2676
2684
 
2677
- # source://rubocop-ast//lib/rubocop/ast/node.rb#144
2685
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#165
2678
2686
  def complete!; end
2679
2687
 
2680
2688
  # @return [Boolean]
2681
2689
  #
2682
- # source://rubocop-ast//lib/rubocop/ast/node.rb#149
2690
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#170
2683
2691
  def complete?; end
2684
2692
 
2685
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2693
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2686
2694
  def complex_type?; end
2687
2695
 
2688
2696
  # @return [Boolean]
2689
2697
  #
2690
- # source://rubocop-ast//lib/rubocop/ast/node.rb#424
2698
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#434
2691
2699
  def conditional?; end
2692
2700
 
2693
- # source://rubocop-ast//lib/rubocop/ast/node.rb#293
2701
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#314
2694
2702
  def const_name; end
2695
2703
 
2696
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2704
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2697
2705
  def const_pattern_type?; end
2698
2706
 
2699
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2707
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2700
2708
  def const_type?; end
2701
2709
 
2702
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2710
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2703
2711
  def csend_type?; end
2704
2712
 
2705
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2713
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2706
2714
  def cvar_type?; end
2707
2715
 
2708
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2716
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2709
2717
  def cvasgn_type?; end
2710
2718
 
2711
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2719
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2712
2720
  def def_type?; end
2713
2721
 
2714
- # source://rubocop-ast//lib/rubocop/ast/node.rb#314
2722
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#335
2715
2723
  def defined_module; end
2716
2724
 
2717
- # source://rubocop-ast//lib/rubocop/ast/node.rb#319
2725
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#340
2718
2726
  def defined_module_name; end
2719
2727
 
2720
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2728
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2721
2729
  def defined_type?; end
2722
2730
 
2723
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2731
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2724
2732
  def defs_type?; end
2725
2733
 
2726
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2734
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2727
2735
  def dstr_type?; end
2728
2736
 
2729
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2737
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2730
2738
  def dsym_type?; end
2731
2739
 
2732
2740
  # Calls the given block for each ancestor node from parent to root.
@@ -2739,163 +2747,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2739
2747
  # @return [Enumerator] if no block is given
2740
2748
  # @yieldparam node [Node] each ancestor node
2741
2749
  #
2742
- # source://rubocop-ast//lib/rubocop/ast/node.rb#235
2750
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#256
2743
2751
  def each_ancestor(*types, &block); end
2744
2752
 
2745
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2753
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2746
2754
  def eflipflop_type?; end
2747
2755
 
2748
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2756
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2749
2757
  def empty_else_type?; end
2750
2758
 
2751
2759
  # @return [Boolean]
2752
2760
  #
2753
- # source://rubocop-ast//lib/rubocop/ast/node.rb#349
2761
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#370
2754
2762
  def empty_source?; end
2755
2763
 
2756
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2764
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2757
2765
  def ensure_type?; end
2758
2766
 
2759
2767
  # @return [Boolean]
2760
2768
  #
2761
- # source://rubocop-ast//lib/rubocop/ast/node.rb#408
2769
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#418
2762
2770
  def equals_asgn?; end
2763
2771
 
2764
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2772
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2765
2773
  def erange_type?; end
2766
2774
 
2767
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2775
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2768
2776
  def false_type?; end
2769
2777
 
2770
2778
  # @return [Boolean]
2771
2779
  #
2772
- # source://rubocop-ast//lib/rubocop/ast/node.rb#371
2780
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#392
2773
2781
  def falsey_literal?; end
2774
2782
 
2775
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2783
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2776
2784
  def find_pattern_type?; end
2777
2785
 
2778
- # source://rubocop-ast//lib/rubocop/ast/node.rb#261
2786
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#282
2779
2787
  def first_line; end
2780
2788
 
2781
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2789
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2782
2790
  def float_type?; end
2783
2791
 
2784
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2792
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2785
2793
  def for_type?; end
2786
2794
 
2787
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2795
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2788
2796
  def forward_arg_type?; end
2789
2797
 
2790
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2798
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2791
2799
  def forward_args_type?; end
2792
2800
 
2793
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2801
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2794
2802
  def forwarded_args_type?; end
2795
2803
 
2796
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2804
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2797
2805
  def forwarded_kwrestarg_type?; end
2798
2806
 
2799
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2807
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2800
2808
  def forwarded_restarg_type?; end
2801
2809
 
2802
- # source://rubocop-ast//lib/rubocop/ast/node.rb#509
2810
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#519
2803
2811
  def global_const?(param0 = T.unsafe(nil), param1); end
2804
2812
 
2805
2813
  # @return [Boolean]
2806
2814
  #
2807
- # source://rubocop-ast//lib/rubocop/ast/node.rb#484
2815
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#494
2808
2816
  def guard_clause?; end
2809
2817
 
2810
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2818
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2811
2819
  def gvar_type?; end
2812
2820
 
2813
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2821
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2814
2822
  def gvasgn_type?; end
2815
2823
 
2816
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2824
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2817
2825
  def hash_pattern_type?; end
2818
2826
 
2819
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2827
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2820
2828
  def hash_type?; end
2821
2829
 
2822
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2830
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2823
2831
  def ident_type?; end
2824
2832
 
2825
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2833
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2826
2834
  def if_guard_type?; end
2827
2835
 
2828
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2836
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2829
2837
  def if_type?; end
2830
2838
 
2831
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2839
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2832
2840
  def iflipflop_type?; end
2833
2841
 
2834
2842
  # @return [Boolean]
2835
2843
  #
2836
- # source://rubocop-ast//lib/rubocop/ast/node.rb#379
2844
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#400
2837
2845
  def immutable_literal?; end
2838
2846
 
2839
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2847
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2840
2848
  def in_match_type?; end
2841
2849
 
2842
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2850
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2843
2851
  def in_pattern_type?; end
2844
2852
 
2845
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2853
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2846
2854
  def index_type?; end
2847
2855
 
2848
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2856
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2849
2857
  def indexasgn_type?; end
2850
2858
 
2851
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2859
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2852
2860
  def int_type?; end
2853
2861
 
2854
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2862
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2855
2863
  def irange_type?; end
2856
2864
 
2857
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2865
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2858
2866
  def ivar_type?; end
2859
2867
 
2860
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2868
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2861
2869
  def ivasgn_type?; end
2862
2870
 
2863
2871
  # @return [Boolean]
2864
2872
  #
2865
- # source://rubocop-ast//lib/rubocop/ast/node.rb#437
2873
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#447
2866
2874
  def keyword?; end
2867
2875
 
2868
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2876
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2869
2877
  def kwarg_type?; end
2870
2878
 
2871
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2879
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2872
2880
  def kwargs_type?; end
2873
2881
 
2874
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2882
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2875
2883
  def kwbegin_type?; end
2876
2884
 
2877
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2885
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2878
2886
  def kwnilarg_type?; end
2879
2887
 
2880
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2888
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2881
2889
  def kwoptarg_type?; end
2882
2890
 
2883
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2891
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2884
2892
  def kwrestarg_type?; end
2885
2893
 
2886
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2894
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2887
2895
  def kwsplat_type?; end
2888
2896
 
2889
- # source://rubocop-ast//lib/rubocop/ast/node.rb#503
2897
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#513
2890
2898
  def lambda?(param0 = T.unsafe(nil)); end
2891
2899
 
2892
- # source://rubocop-ast//lib/rubocop/ast/node.rb#506
2900
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#516
2893
2901
  def lambda_or_proc?(param0 = T.unsafe(nil)); end
2894
2902
 
2895
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2903
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2896
2904
  def lambda_type?; end
2897
2905
 
2898
- # source://rubocop-ast//lib/rubocop/ast/node.rb#265
2906
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#286
2899
2907
  def last_line; end
2900
2908
 
2901
2909
  # Use is discouraged, this is a potentially slow method and can lead
@@ -2903,7 +2911,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2903
2911
  #
2904
2912
  # @return [Node, nil] the left (aka previous) sibling
2905
2913
  #
2906
- # source://rubocop-ast//lib/rubocop/ast/node.rb#187
2914
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#208
2907
2915
  def left_sibling; end
2908
2916
 
2909
2917
  # Use is discouraged, this is a potentially slow method and can lead
@@ -2911,94 +2919,94 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2911
2919
  #
2912
2920
  # @return [Array<Node>] the left (aka previous) siblings
2913
2921
  #
2914
- # source://rubocop-ast//lib/rubocop/ast/node.rb#197
2922
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#218
2915
2923
  def left_siblings; end
2916
2924
 
2917
- # source://rubocop-ast//lib/rubocop/ast/node.rb#269
2925
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#290
2918
2926
  def line_count; end
2919
2927
 
2920
2928
  # @return [Boolean]
2921
2929
  #
2922
- # source://rubocop-ast//lib/rubocop/ast/node.rb#359
2930
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#380
2923
2931
  def literal?; end
2924
2932
 
2925
2933
  # NOTE: `loop { }` is a normal method call and thus not a loop keyword.
2926
2934
  #
2927
2935
  # @return [Boolean]
2928
2936
  #
2929
- # source://rubocop-ast//lib/rubocop/ast/node.rb#433
2937
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#443
2930
2938
  def loop_keyword?; end
2931
2939
 
2932
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2940
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2933
2941
  def lvar_type?; end
2934
2942
 
2935
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2943
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2936
2944
  def lvasgn_type?; end
2937
2945
 
2938
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2946
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2939
2947
  def masgn_type?; end
2940
2948
 
2941
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2949
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2942
2950
  def match_alt_type?; end
2943
2951
 
2944
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2952
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2945
2953
  def match_as_type?; end
2946
2954
 
2947
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2955
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2948
2956
  def match_current_line_type?; end
2949
2957
 
2950
- # source://rubocop-ast//lib/rubocop/ast/node.rb#491
2958
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#501
2951
2959
  def match_guard_clause?(param0 = T.unsafe(nil)); end
2952
2960
 
2953
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2961
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2954
2962
  def match_nil_pattern_type?; end
2955
2963
 
2956
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2964
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2957
2965
  def match_pattern_p_type?; end
2958
2966
 
2959
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2967
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2960
2968
  def match_pattern_type?; end
2961
2969
 
2962
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2970
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2963
2971
  def match_rest_type?; end
2964
2972
 
2965
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2973
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2966
2974
  def match_var_type?; end
2967
2975
 
2968
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2976
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2969
2977
  def match_with_lvasgn_type?; end
2970
2978
 
2971
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2979
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2972
2980
  def match_with_trailing_comma_type?; end
2973
2981
 
2974
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2982
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2975
2983
  def mlhs_type?; end
2976
2984
 
2977
- # source://rubocop-ast//lib/rubocop/ast/node.rb#537
2985
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#547
2978
2986
  def module_definition?(param0 = T.unsafe(nil)); end
2979
2987
 
2980
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2988
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2981
2989
  def module_type?; end
2982
2990
 
2983
2991
  # Predicates
2984
2992
  #
2985
2993
  # @return [Boolean]
2986
2994
  #
2987
- # source://rubocop-ast//lib/rubocop/ast/node.rb#341
2995
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#362
2988
2996
  def multiline?; end
2989
2997
 
2990
2998
  # @return [Boolean]
2991
2999
  #
2992
- # source://rubocop-ast//lib/rubocop/ast/node.rb#375
3000
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#396
2993
3001
  def mutable_literal?; end
2994
3002
 
2995
- # source://rubocop-ast//lib/rubocop/ast/node.rb#671
3003
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#679
2996
3004
  def new_class_or_module_block?(param0 = T.unsafe(nil)); end
2997
3005
 
2998
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3006
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2999
3007
  def next_type?; end
3000
3008
 
3001
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3009
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3002
3010
  def nil_type?; end
3003
3011
 
3004
3012
  # Common destructuring method. This can be used to normalize
@@ -3011,95 +3019,95 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3011
3019
  # source://ast/2.4.2/lib/ast/node.rb#56
3012
3020
  def node_parts; end
3013
3021
 
3014
- # source://rubocop-ast//lib/rubocop/ast/node.rb#275
3022
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#296
3015
3023
  def nonempty_line_count; end
3016
3024
 
3017
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3025
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3018
3026
  def not_type?; end
3019
3027
 
3020
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3028
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3021
3029
  def nth_ref_type?; end
3022
3030
 
3023
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3031
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3024
3032
  def numargs_type?; end
3025
3033
 
3026
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3034
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3027
3035
  def numblock_type?; end
3028
3036
 
3029
3037
  # @return [Boolean]
3030
3038
  #
3031
- # source://rubocop-ast//lib/rubocop/ast/node.rb#476
3039
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#486
3032
3040
  def numeric_type?; end
3033
3041
 
3034
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3042
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3035
3043
  def objc_kwarg_type?; end
3036
3044
 
3037
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3045
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3038
3046
  def objc_restarg_type?; end
3039
3047
 
3040
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3048
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3041
3049
  def objc_varargs_type?; end
3042
3050
 
3043
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3051
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3044
3052
  def op_asgn_type?; end
3045
3053
 
3046
3054
  # @return [Boolean]
3047
3055
  #
3048
- # source://rubocop-ast//lib/rubocop/ast/node.rb#448
3056
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#458
3049
3057
  def operator_keyword?; end
3050
3058
 
3051
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3059
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3052
3060
  def optarg_type?; end
3053
3061
 
3054
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3062
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3055
3063
  def or_asgn_type?; end
3056
3064
 
3057
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3065
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3058
3066
  def or_type?; end
3059
3067
 
3060
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3068
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3061
3069
  def pair_type?; end
3062
3070
 
3063
3071
  # Returns the parent node, or `nil` if the receiver is a root node.
3064
3072
  #
3065
3073
  # @return [Node, nil] the parent node or `nil`
3066
3074
  #
3067
- # source://rubocop-ast//lib/rubocop/ast/node.rb#126
3075
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#147
3068
3076
  def parent; end
3069
3077
 
3070
3078
  # @return [Boolean]
3071
3079
  #
3072
- # source://rubocop-ast//lib/rubocop/ast/node.rb#135
3080
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#156
3073
3081
  def parent?; end
3074
3082
 
3075
3083
  # Searching the AST
3076
3084
  #
3077
- # source://rubocop-ast//lib/rubocop/ast/node.rb#325
3085
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#346
3078
3086
  def parent_module_name; end
3079
3087
 
3080
3088
  # @return [Boolean]
3081
3089
  #
3082
- # source://rubocop-ast//lib/rubocop/ast/node.rb#452
3090
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#462
3083
3091
  def parenthesized_call?; end
3084
3092
 
3085
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3093
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3086
3094
  def pin_type?; end
3087
3095
 
3088
3096
  # @return [Boolean]
3089
3097
  #
3090
- # source://rubocop-ast//lib/rubocop/ast/node.rb#428
3098
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#438
3091
3099
  def post_condition_loop?; end
3092
3100
 
3093
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3101
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3094
3102
  def postexe_type?; end
3095
3103
 
3096
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3104
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3097
3105
  def preexe_type?; end
3098
3106
 
3099
- # source://rubocop-ast//lib/rubocop/ast/node.rb#496
3107
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#506
3100
3108
  def proc?(param0 = T.unsafe(nil)); end
3101
3109
 
3102
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3110
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3103
3111
  def procarg0_type?; end
3104
3112
 
3105
3113
  # Some expressions are evaluated for their value, some for their side
@@ -3112,56 +3120,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3112
3120
  #
3113
3121
  # @return [Boolean]
3114
3122
  #
3115
- # source://rubocop-ast//lib/rubocop/ast/node.rb#582
3123
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#590
3116
3124
  def pure?; end
3117
3125
 
3118
3126
  # @return [Boolean]
3119
3127
  #
3120
- # source://rubocop-ast//lib/rubocop/ast/node.rb#480
3128
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#490
3121
3129
  def range_type?; end
3122
3130
 
3123
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3131
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3124
3132
  def rational_type?; end
3125
3133
 
3126
- # source://rubocop-ast//lib/rubocop/ast/node.rb#286
3134
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#307
3127
3135
  def receiver(param0 = T.unsafe(nil)); end
3128
3136
 
3129
- # source://rubocop-ast//lib/rubocop/ast/node.rb#386
3137
+ # @return [Boolean]
3138
+ #
3139
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#97
3130
3140
  def recursive_basic_literal?; end
3131
3141
 
3132
- # source://rubocop-ast//lib/rubocop/ast/node.rb#386
3142
+ # @return [Boolean]
3143
+ #
3144
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#97
3133
3145
  def recursive_literal?; end
3134
3146
 
3135
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3147
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3136
3148
  def redo_type?; end
3137
3149
 
3138
3150
  # @return [Boolean]
3139
3151
  #
3140
- # source://rubocop-ast//lib/rubocop/ast/node.rb#404
3152
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#414
3141
3153
  def reference?; end
3142
3154
 
3143
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3155
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3144
3156
  def regexp_type?; end
3145
3157
 
3146
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3158
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3147
3159
  def regopt_type?; end
3148
3160
 
3149
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3161
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3150
3162
  def resbody_type?; end
3151
3163
 
3152
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3164
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3153
3165
  def rescue_type?; end
3154
3166
 
3155
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3167
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3156
3168
  def restarg_expr_type?; end
3157
3169
 
3158
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3170
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3159
3171
  def restarg_type?; end
3160
3172
 
3161
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3173
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3162
3174
  def retry_type?; end
3163
3175
 
3164
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3176
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3165
3177
  def return_type?; end
3166
3178
 
3167
3179
  # Use is discouraged, this is a potentially slow method and can lead
@@ -3169,7 +3181,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3169
3181
  #
3170
3182
  # @return [Node, nil] the right (aka next) sibling
3171
3183
  #
3172
- # source://rubocop-ast//lib/rubocop/ast/node.rb#178
3184
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#199
3173
3185
  def right_sibling; end
3174
3186
 
3175
3187
  # Use is discouraged, this is a potentially slow method and can lead
@@ -3177,18 +3189,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3177
3189
  #
3178
3190
  # @return [Array<Node>] the right (aka next) siblings
3179
3191
  #
3180
- # source://rubocop-ast//lib/rubocop/ast/node.rb#206
3192
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#227
3181
3193
  def right_siblings; end
3182
3194
 
3183
3195
  # @return [Boolean]
3184
3196
  #
3185
- # source://rubocop-ast//lib/rubocop/ast/node.rb#140
3197
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#161
3186
3198
  def root?; end
3187
3199
 
3188
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3200
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3189
3201
  def sclass_type?; end
3190
3202
 
3191
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3203
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3192
3204
  def self_type?; end
3193
3205
 
3194
3206
  # Most nodes are of 'send' type, so this method is defined
@@ -3196,15 +3208,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3196
3208
  #
3197
3209
  # @return [Boolean]
3198
3210
  #
3199
- # source://rubocop-ast//lib/rubocop/ast/node.rb#119
3211
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#140
3200
3212
  def send_type?; end
3201
3213
 
3202
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3214
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3203
3215
  def shadowarg_type?; end
3204
3216
 
3205
3217
  # @return [Boolean]
3206
3218
  #
3207
- # source://rubocop-ast//lib/rubocop/ast/node.rb#412
3219
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#422
3208
3220
  def shorthand_asgn?; end
3209
3221
 
3210
3222
  # Returns the index of the receiver node in its siblings. (Sibling index
@@ -3213,70 +3225,70 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3213
3225
  #
3214
3226
  # @return [Integer, nil] the index of the receiver node in its siblings
3215
3227
  #
3216
- # source://rubocop-ast//lib/rubocop/ast/node.rb#171
3228
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#192
3217
3229
  def sibling_index; end
3218
3230
 
3219
3231
  # @return [Boolean]
3220
3232
  #
3221
- # source://rubocop-ast//lib/rubocop/ast/node.rb#345
3233
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#366
3222
3234
  def single_line?; end
3223
3235
 
3224
3236
  # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
3225
3237
  #
3226
3238
  # @return [String, nil]
3227
3239
  #
3228
- # source://rubocop-ast//lib/rubocop/ast/node.rb#253
3240
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#274
3229
3241
  def source; end
3230
3242
 
3231
- # source://rubocop-ast//lib/rubocop/ast/node.rb#279
3243
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#300
3232
3244
  def source_length; end
3233
3245
 
3234
- # source://rubocop-ast//lib/rubocop/ast/node.rb#257
3246
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#278
3235
3247
  def source_range; end
3236
3248
 
3237
3249
  # @return [Boolean]
3238
3250
  #
3239
- # source://rubocop-ast//lib/rubocop/ast/node.rb#444
3251
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#454
3240
3252
  def special_keyword?; end
3241
3253
 
3242
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3254
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3243
3255
  def splat_type?; end
3244
3256
 
3245
- # source://rubocop-ast//lib/rubocop/ast/node.rb#291
3257
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#312
3246
3258
  def str_content(param0 = T.unsafe(nil)); end
3247
3259
 
3248
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3260
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3249
3261
  def str_type?; end
3250
3262
 
3251
3263
  # @deprecated Use `:class_constructor?`
3252
3264
  #
3253
- # source://rubocop-ast//lib/rubocop/ast/node.rb#525
3265
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#535
3254
3266
  def struct_constructor?(param0 = T.unsafe(nil)); end
3255
3267
 
3256
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3268
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3257
3269
  def super_type?; end
3258
3270
 
3259
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3271
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3260
3272
  def sym_type?; end
3261
3273
 
3262
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3274
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3263
3275
  def true_type?; end
3264
3276
 
3265
3277
  # @return [Boolean]
3266
3278
  #
3267
- # source://rubocop-ast//lib/rubocop/ast/node.rb#367
3279
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#388
3268
3280
  def truthy_literal?; end
3269
3281
 
3270
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3282
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3271
3283
  def undef_type?; end
3272
3284
 
3273
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3285
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3274
3286
  def unless_guard_type?; end
3275
3287
 
3276
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3288
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3277
3289
  def until_post_type?; end
3278
3290
 
3279
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3291
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3280
3292
  def until_type?; end
3281
3293
 
3282
3294
  # Override `AST::Node#updated` so that `AST::Processor` does not try to
@@ -3285,7 +3297,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3285
3297
  # identical subtrees. Rather, the entire AST must be copied any time any
3286
3298
  # part of it is changed.
3287
3299
  #
3288
- # source://rubocop-ast//lib/rubocop/ast/node.rb#160
3300
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#181
3289
3301
  def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
3290
3302
 
3291
3303
  # Some expressions are evaluated for their value, some for their side
@@ -3296,76 +3308,82 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3296
3308
  # So, does the return value of this node matter? If we changed it to
3297
3309
  # `(...; nil)`, might that affect anything?
3298
3310
  #
3299
- #
3300
3311
  # @return [Boolean]
3301
3312
  #
3302
- # source://rubocop-ast//lib/rubocop/ast/node.rb#551
3313
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#560
3303
3314
  def value_used?; end
3304
3315
 
3305
3316
  # @return [Boolean]
3306
3317
  #
3307
- # source://rubocop-ast//lib/rubocop/ast/node.rb#400
3318
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#410
3308
3319
  def variable?; end
3309
3320
 
3310
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3321
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3311
3322
  def when_type?; end
3312
3323
 
3313
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3324
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3314
3325
  def while_post_type?; end
3315
3326
 
3316
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3327
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3317
3328
  def while_type?; end
3318
3329
 
3319
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3330
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3320
3331
  def xstr_type?; end
3321
3332
 
3322
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3333
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3323
3334
  def yield_type?; end
3324
3335
 
3325
- # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3336
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#132
3326
3337
  def zsuper_type?; end
3327
3338
 
3328
3339
  protected
3329
3340
 
3330
- # source://rubocop-ast//lib/rubocop/ast/node.rb#130
3341
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#151
3331
3342
  def parent=(node); end
3332
3343
 
3333
3344
  private
3334
3345
 
3335
3346
  # @return [Boolean]
3336
3347
  #
3337
- # source://rubocop-ast//lib/rubocop/ast/node.rb#610
3348
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#618
3338
3349
  def begin_value_used?; end
3339
3350
 
3340
3351
  # @return [Boolean]
3341
3352
  #
3342
- # source://rubocop-ast//lib/rubocop/ast/node.rb#621
3353
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#629
3343
3354
  def case_if_value_used?; end
3344
3355
 
3345
- # source://rubocop-ast//lib/rubocop/ast/node.rb#305
3356
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#326
3346
3357
  def defined_module0(param0 = T.unsafe(nil)); end
3347
3358
 
3348
3359
  # @return [Boolean]
3349
3360
  #
3350
- # source://rubocop-ast//lib/rubocop/ast/node.rb#615
3361
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#623
3351
3362
  def for_value_used?; end
3352
3363
 
3353
- # source://rubocop-ast//lib/rubocop/ast/node.rb#657
3364
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#665
3354
3365
  def parent_module_name_for_block(ancestor); end
3355
3366
 
3356
- # source://rubocop-ast//lib/rubocop/ast/node.rb#645
3367
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#653
3357
3368
  def parent_module_name_for_sclass(sclass_node); end
3358
3369
 
3359
- # source://rubocop-ast//lib/rubocop/ast/node.rb#632
3370
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#640
3360
3371
  def parent_module_name_part(node); end
3361
3372
 
3362
- # source://rubocop-ast//lib/rubocop/ast/node.rb#600
3373
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#608
3363
3374
  def visit_ancestors(types); end
3364
3375
 
3365
3376
  # @return [Boolean]
3366
3377
  #
3367
- # source://rubocop-ast//lib/rubocop/ast/node.rb#627
3378
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#635
3368
3379
  def while_until_value_used?; end
3380
+
3381
+ class << self
3382
+ private
3383
+
3384
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#92
3385
+ def def_recursive_literal_predicate(kind); end
3386
+ end
3369
3387
  end
3370
3388
 
3371
3389
  # @api private
@@ -3803,7 +3821,10 @@ class RuboCop::AST::NodePattern::Compiler::Binding
3803
3821
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#16
3804
3822
  def bind(name); end
3805
3823
 
3806
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#30
3824
+ # Yields for each branch of the given union, forbidding unification of
3825
+ # bindings which only appear in a subset of the union.
3826
+ #
3827
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#31
3807
3828
  def union_bind(enum); end
3808
3829
 
3809
3830
  private
@@ -4151,7 +4172,6 @@ end
4151
4172
  # Doc on how this fits in the compiling process:
4152
4173
  # /docs/modules/ROOT/pages/node_pattern.adoc
4153
4174
  #
4154
- #
4155
4175
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17
4156
4176
  class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
4157
4177
  # Calls `compile_sequence`; the actual `compile` method
@@ -4305,6 +4325,8 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST:
4305
4325
  def within_loop; end
4306
4326
  end
4307
4327
 
4328
+ # Shift of 1 from standard Ruby indices
4329
+ #
4308
4330
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18
4309
4331
  RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer)
4310
4332
 
@@ -4437,7 +4459,7 @@ class RuboCop::AST::NodePattern::LexerRex
4437
4459
 
4438
4460
  # The current location in the parse.
4439
4461
  #
4440
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104
4462
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103
4441
4463
  def location; end
4442
4464
 
4443
4465
  # The StringScanner for this lexer.
@@ -4452,22 +4474,22 @@ class RuboCop::AST::NodePattern::LexerRex
4452
4474
 
4453
4475
  # Lex the next token.
4454
4476
  #
4455
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113
4477
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112
4456
4478
  def next_token; end
4457
4479
 
4458
4480
  # Parse the given string.
4459
4481
  #
4460
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84
4482
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#83
4461
4483
  def parse(str); end
4462
4484
 
4463
4485
  # Read in and parse the file at +path+.
4464
4486
  #
4465
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94
4487
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#93
4466
4488
  def parse_file(path); end
4467
4489
 
4468
4490
  # The current scanner class. Must be overridden in subclasses.
4469
4491
  #
4470
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77
4492
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#76
4471
4493
  def scanner_class; end
4472
4494
 
4473
4495
  # The StringScanner for this lexer.
@@ -4617,212 +4639,212 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
4617
4639
  #
4618
4640
  # @return [Integer, Range] An Integer for fixed length terms, otherwise a Range.
4619
4641
  #
4620
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#29
4642
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#28
4621
4643
  def arity; end
4622
4644
 
4623
4645
  # @return [Range] arity as a Range
4624
4646
  #
4625
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#69
4647
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#68
4626
4648
  def arity_range; end
4627
4649
 
4628
4650
  # @return [Boolean]
4629
4651
  #
4630
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#23
4652
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#22
4631
4653
  def capture?; end
4632
4654
 
4633
4655
  # @return [Node] most nodes have only one child
4634
4656
  #
4635
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#48
4657
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#47
4636
4658
  def child; end
4637
4659
 
4638
4660
  # @return [Array<Node>]
4639
4661
  #
4640
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#43
4662
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#42
4641
4663
  def children_nodes; end
4642
4664
 
4643
4665
  # @return [Array<Node>, nil] replace node with result, or `nil` if no change requested.
4644
4666
  #
4645
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#34
4667
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#33
4646
4668
  def in_sequence_head; end
4647
4669
 
4648
4670
  # that matches within a Set (e.g. `42`, `:sym` but not `/regexp/`)
4649
4671
  #
4650
4672
  # @return [Boolean] returns true for nodes having a Ruby literal equivalent
4651
4673
  #
4652
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#64
4674
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#63
4653
4675
  def matches_within_set?; end
4654
4676
 
4655
4677
  # @return [Integer] nb of captures of that node and its descendants
4656
4678
  #
4657
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#53
4679
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#52
4658
4680
  def nb_captures; end
4659
4681
 
4660
4682
  # To be overridden by subclasses
4661
4683
  #
4662
4684
  # @return [Boolean]
4663
4685
  #
4664
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#19
4686
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#18
4665
4687
  def rest?; end
4666
4688
 
4667
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#78
4689
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#77
4668
4690
  def source_range; end
4669
4691
 
4670
4692
  # @return [Boolean] returns whether it matches a variable number of elements
4671
4693
  #
4672
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#58
4694
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#57
4673
4695
  def variadic?; end
4674
4696
 
4675
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#74
4697
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#73
4676
4698
  def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end
4677
4699
  end
4678
4700
 
4679
4701
  # Node class for `<int str ...>`
4680
4702
  #
4681
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#180
4703
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#179
4682
4704
  class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
4683
4705
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4684
4706
 
4685
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#198
4707
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#197
4686
4708
  def arity; end
4687
4709
 
4688
4710
  # @return [Boolean]
4689
4711
  #
4690
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#190
4712
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#189
4691
4713
  def ends_with_rest?; end
4692
4714
 
4693
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#194
4715
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#193
4694
4716
  def rest_node; end
4695
4717
 
4696
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#186
4718
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#185
4697
4719
  def term_nodes; end
4698
4720
  end
4699
4721
 
4700
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#183
4722
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#182
4701
4723
  RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
4702
4724
 
4703
4725
  # Node class for `$something`
4704
4726
  #
4705
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97
4727
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96
4706
4728
  class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
4707
4729
  # source://forwardable/1.3.3/forwardable.rb#231
4708
4730
  def arity(*args, **_arg1, &block); end
4709
4731
 
4710
4732
  # @return [Boolean]
4711
4733
  #
4712
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101
4734
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#100
4713
4735
  def capture?; end
4714
4736
 
4715
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#109
4737
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#108
4716
4738
  def in_sequence_head; end
4717
4739
 
4718
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105
4740
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104
4719
4741
  def nb_captures; end
4720
4742
 
4721
4743
  # source://forwardable/1.3.3/forwardable.rb#231
4722
4744
  def rest?(*args, **_arg1, &block); end
4723
4745
  end
4724
4746
 
4725
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86
4747
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#85
4726
4748
  module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4727
4749
  # @raise [NodePattern::Invalid]
4728
4750
  #
4729
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#87
4751
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86
4730
4752
  def in_sequence_head; end
4731
4753
  end
4732
4754
 
4733
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#140
4755
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139
4734
4756
  RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate
4735
4757
 
4736
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82
4758
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#81
4737
4759
  RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
4738
4760
 
4739
4761
  # Registry
4740
4762
  #
4741
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#250
4763
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#249
4742
4764
  RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
4743
4765
 
4744
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#12
4766
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#11
4745
4767
  RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
4746
4768
 
4747
4769
  # Node class for `predicate?(:arg, :list)`
4748
4770
  #
4749
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131
4771
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#130
4750
4772
  class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
4751
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#136
4773
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#135
4752
4774
  def arg_list; end
4753
4775
 
4754
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132
4776
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131
4755
4777
  def method_name; end
4756
4778
  end
4757
4779
 
4758
4780
  # Node class for `int+`
4759
4781
  #
4760
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#143
4782
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#142
4761
4783
  class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
4762
4784
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4763
4785
 
4764
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#156
4786
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#155
4765
4787
  def arity; end
4766
4788
 
4767
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#146
4789
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#145
4768
4790
  def operator; end
4769
4791
  end
4770
4792
 
4771
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#150
4793
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#149
4772
4794
  RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
4773
4795
 
4774
4796
  # Node class for `...`
4775
4797
  #
4776
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162
4798
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#161
4777
4799
  class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
4778
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#170
4800
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#169
4779
4801
  def arity; end
4780
4802
 
4781
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#174
4803
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#173
4782
4804
  def in_sequence_head; end
4783
4805
 
4784
4806
  # @return [Boolean]
4785
4807
  #
4786
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166
4808
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#165
4787
4809
  def rest?; end
4788
4810
  end
4789
4811
 
4790
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#163
4812
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162
4791
4813
  RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
4792
4814
 
4793
4815
  # Node class for `(type first second ...)`
4794
4816
  #
4795
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#118
4817
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#117
4796
4818
  class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
4797
4819
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4798
4820
 
4799
4821
  # @return [Sequence] a new instance of Sequence
4800
4822
  #
4801
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#121
4823
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#120
4802
4824
  def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
4803
4825
  end
4804
4826
 
4805
4827
  # A list (potentially empty) of nodes; part of a Union
4806
4828
  #
4807
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#206
4829
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#205
4808
4830
  class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
4809
4831
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4810
4832
 
4811
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#209
4833
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#208
4812
4834
  def arity; end
4813
4835
 
4814
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#214
4836
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#213
4815
4837
  def in_sequence_head; end
4816
4838
  end
4817
4839
 
4818
4840
  # Node class for `{ ... }`
4819
4841
  #
4820
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224
4842
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#223
4821
4843
  class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
4822
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#225
4844
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224
4823
4845
  def arity; end
4824
4846
 
4825
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#232
4847
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#231
4826
4848
  def in_sequence_head; end
4827
4849
  end
4828
4850
 
@@ -5122,9 +5144,6 @@ RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set)
5122
5144
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5123
5145
  RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set)
5124
5146
 
5125
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5126
- RuboCop::AST::NodePattern::Sets::SET_ABSTRACT_OVERRIDE_OVERRIDABLE_ETC = T.let(T.unsafe(nil), Set)
5127
-
5128
5147
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5129
5148
  RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
5130
5149
 
@@ -5182,9 +5201,6 @@ RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil),
5182
5201
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5183
5202
  RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set)
5184
5203
 
5185
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5186
- RuboCop::AST::NodePattern::Sets::SET_CONSTANTIZE_CONSTANTS_CONST_GET = T.let(T.unsafe(nil), Set)
5187
-
5188
5204
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5189
5205
  RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
5190
5206
 
@@ -5194,9 +5210,6 @@ RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT = T.let(T.unsafe(nil)
5194
5210
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5195
5211
  RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT_2 = T.let(T.unsafe(nil), Set)
5196
5212
 
5197
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5198
- RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set)
5199
-
5200
5213
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5201
5214
  RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
5202
5215
 
@@ -5206,9 +5219,6 @@ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe
5206
5219
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5207
5220
  RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set)
5208
5221
 
5209
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5210
- RuboCop::AST::NodePattern::Sets::SET_ENV = T.let(T.unsafe(nil), Set)
5211
-
5212
5222
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5213
5223
  RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set)
5214
5224
 
@@ -5254,6 +5264,9 @@ RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE = T.let(T.unsafe(nil), Set
5254
5264
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5255
5265
  RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE_BELONGS_TO = T.let(T.unsafe(nil), Set)
5256
5266
 
5267
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5268
+ RuboCop::AST::NodePattern::Sets::SET_HEAD_ASSERT_RESPONSE = T.let(T.unsafe(nil), Set)
5269
+
5257
5270
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5258
5271
  RuboCop::AST::NodePattern::Sets::SET_HTML_HTML5 = T.let(T.unsafe(nil), Set)
5259
5272
 
@@ -5263,6 +5276,9 @@ RuboCop::AST::NodePattern::Sets::SET_IF_UNLESS = T.let(T.unsafe(nil), Set)
5263
5276
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5264
5277
  RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set)
5265
5278
 
5279
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5280
+ RuboCop::AST::NodePattern::Sets::SET_INCLUDE_PREPEND = T.let(T.unsafe(nil), Set)
5281
+
5266
5282
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5267
5283
  RuboCop::AST::NodePattern::Sets::SET_INSERT_INSERT = T.let(T.unsafe(nil), Set)
5268
5284
 
@@ -5284,6 +5300,9 @@ RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES_TO_H_TO_XML = T.let(T.unsafe(ni
5284
5300
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5285
5301
  RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set)
5286
5302
 
5303
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5304
+ RuboCop::AST::NodePattern::Sets::SET_LAMBDA_PROC = T.let(T.unsafe(nil), Set)
5305
+
5287
5306
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5288
5307
  RuboCop::AST::NodePattern::Sets::SET_LAST_FIRST = T.let(T.unsafe(nil), Set)
5289
5308
 
@@ -5296,6 +5315,9 @@ RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set)
5296
5315
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5297
5316
  RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set)
5298
5317
 
5318
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5319
+ RuboCop::AST::NodePattern::Sets::SET_MAP_FILTER_MAP = T.let(T.unsafe(nil), Set)
5320
+
5299
5321
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5300
5322
  RuboCop::AST::NodePattern::Sets::SET_MATCH_MATCH_ = T.let(T.unsafe(nil), Set)
5301
5323
 
@@ -5359,6 +5381,9 @@ RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
5359
5381
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5360
5382
  RuboCop::AST::NodePattern::Sets::SET_REFERER_REFERRER = T.let(T.unsafe(nil), Set)
5361
5383
 
5384
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5385
+ RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF = T.let(T.unsafe(nil), Set)
5386
+
5362
5387
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5363
5388
  RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set)
5364
5389
 
@@ -5377,6 +5402,9 @@ RuboCop::AST::NodePattern::Sets::SET_ROOT_PUBLIC_PATH = T.let(T.unsafe(nil), Set
5377
5402
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5378
5403
  RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set)
5379
5404
 
5405
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5406
+ RuboCop::AST::NodePattern::Sets::SET_SELECT_KEEP_IF = T.let(T.unsafe(nil), Set)
5407
+
5380
5408
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5381
5409
  RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
5382
5410
 
@@ -5440,6 +5468,9 @@ RuboCop::AST::NodePattern::Sets::SET_TRY_TRY = T.let(T.unsafe(nil), Set)
5440
5468
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5441
5469
  RuboCop::AST::NodePattern::Sets::SET_T_TRANSLATE_L_LOCALIZE = T.let(T.unsafe(nil), Set)
5442
5470
 
5471
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5472
+ RuboCop::AST::NodePattern::Sets::SET_WHERE_NOT = T.let(T.unsafe(nil), Set)
5473
+
5443
5474
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5444
5475
  RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set)
5445
5476
 
@@ -5458,6 +5489,9 @@ RuboCop::AST::NodePattern::Sets::SET__FETCH = T.let(T.unsafe(nil), Set)
5458
5489
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5459
5490
  RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set)
5460
5491
 
5492
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5493
+ RuboCop::AST::NodePattern::Sets::SET__PUSH_APPEND = T.let(T.unsafe(nil), Set)
5494
+
5461
5495
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5462
5496
  RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set)
5463
5497
 
@@ -5515,7 +5549,7 @@ RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set)
5515
5549
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55
5516
5550
  RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String)
5517
5551
 
5518
- # Common functionality for primitive numeric nodes: `int`, `float`, ...
5552
+ # Common functionality for primitive numeric nodes: `int`, `float`, `rational`...
5519
5553
  #
5520
5554
  # source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6
5521
5555
  module RuboCop::AST::NumericNode
@@ -5852,42 +5886,42 @@ end
5852
5886
  # and other information such as disabled lines for cops.
5853
5887
  # It also provides a convenient way to access source lines.
5854
5888
  #
5855
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#11
5889
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#10
5856
5890
  class RuboCop::AST::ProcessedSource
5857
5891
  # @return [ProcessedSource] a new instance of ProcessedSource
5858
5892
  #
5859
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#29
5893
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#28
5860
5894
  def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
5861
5895
 
5862
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#73
5896
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#72
5863
5897
  def [](*args); end
5864
5898
 
5865
5899
  # Returns the value of attribute ast.
5866
5900
  #
5867
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5901
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5868
5902
  def ast; end
5869
5903
 
5870
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#51
5904
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#50
5871
5905
  def ast_with_comments; end
5872
5906
 
5873
5907
  # @return [Boolean]
5874
5908
  #
5875
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
5909
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#111
5876
5910
  def blank?; end
5877
5911
 
5878
5912
  # Returns the value of attribute buffer.
5879
5913
  #
5880
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5914
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5881
5915
  def buffer; end
5882
5916
 
5883
5917
  # Raw source checksum for tracking infinite loops.
5884
5918
  #
5885
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84
5919
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#83
5886
5920
  def checksum; end
5887
5921
 
5888
5922
  # @return [Comment, nil] the comment at that line, if any.
5889
5923
  #
5890
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
5924
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#116
5891
5925
  def comment_at_line(line); end
5892
5926
 
5893
5927
  # Consider using `each_comment_in_lines` instead
@@ -5895,181 +5929,181 @@ class RuboCop::AST::ProcessedSource
5895
5929
  # @deprecated use contains_comment?
5896
5930
  # @return [Boolean] if any of the lines in the given `source_range` has a comment.
5897
5931
  #
5898
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
5932
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
5899
5933
  def commented?(source_range); end
5900
5934
 
5901
5935
  # Returns the value of attribute comments.
5902
5936
  #
5903
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5937
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5904
5938
  def comments; end
5905
5939
 
5906
5940
  # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
5907
5941
  #
5908
5942
  # @deprecated Use `each_comment_in_lines`
5909
5943
  #
5910
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
5944
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#146
5911
5945
  def comments_before_line(line); end
5912
5946
 
5913
5947
  # Consider using `each_comment_in_lines` instead
5914
5948
  #
5915
5949
  # @return [Boolean] if any of the lines in the given `source_range` has a comment.
5916
5950
  #
5917
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
5951
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
5918
5952
  def contains_comment?(source_range); end
5919
5953
 
5920
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161
5954
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#160
5921
5955
  def current_line(token); end
5922
5956
 
5923
5957
  # Returns the value of attribute diagnostics.
5924
5958
  #
5925
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5959
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5926
5960
  def diagnostics; end
5927
5961
 
5928
5962
  # @deprecated Use `comments.each`
5929
5963
  #
5930
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89
5964
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#88
5931
5965
  def each_comment(&block); end
5932
5966
 
5933
5967
  # Enumerates on the comments contained with the given `line_range`
5934
5968
  #
5935
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#127
5969
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#126
5936
5970
  def each_comment_in_lines(line_range); end
5937
5971
 
5938
5972
  # @deprecated Use `tokens.each`
5939
5973
  #
5940
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#99
5974
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98
5941
5975
  def each_token(&block); end
5942
5976
 
5943
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#108
5977
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107
5944
5978
  def file_path; end
5945
5979
 
5946
5980
  # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
5947
5981
  #
5948
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94
5982
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#93
5949
5983
  def find_comment(&block); end
5950
5984
 
5951
5985
  # @deprecated Use `tokens.find`
5952
5986
  #
5953
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#104
5987
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#103
5954
5988
  def find_token(&block); end
5955
5989
 
5956
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#182
5990
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#181
5957
5991
  def first_token_of(range_or_node); end
5958
5992
 
5959
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#165
5993
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#164
5960
5994
  def following_line(token); end
5961
5995
 
5962
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#186
5996
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#185
5963
5997
  def last_token_of(range_or_node); end
5964
5998
 
5965
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#169
5999
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#168
5966
6000
  def line_indentation(line_number); end
5967
6001
 
5968
6002
  # @return [Boolean] if the given line number has a comment.
5969
6003
  #
5970
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#122
6004
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#121
5971
6005
  def line_with_comment?(line); end
5972
6006
 
5973
6007
  # Returns the source lines, line break characters removed, excluding a
5974
6008
  # possible __END__ and everything that comes after.
5975
6009
  #
5976
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#59
6010
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58
5977
6011
  def lines; end
5978
6012
 
5979
6013
  # Returns the value of attribute parser_engine.
5980
6014
  #
5981
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6015
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5982
6016
  def parser_engine; end
5983
6017
 
5984
6018
  # Returns the value of attribute parser_error.
5985
6019
  #
5986
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6020
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5987
6021
  def parser_error; end
5988
6022
 
5989
6023
  # Returns the value of attribute path.
5990
6024
  #
5991
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6025
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
5992
6026
  def path; end
5993
6027
 
5994
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
6028
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#156
5995
6029
  def preceding_line(token); end
5996
6030
 
5997
6031
  # Returns the value of attribute raw_source.
5998
6032
  #
5999
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6033
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
6000
6034
  def raw_source; end
6001
6035
 
6002
6036
  # Returns the value of attribute ruby_version.
6003
6037
  #
6004
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6038
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
6005
6039
  def ruby_version; end
6006
6040
 
6007
6041
  # The tokens list is always sorted by token position, except for cases when heredoc
6008
6042
  # is passed as a method argument. In this case tokens are interleaved by
6009
6043
  # heredoc contents' tokens.
6010
6044
  #
6011
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#193
6045
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#192
6012
6046
  def sorted_tokens; end
6013
6047
 
6014
6048
  # @return [Boolean]
6015
6049
  #
6016
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151
6050
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#150
6017
6051
  def start_with?(string); end
6018
6052
 
6019
6053
  # Returns the value of attribute tokens.
6020
6054
  #
6021
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
6055
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
6022
6056
  def tokens; end
6023
6057
 
6024
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176
6058
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#175
6025
6059
  def tokens_within(range_or_node); end
6026
6060
 
6027
6061
  # @return [Boolean]
6028
6062
  #
6029
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77
6063
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#76
6030
6064
  def valid_syntax?; end
6031
6065
 
6032
6066
  private
6033
6067
 
6034
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#200
6068
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#199
6035
6069
  def comment_index; end
6036
6070
 
6037
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#312
6071
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#309
6038
6072
  def create_parser(ruby_version, parser_engine); end
6039
6073
 
6040
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#328
6074
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#325
6041
6075
  def first_token_index(range_or_node); end
6042
6076
 
6043
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#333
6077
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#330
6044
6078
  def last_token_index(range_or_node); end
6045
6079
 
6046
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#206
6080
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#205
6047
6081
  def parse(source, ruby_version, parser_engine); end
6048
6082
 
6049
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#240
6083
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#238
6050
6084
  def parser_class(ruby_version, parser_engine); end
6051
6085
 
6052
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#338
6086
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#335
6053
6087
  def source_range(range_or_node); end
6054
6088
 
6055
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#223
6089
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#222
6056
6090
  def tokenize(parser); end
6057
6091
 
6058
6092
  class << self
6059
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#24
6093
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#23
6060
6094
  def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
6061
6095
  end
6062
6096
  end
6063
6097
 
6064
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
6098
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#14
6065
6099
  RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
6066
6100
 
6067
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
6101
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#17
6068
6102
  RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
6069
6103
 
6070
6104
  # @api private
6071
6105
  #
6072
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13
6106
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#12
6073
6107
  RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String)
6074
6108
 
6075
6109
  # A node extension for `irange` and `erange` nodes. This will be used in
@@ -6085,6 +6119,16 @@ class RuboCop::AST::RangeNode < ::RuboCop::AST::Node
6085
6119
  def end; end
6086
6120
  end
6087
6121
 
6122
+ # A node extension for `rational` nodes. This will be used in place of a plain
6123
+ # node when the builder constructs the AST, making its methods available to
6124
+ # all `rational` nodes within RuboCop.
6125
+ #
6126
+ # source://rubocop-ast//lib/rubocop/ast/node/rational_node.rb#8
6127
+ class RuboCop::AST::RationalNode < ::RuboCop::AST::Node
6128
+ include ::RuboCop::AST::BasicLiteralNode
6129
+ include ::RuboCop::AST::NumericNode
6130
+ end
6131
+
6088
6132
  # A node extension for `regexp` nodes. This will be used in place of a plain
6089
6133
  # node when the builder constructs the AST, making its methods available
6090
6134
  # to all `regexp` nodes within RuboCop.