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