packwerk 3.2.2 → 3.2.3

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/packwerk/application_validator.rb +2 -1
  3. data/lib/packwerk/graph.rb +15 -56
  4. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +1 -2
  5. data/lib/packwerk/run_context.rb +5 -0
  6. data/lib/packwerk/validators/dependency_validator.rb +5 -4
  7. data/lib/packwerk/version.rb +1 -1
  8. data/sorbet/rbi/gems/{actionpack@7.0.3.1.rbi → actionpack@7.0.8.7.rbi} +1338 -1227
  9. data/sorbet/rbi/gems/{actionview@7.0.3.1.rbi → actionview@7.0.8.7.rbi} +548 -503
  10. data/sorbet/rbi/gems/{activesupport@7.0.3.1.rbi → activesupport@7.0.8.7.rbi} +714 -635
  11. data/sorbet/rbi/gems/{better_html@2.0.1.rbi → better_html@2.1.1.rbi} +21 -21
  12. data/sorbet/rbi/gems/{concurrent-ruby@1.1.10.rbi → concurrent-ruby@1.3.5.rbi} +1390 -1366
  13. data/sorbet/rbi/gems/{constant_resolver@0.2.0.rbi → constant_resolver@0.3.0.rbi} +22 -13
  14. data/sorbet/rbi/gems/{erubi@1.11.0.rbi → erubi@1.13.1.rbi} +28 -17
  15. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.14.7.rbi} +234 -172
  16. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.7.2.rbi} +94 -74
  17. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  18. data/sorbet/rbi/gems/{loofah@2.18.0.rbi → loofah@2.24.0.rbi} +470 -243
  19. data/sorbet/rbi/gems/{minitest@5.16.2.rbi → minitest@5.25.4.rbi} +577 -472
  20. data/sorbet/rbi/gems/{mocha@1.14.0.rbi → mocha@2.5.0.rbi} +468 -684
  21. data/sorbet/rbi/gems/{nokogiri@1.15.3.rbi → nokogiri@1.18.4.rbi} +1756 -869
  22. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
  23. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +36 -36
  24. data/sorbet/rbi/gems/{rack-test@2.0.2.rbi → rack-test@2.2.0.rbi} +87 -114
  25. data/sorbet/rbi/gems/{rack@2.2.4.rbi → rack@2.2.13.rbi} +243 -195
  26. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +754 -0
  27. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +764 -0
  28. data/sorbet/rbi/gems/{railties@7.0.3.1.rbi → railties@7.0.8.7.rbi} +146 -140
  29. data/sorbet/rbi/gems/{regexp_parser@2.5.0.rbi → regexp_parser@2.9.2.rbi} +947 -542
  30. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.3.9.rbi} +452 -312
  31. data/sorbet/rbi/gems/{rubocop-ast@1.21.0.rbi → rubocop-ast@1.31.3.rbi} +717 -588
  32. data/sorbet/rbi/gems/{rubocop@1.34.1.rbi → rubocop@1.64.1.rbi} +10916 -4406
  33. data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +359 -281
  34. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  35. data/sorbet/rbi/gems/{tzinfo@2.0.5.rbi → tzinfo@2.0.6.rbi} +144 -141
  36. data/sorbet/rbi/gems/{unicode-display_width@2.2.0.rbi → unicode-display_width@2.5.0.rbi} +24 -7
  37. metadata +36 -41
  38. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +0 -8
  39. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  40. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -455
  41. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -542
  42. data/sorbet/rbi/gems/ruby-lsp@0.2.3.rbi +0 -11
  43. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +0 -8
  44. /data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +0 -0
  45. /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
@@ -275,7 +275,7 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
275
275
  #
276
276
  # @return [Array<Node>]
277
277
  #
278
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#42
278
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#60
279
279
  def argument_list; end
280
280
 
281
281
  # The arguments of this block.
@@ -285,63 +285,81 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
285
285
  #
286
286
  # @return [Array<Node>]
287
287
  #
288
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#30
288
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#48
289
289
  def arguments; end
290
290
 
291
291
  # Checks whether this block takes any arguments.
292
292
  #
293
293
  # @return [Boolean] whether this `block` node takes any arguments
294
294
  #
295
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#67
295
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#85
296
296
  def arguments?; end
297
297
 
298
298
  # The body of this block.
299
299
  #
300
300
  # @return [Node, nil] the body of the `block` node or `nil`
301
301
  #
302
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#53
302
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#71
303
303
  def body; end
304
304
 
305
305
  # Checks whether the `block` literal is delimited by curly braces.
306
306
  #
307
307
  # @return [Boolean] whether the `block` literal is enclosed in braces
308
308
  #
309
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#74
309
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#92
310
310
  def braces?; end
311
311
 
312
312
  # The closing delimiter for this `block` literal.
313
313
  #
314
314
  # @return [String] the closing delimiter for the `block` literal
315
315
  #
316
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#102
316
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#120
317
317
  def closing_delimiter; end
318
318
 
319
319
  # The delimiters for this `block` literal.
320
320
  #
321
321
  # @return [Array<String>] the delimiters for the `block` literal
322
322
  #
323
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#88
323
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#106
324
324
  def delimiters; end
325
325
 
326
+ # A shorthand for getting the first argument of this block.
327
+ # Equivalent to `arguments.first`.
328
+ #
329
+ # @return [Node, nil] the first argument of this block,
330
+ # or `nil` if there are no arguments
331
+ #
332
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#29
333
+ def first_argument; end
334
+
326
335
  # Checks whether the `block` literal is delimited by `do`-`end` keywords.
327
336
  #
328
337
  # @return [Boolean] whether the `block` literal is enclosed in `do`-`end`
329
338
  #
330
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#81
339
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#99
331
340
  def keywords?; end
332
341
 
333
342
  # Checks whether this `block` literal belongs to a lambda.
334
343
  #
335
344
  # @return [Boolean] whether the `block` literal belongs to a lambda
336
345
  #
337
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#125
346
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#143
338
347
  def lambda?; end
339
348
 
349
+ # A shorthand for getting the last argument of this block.
350
+ # Equivalent to `arguments.last`.
351
+ #
352
+ # @return [Node, nil] the last argument of this block,
353
+ # or `nil` if there are no arguments
354
+ #
355
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#38
356
+ def last_argument; end
357
+
340
358
  # The name of the dispatched method as a symbol.
341
359
  #
342
360
  # @return [Symbol] the name of the dispatched method
343
361
  #
344
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#60
362
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#78
345
363
  def method_name; end
346
364
 
347
365
  # Checks whether this is a multiline block. This is overridden here
@@ -349,14 +367,14 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
349
367
  #
350
368
  # @return [Boolean] whether the `block` literal is on a several lines
351
369
  #
352
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#118
370
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#136
353
371
  def multiline?; end
354
372
 
355
373
  # The opening delimiter for this `block` literal.
356
374
  #
357
375
  # @return [String] the opening delimiter for the `block` literal
358
376
  #
359
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#95
377
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#113
360
378
  def opening_delimiter; end
361
379
 
362
380
  # The `send` node associated with this block.
@@ -371,21 +389,21 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
371
389
  #
372
390
  # @return [Boolean] whether the `block` literal is on a single line
373
391
  #
374
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#110
392
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#128
375
393
  def single_line?; end
376
394
 
377
395
  # Checks whether this node body is a void context.
378
396
  #
379
397
  # @return [Boolean] whether the `block` node body is a void context
380
398
  #
381
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#132
399
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#150
382
400
  def void_context?; end
383
401
 
384
402
  private
385
403
 
386
404
  # Numbered arguments of this `numblock`.
387
405
  #
388
- # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#139
406
+ # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#157
389
407
  def numbered_arguments; end
390
408
  end
391
409
 
@@ -420,18 +438,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default
420
438
  #
421
439
  # @return [Node] the generated node
422
440
  #
423
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#97
441
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#98
424
442
  def n(type, children, source_map); end
425
443
 
426
444
  # TODO: Figure out what to do about literal encoding handling...
427
445
  # More details here https://github.com/whitequark/parser/issues/283
428
446
  #
429
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#103
447
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#104
430
448
  def string_value(token); end
431
449
 
432
450
  private
433
451
 
434
- # source://rubocop-ast//lib/rubocop/ast/builder.rb#109
452
+ # source://rubocop-ast//lib/rubocop/ast/builder.rb#110
435
453
  def node_klass(type); end
436
454
  end
437
455
 
@@ -1121,6 +1139,18 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
1121
1139
  def short_name; end
1122
1140
  end
1123
1141
 
1142
+ # A node extension for `csend` nodes. This will be used in place of a plain
1143
+ # node when the builder constructs the AST, making its methods available
1144
+ # to all `csend` nodes within RuboCop.
1145
+ #
1146
+ # source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#8
1147
+ class RuboCop::AST::CsendNode < ::RuboCop::AST::SendNode
1148
+ # @return [Boolean]
1149
+ #
1150
+ # source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#9
1151
+ def send_type?; end
1152
+ end
1153
+
1124
1154
  # A node extension for `def` nodes. This will be used in place of a plain
1125
1155
  # node when the builder constructs the AST, making its methods available
1126
1156
  # to all `def` nodes within RuboCop.
@@ -1219,7 +1249,7 @@ module RuboCop::AST::Descendence
1219
1249
  #
1220
1250
  # @return [Array<Node>] an array of descendant nodes
1221
1251
  #
1222
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#69
1252
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#72
1223
1253
  def descendants; end
1224
1254
 
1225
1255
  # Calls the given block for each child node.
@@ -1247,7 +1277,7 @@ module RuboCop::AST::Descendence
1247
1277
  # @return [Enumerator] if no block is given
1248
1278
  # @yieldparam node [Node] each descendant node
1249
1279
  #
1250
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#57
1280
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#60
1251
1281
  def each_descendant(*types, &block); end
1252
1282
 
1253
1283
  # Calls the given block for the receiver and each descendant node in
@@ -1264,12 +1294,12 @@ module RuboCop::AST::Descendence
1264
1294
  # @return [Enumerator] if no block is given
1265
1295
  # @yieldparam node [Node] each node
1266
1296
  #
1267
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#92
1297
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#95
1268
1298
  def each_node(*types, &block); end
1269
1299
 
1270
1300
  protected
1271
1301
 
1272
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#104
1302
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#107
1273
1303
  def visit_descendants(types, &block); end
1274
1304
  end
1275
1305
 
@@ -1313,8 +1343,8 @@ module RuboCop::AST::Ext::Range
1313
1343
  # :bar
1314
1344
  # ]
1315
1345
  #
1316
- # node.loc.begin.line_span # => 1..1
1317
- # node.loc.expression.line_span(exclude_end: true) # => 1...4
1346
+ # node.loc.begin.line_span # => 1..1
1347
+ # node.source_range.line_span(exclude_end: true) # => 1...4
1318
1348
  #
1319
1349
  # @return [Range] the range of line numbers for the node
1320
1350
  #
@@ -1719,7 +1749,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
1719
1749
  # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#80
1720
1750
  def modifier_form?; end
1721
1751
 
1722
- # Chacks whether the `if` node has nested `if` nodes in any of its
1752
+ # Checks whether the `if` node has nested `if` nodes in any of its
1723
1753
  # branches.
1724
1754
  #
1725
1755
  # @note This performs a shallow search.
@@ -1901,9 +1931,9 @@ class RuboCop::AST::IntNode < ::RuboCop::AST::Node
1901
1931
  include ::RuboCop::AST::NumericNode
1902
1932
  end
1903
1933
 
1904
- # A node extension for `kwsplat` nodes. This will be used in place of a
1905
- # plain node when the builder constructs the AST, making its methods
1906
- # available to all `kwsplat` nodes within RuboCop.
1934
+ # A node extension for `kwsplat` and `forwarded_kwrestarg` nodes. This will be used in
1935
+ # place of a plain node when the builder constructs the AST, making its methods available to
1936
+ # all `kwsplat` and `forwarded_kwrestarg` nodes within RuboCop.
1907
1937
  #
1908
1938
  # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#8
1909
1939
  class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node
@@ -1925,6 +1955,13 @@ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node
1925
1955
  # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#18
1926
1956
  def hash_rocket?; end
1927
1957
 
1958
+ # This provides `forwarded_kwrestarg` node to return true to be compatible with `kwsplat` node.
1959
+ #
1960
+ # @return [true]
1961
+ #
1962
+ # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#48
1963
+ def kwsplat_type?; end
1964
+
1928
1965
  # Custom destructuring method. This is used to normalize the branches
1929
1966
  # for `pair` and `kwsplat` nodes, to add duck typing to `hash` elements.
1930
1967
  #
@@ -2029,10 +2066,10 @@ module RuboCop::AST::MethodDispatchNode
2029
2066
  #
2030
2067
  # @return [Boolean] whether the dispatched method is an access modifier
2031
2068
  #
2032
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#53
2069
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#64
2033
2070
  def access_modifier?; end
2034
2071
 
2035
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#262
2072
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#273
2036
2073
  def adjacent_def_modifier?(param0 = T.unsafe(nil)); end
2037
2074
 
2038
2075
  # Checks whether this node is an arithmetic operation
@@ -2040,14 +2077,14 @@ module RuboCop::AST::MethodDispatchNode
2040
2077
  # @return [Boolean] whether the dispatched method is an arithmetic
2041
2078
  # operation
2042
2079
  #
2043
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#164
2080
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#175
2044
2081
  def arithmetic_operation?; end
2045
2082
 
2046
2083
  # Checks whether the dispatched method is a setter method.
2047
2084
  #
2048
2085
  # @return [Boolean] whether the dispatched method is a setter
2049
2086
  #
2050
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#96
2087
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107
2051
2088
  def assignment?; end
2052
2089
 
2053
2090
  # Checks whether the dispatched method is a bare access modifier that
@@ -2056,10 +2093,10 @@ module RuboCop::AST::MethodDispatchNode
2056
2093
  # @return [Boolean] whether the dispatched method is a bare
2057
2094
  # access modifier
2058
2095
  #
2059
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#62
2096
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#73
2060
2097
  def bare_access_modifier?; end
2061
2098
 
2062
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#267
2099
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#278
2063
2100
  def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
2064
2101
 
2065
2102
  # Checks whether this is a binary operation.
@@ -2067,16 +2104,16 @@ module RuboCop::AST::MethodDispatchNode
2067
2104
  # @example
2068
2105
  #
2069
2106
  # foo + bar
2070
- # @return [Bookean] whether this method is a binary operation
2107
+ # @return [Boolean] whether this method is a binary operation
2071
2108
  #
2072
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#237
2109
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#248
2073
2110
  def binary_operation?; end
2074
2111
 
2075
2112
  # Whether this method dispatch has an explicit block.
2076
2113
  #
2077
2114
  # @return [Boolean] whether the dispatched method has a block
2078
2115
  #
2079
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#156
2116
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#167
2080
2117
  def block_literal?; end
2081
2118
 
2082
2119
  # The `block` or `numblock` node associated with this method dispatch, if any.
@@ -2084,7 +2121,7 @@ module RuboCop::AST::MethodDispatchNode
2084
2121
  # @return [BlockNode, nil] the `block` or `numblock` node associated with this method
2085
2122
  # call or `nil`
2086
2123
  #
2087
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#35
2124
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46
2088
2125
  def block_node; end
2089
2126
 
2090
2127
  # Checks whether the name of the dispatched method matches the argument
@@ -2093,7 +2130,7 @@ module RuboCop::AST::MethodDispatchNode
2093
2130
  # @param name [Symbol, String] the method name to check for
2094
2131
  # @return [Boolean] whether the method name matches the argument
2095
2132
  #
2096
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#89
2133
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#100
2097
2134
  def command?(name); end
2098
2135
 
2099
2136
  # Checks whether the *explicit* receiver of this method dispatch is a
@@ -2102,7 +2139,7 @@ module RuboCop::AST::MethodDispatchNode
2102
2139
  # @return [Boolean] whether the receiver of this method dispatch
2103
2140
  # is a `const` node
2104
2141
  #
2105
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#141
2142
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#152
2106
2143
  def const_receiver?; end
2107
2144
 
2108
2145
  # Checks if this node is part of a chain of `def` or `defs` modifiers.
@@ -2114,7 +2151,7 @@ module RuboCop::AST::MethodDispatchNode
2114
2151
  # private def foo; end
2115
2152
  # @return [Node | nil] returns the `def|defs` node this is a modifier for,
2116
2153
  #
2117
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#188
2154
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#199
2118
2155
  def def_modifier(node = T.unsafe(nil)); end
2119
2156
 
2120
2157
  # Checks if this node is part of a chain of `def` or `defs` modifiers.
@@ -2126,7 +2163,7 @@ module RuboCop::AST::MethodDispatchNode
2126
2163
  # private def foo; end
2127
2164
  # @return [Boolean] whether the `def|defs` node is a modifier or not.
2128
2165
  #
2129
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#176
2166
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#187
2130
2167
  def def_modifier?(node = T.unsafe(nil)); end
2131
2168
 
2132
2169
  # Checks whether the dispatched method uses a dot to connect the
@@ -2137,7 +2174,7 @@ module RuboCop::AST::MethodDispatchNode
2137
2174
  #
2138
2175
  # @return [Boolean] whether the method was called with a connecting dot
2139
2176
  #
2140
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#108
2177
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#119
2141
2178
  def dot?; end
2142
2179
 
2143
2180
  # Checks whether the dispatched method uses a double colon to connect the
@@ -2145,7 +2182,7 @@ module RuboCop::AST::MethodDispatchNode
2145
2182
  #
2146
2183
  # @return [Boolean] whether the method was called with a connecting dot
2147
2184
  #
2148
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#116
2185
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#127
2149
2186
  def double_colon?; end
2150
2187
 
2151
2188
  # Checks whether the method dispatch is the implicit form of `#call`,
@@ -2153,10 +2190,10 @@ module RuboCop::AST::MethodDispatchNode
2153
2190
  #
2154
2191
  # @return [Boolean] whether the method is the implicit form of `#call`
2155
2192
  #
2156
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#149
2193
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#160
2157
2194
  def implicit_call?; end
2158
2195
 
2159
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#246
2196
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#257
2160
2197
  def in_macro_scope?(param0 = T.unsafe(nil)); end
2161
2198
 
2162
2199
  # Checks whether this is a lambda. Some versions of parser parses
@@ -2164,7 +2201,7 @@ module RuboCop::AST::MethodDispatchNode
2164
2201
  #
2165
2202
  # @return [Boolean] whether this method is a lambda
2166
2203
  #
2167
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#202
2204
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213
2168
2205
  def lambda?; end
2169
2206
 
2170
2207
  # Checks whether this is a lambda literal (stabby lambda.)
@@ -2174,7 +2211,7 @@ module RuboCop::AST::MethodDispatchNode
2174
2211
  # -> (foo) { bar }
2175
2212
  # @return [Boolean] whether this method is a lambda literal
2176
2213
  #
2177
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213
2214
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224
2178
2215
  def lambda_literal?; end
2179
2216
 
2180
2217
  # Checks whether the dispatched method is a macro method. A macro method
@@ -2184,7 +2221,7 @@ module RuboCop::AST::MethodDispatchNode
2184
2221
  # @note This does not include DSLs that use nested blocks, like RSpec
2185
2222
  # @return [Boolean] whether the dispatched method is a macro method
2186
2223
  #
2187
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46
2224
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#57
2188
2225
  def macro?; end
2189
2226
 
2190
2227
  # The name of the dispatched method as a symbol.
@@ -2200,10 +2237,10 @@ module RuboCop::AST::MethodDispatchNode
2200
2237
  # @return [Boolean] whether the dispatched method is a non-bare
2201
2238
  # access modifier
2202
2239
  #
2203
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#71
2240
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#82
2204
2241
  def non_bare_access_modifier?; end
2205
2242
 
2206
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#272
2243
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#283
2207
2244
  def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
2208
2245
 
2209
2246
  # The receiving node of the method dispatch.
@@ -2218,22 +2255,29 @@ module RuboCop::AST::MethodDispatchNode
2218
2255
  #
2219
2256
  # @return [Boolean] whether the method was called with a connecting dot
2220
2257
  #
2221
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#124
2258
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#135
2222
2259
  def safe_navigation?; end
2223
2260
 
2261
+ # The source range for the method name or keyword that dispatches this call.
2262
+ #
2263
+ # @return [Parser::Source::Range] the source range for the method name or keyword
2264
+ #
2265
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#34
2266
+ def selector; end
2267
+
2224
2268
  # Checks whether the *explicit* receiver of this method dispatch is
2225
2269
  # `self`.
2226
2270
  #
2227
2271
  # @return [Boolean] whether the receiver of this method dispatch is `self`
2228
2272
  #
2229
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#132
2273
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#143
2230
2274
  def self_receiver?; end
2231
2275
 
2232
2276
  # Checks whether the dispatched method is a setter method.
2233
2277
  #
2234
2278
  # @return [Boolean] whether the dispatched method is a setter
2235
2279
  #
2236
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#96
2280
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107
2237
2281
  def setter_method?; end
2238
2282
 
2239
2283
  # Checks whether the dispatched method is a bare `private` or `protected`
@@ -2242,7 +2286,7 @@ module RuboCop::AST::MethodDispatchNode
2242
2286
  # @return [Boolean] whether the dispatched method is a bare
2243
2287
  # `private` or `protected` access modifier
2244
2288
  #
2245
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#80
2289
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#91
2246
2290
  def special_modifier?; end
2247
2291
 
2248
2292
  # Checks whether this is a unary operation.
@@ -2252,7 +2296,7 @@ module RuboCop::AST::MethodDispatchNode
2252
2296
  # -foo
2253
2297
  # @return [Boolean] whether this method is a unary operation
2254
2298
  #
2255
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224
2299
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#235
2256
2300
  def unary_operation?; end
2257
2301
  end
2258
2302
 
@@ -2511,19 +2555,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2511
2555
  # @return [Node] a new instance of Node
2512
2556
  # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
2513
2557
  #
2514
- # source://rubocop-ast//lib/rubocop/ast/node.rb#88
2558
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#92
2515
2559
  def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
2516
2560
 
2517
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2561
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2518
2562
  def __ENCODING___type?; end
2519
2563
 
2520
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2564
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2521
2565
  def __FILE___type?; end
2522
2566
 
2523
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2567
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2524
2568
  def __LINE___type?; end
2525
2569
 
2526
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2570
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2527
2571
  def alias_type?; end
2528
2572
 
2529
2573
  # Returns an array of ancestor nodes.
@@ -2531,173 +2575,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2531
2575
  #
2532
2576
  # @return [Array<Node>] an array of ancestor nodes
2533
2577
  #
2534
- # source://rubocop-ast//lib/rubocop/ast/node.rb#237
2578
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#247
2535
2579
  def ancestors; end
2536
2580
 
2537
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2581
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2538
2582
  def and_asgn_type?; end
2539
2583
 
2540
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2584
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2541
2585
  def and_type?; end
2542
2586
 
2543
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2587
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2544
2588
  def arg_expr_type?; end
2545
2589
 
2546
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2590
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2547
2591
  def arg_type?; end
2548
2592
 
2549
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2593
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2550
2594
  def args_type?; end
2551
2595
 
2552
2596
  # @return [Boolean]
2553
2597
  #
2554
- # source://rubocop-ast//lib/rubocop/ast/node.rb#454
2598
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#464
2555
2599
  def argument?; end
2556
2600
 
2557
2601
  # @return [Boolean]
2558
2602
  #
2559
- # source://rubocop-ast//lib/rubocop/ast/node.rb#458
2603
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#468
2560
2604
  def argument_type?; end
2561
2605
 
2562
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2606
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2563
2607
  def array_pattern_type?; end
2564
2608
 
2565
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2609
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2566
2610
  def array_pattern_with_tail_type?; end
2567
2611
 
2568
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2612
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2569
2613
  def array_type?; end
2570
2614
 
2571
2615
  # @return [Boolean]
2572
2616
  #
2573
- # source://rubocop-ast//lib/rubocop/ast/node.rb#406
2617
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#416
2574
2618
  def assignment?; end
2575
2619
 
2576
2620
  # Some cops treat the shovel operator as a kind of assignment.
2577
2621
  #
2578
- # source://rubocop-ast//lib/rubocop/ast/node.rb#345
2622
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#355
2579
2623
  def assignment_or_similar?(param0 = T.unsafe(nil)); end
2580
2624
 
2581
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2625
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2582
2626
  def back_ref_type?; end
2583
2627
 
2584
2628
  # @return [Boolean]
2585
2629
  #
2586
- # source://rubocop-ast//lib/rubocop/ast/node.rb#410
2630
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#420
2587
2631
  def basic_conditional?; end
2588
2632
 
2589
2633
  # @return [Boolean]
2590
2634
  #
2591
- # source://rubocop-ast//lib/rubocop/ast/node.rb#353
2635
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#363
2592
2636
  def basic_literal?; end
2593
2637
 
2594
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2638
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2595
2639
  def begin_type?; end
2596
2640
 
2597
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2641
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2598
2642
  def block_pass_type?; end
2599
2643
 
2600
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2644
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2601
2645
  def block_type?; end
2602
2646
 
2603
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2647
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2604
2648
  def blockarg_expr_type?; end
2605
2649
 
2606
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2650
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2607
2651
  def blockarg_type?; end
2608
2652
 
2609
2653
  # @return [Boolean]
2610
2654
  #
2611
- # source://rubocop-ast//lib/rubocop/ast/node.rb#462
2655
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#472
2612
2656
  def boolean_type?; end
2613
2657
 
2614
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2658
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2615
2659
  def break_type?; end
2616
2660
 
2617
2661
  # @return [Boolean]
2618
2662
  #
2619
- # source://rubocop-ast//lib/rubocop/ast/node.rb#446
2663
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#456
2620
2664
  def call_type?; end
2621
2665
 
2622
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2666
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2623
2667
  def case_match_type?; end
2624
2668
 
2625
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2669
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2626
2670
  def case_type?; end
2627
2671
 
2628
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2672
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2629
2673
  def casgn_type?; end
2630
2674
 
2631
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2675
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2632
2676
  def cbase_type?; end
2633
2677
 
2634
2678
  # @return [Boolean]
2635
2679
  #
2636
- # source://rubocop-ast//lib/rubocop/ast/node.rb#450
2680
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#460
2637
2681
  def chained?; end
2638
2682
 
2639
- # source://rubocop-ast//lib/rubocop/ast/node.rb#502
2683
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#512
2640
2684
  def class_constructor?(param0 = T.unsafe(nil)); end
2641
2685
 
2642
- # source://rubocop-ast//lib/rubocop/ast/node.rb#514
2686
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#530
2643
2687
  def class_definition?(param0 = T.unsafe(nil)); end
2644
2688
 
2645
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2689
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2646
2690
  def class_type?; end
2647
2691
 
2648
- # source://rubocop-ast//lib/rubocop/ast/node.rb#132
2692
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#144
2649
2693
  def complete!; end
2650
2694
 
2651
2695
  # @return [Boolean]
2652
2696
  #
2653
- # source://rubocop-ast//lib/rubocop/ast/node.rb#137
2697
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#149
2654
2698
  def complete?; end
2655
2699
 
2656
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2700
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2657
2701
  def complex_type?; end
2658
2702
 
2659
2703
  # @return [Boolean]
2660
2704
  #
2661
- # source://rubocop-ast//lib/rubocop/ast/node.rb#414
2705
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#424
2662
2706
  def conditional?; end
2663
2707
 
2664
- # source://rubocop-ast//lib/rubocop/ast/node.rb#283
2708
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#293
2665
2709
  def const_name; end
2666
2710
 
2667
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2711
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2668
2712
  def const_pattern_type?; end
2669
2713
 
2670
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2714
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2671
2715
  def const_type?; end
2672
2716
 
2673
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2717
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2674
2718
  def csend_type?; end
2675
2719
 
2676
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2720
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2677
2721
  def cvar_type?; end
2678
2722
 
2679
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2723
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2680
2724
  def cvasgn_type?; end
2681
2725
 
2682
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2726
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2683
2727
  def def_type?; end
2684
2728
 
2685
- # source://rubocop-ast//lib/rubocop/ast/node.rb#304
2729
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#314
2686
2730
  def defined_module; end
2687
2731
 
2688
- # source://rubocop-ast//lib/rubocop/ast/node.rb#309
2732
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#319
2689
2733
  def defined_module_name; end
2690
2734
 
2691
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2735
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2692
2736
  def defined_type?; end
2693
2737
 
2694
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2738
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2695
2739
  def defs_type?; end
2696
2740
 
2697
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2741
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2698
2742
  def dstr_type?; end
2699
2743
 
2700
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2744
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2701
2745
  def dsym_type?; end
2702
2746
 
2703
2747
  # Calls the given block for each ancestor node from parent to root.
@@ -2710,163 +2754,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2710
2754
  # @return [Enumerator] if no block is given
2711
2755
  # @yieldparam node [Node] each ancestor node
2712
2756
  #
2713
- # source://rubocop-ast//lib/rubocop/ast/node.rb#225
2757
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#235
2714
2758
  def each_ancestor(*types, &block); end
2715
2759
 
2716
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2760
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2717
2761
  def eflipflop_type?; end
2718
2762
 
2719
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2763
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2720
2764
  def empty_else_type?; end
2721
2765
 
2722
2766
  # @return [Boolean]
2723
2767
  #
2724
- # source://rubocop-ast//lib/rubocop/ast/node.rb#339
2768
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#349
2725
2769
  def empty_source?; end
2726
2770
 
2727
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2771
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2728
2772
  def ensure_type?; end
2729
2773
 
2730
2774
  # @return [Boolean]
2731
2775
  #
2732
- # source://rubocop-ast//lib/rubocop/ast/node.rb#398
2776
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#408
2733
2777
  def equals_asgn?; end
2734
2778
 
2735
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2779
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2736
2780
  def erange_type?; end
2737
2781
 
2738
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2782
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2739
2783
  def false_type?; end
2740
2784
 
2741
2785
  # @return [Boolean]
2742
2786
  #
2743
- # source://rubocop-ast//lib/rubocop/ast/node.rb#361
2787
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#371
2744
2788
  def falsey_literal?; end
2745
2789
 
2746
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2790
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2747
2791
  def find_pattern_type?; end
2748
2792
 
2749
- # source://rubocop-ast//lib/rubocop/ast/node.rb#251
2793
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#261
2750
2794
  def first_line; end
2751
2795
 
2752
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2796
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2753
2797
  def float_type?; end
2754
2798
 
2755
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2799
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2756
2800
  def for_type?; end
2757
2801
 
2758
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2802
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2759
2803
  def forward_arg_type?; end
2760
2804
 
2761
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2805
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2762
2806
  def forward_args_type?; end
2763
2807
 
2764
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2808
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2765
2809
  def forwarded_args_type?; end
2766
2810
 
2767
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2811
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2768
2812
  def forwarded_kwrestarg_type?; end
2769
2813
 
2770
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2814
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2771
2815
  def forwarded_restarg_type?; end
2772
2816
 
2773
- # source://rubocop-ast//lib/rubocop/ast/node.rb#499
2817
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#509
2774
2818
  def global_const?(param0 = T.unsafe(nil), param1); end
2775
2819
 
2776
2820
  # @return [Boolean]
2777
2821
  #
2778
- # source://rubocop-ast//lib/rubocop/ast/node.rb#474
2822
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#484
2779
2823
  def guard_clause?; end
2780
2824
 
2781
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2825
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2782
2826
  def gvar_type?; end
2783
2827
 
2784
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2828
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2785
2829
  def gvasgn_type?; end
2786
2830
 
2787
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2831
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2788
2832
  def hash_pattern_type?; end
2789
2833
 
2790
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2834
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2791
2835
  def hash_type?; end
2792
2836
 
2793
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2837
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2794
2838
  def ident_type?; end
2795
2839
 
2796
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2840
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2797
2841
  def if_guard_type?; end
2798
2842
 
2799
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2843
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2800
2844
  def if_type?; end
2801
2845
 
2802
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2846
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2803
2847
  def iflipflop_type?; end
2804
2848
 
2805
2849
  # @return [Boolean]
2806
2850
  #
2807
- # source://rubocop-ast//lib/rubocop/ast/node.rb#369
2851
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#379
2808
2852
  def immutable_literal?; end
2809
2853
 
2810
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2854
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2811
2855
  def in_match_type?; end
2812
2856
 
2813
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2857
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2814
2858
  def in_pattern_type?; end
2815
2859
 
2816
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2860
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2817
2861
  def index_type?; end
2818
2862
 
2819
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2863
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2820
2864
  def indexasgn_type?; end
2821
2865
 
2822
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2866
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2823
2867
  def int_type?; end
2824
2868
 
2825
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2869
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2826
2870
  def irange_type?; end
2827
2871
 
2828
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2872
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2829
2873
  def ivar_type?; end
2830
2874
 
2831
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2875
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2832
2876
  def ivasgn_type?; end
2833
2877
 
2834
2878
  # @return [Boolean]
2835
2879
  #
2836
- # source://rubocop-ast//lib/rubocop/ast/node.rb#427
2880
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#437
2837
2881
  def keyword?; end
2838
2882
 
2839
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2883
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2840
2884
  def kwarg_type?; end
2841
2885
 
2842
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2886
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2843
2887
  def kwargs_type?; end
2844
2888
 
2845
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2889
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2846
2890
  def kwbegin_type?; end
2847
2891
 
2848
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2892
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2849
2893
  def kwnilarg_type?; end
2850
2894
 
2851
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2895
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2852
2896
  def kwoptarg_type?; end
2853
2897
 
2854
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2898
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2855
2899
  def kwrestarg_type?; end
2856
2900
 
2857
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2901
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2858
2902
  def kwsplat_type?; end
2859
2903
 
2860
- # source://rubocop-ast//lib/rubocop/ast/node.rb#493
2904
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#503
2861
2905
  def lambda?(param0 = T.unsafe(nil)); end
2862
2906
 
2863
- # source://rubocop-ast//lib/rubocop/ast/node.rb#496
2907
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#506
2864
2908
  def lambda_or_proc?(param0 = T.unsafe(nil)); end
2865
2909
 
2866
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2910
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2867
2911
  def lambda_type?; end
2868
2912
 
2869
- # source://rubocop-ast//lib/rubocop/ast/node.rb#255
2913
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#265
2870
2914
  def last_line; end
2871
2915
 
2872
2916
  # Use is discouraged, this is a potentially slow method and can lead
@@ -2874,7 +2918,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2874
2918
  #
2875
2919
  # @return [Node, nil] the left (aka previous) sibling
2876
2920
  #
2877
- # source://rubocop-ast//lib/rubocop/ast/node.rb#175
2921
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#187
2878
2922
  def left_sibling; end
2879
2923
 
2880
2924
  # Use is discouraged, this is a potentially slow method and can lead
@@ -2882,94 +2926,94 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2882
2926
  #
2883
2927
  # @return [Array<Node>] the left (aka previous) siblings
2884
2928
  #
2885
- # source://rubocop-ast//lib/rubocop/ast/node.rb#185
2929
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#197
2886
2930
  def left_siblings; end
2887
2931
 
2888
- # source://rubocop-ast//lib/rubocop/ast/node.rb#259
2932
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#269
2889
2933
  def line_count; end
2890
2934
 
2891
2935
  # @return [Boolean]
2892
2936
  #
2893
- # source://rubocop-ast//lib/rubocop/ast/node.rb#349
2937
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#359
2894
2938
  def literal?; end
2895
2939
 
2896
2940
  # NOTE: `loop { }` is a normal method call and thus not a loop keyword.
2897
2941
  #
2898
2942
  # @return [Boolean]
2899
2943
  #
2900
- # source://rubocop-ast//lib/rubocop/ast/node.rb#423
2944
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#433
2901
2945
  def loop_keyword?; end
2902
2946
 
2903
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2947
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2904
2948
  def lvar_type?; end
2905
2949
 
2906
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2950
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2907
2951
  def lvasgn_type?; end
2908
2952
 
2909
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2953
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2910
2954
  def masgn_type?; end
2911
2955
 
2912
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2956
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2913
2957
  def match_alt_type?; end
2914
2958
 
2915
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2959
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2916
2960
  def match_as_type?; end
2917
2961
 
2918
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2962
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2919
2963
  def match_current_line_type?; end
2920
2964
 
2921
- # source://rubocop-ast//lib/rubocop/ast/node.rb#481
2965
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#491
2922
2966
  def match_guard_clause?(param0 = T.unsafe(nil)); end
2923
2967
 
2924
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2968
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2925
2969
  def match_nil_pattern_type?; end
2926
2970
 
2927
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2971
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2928
2972
  def match_pattern_p_type?; end
2929
2973
 
2930
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2974
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2931
2975
  def match_pattern_type?; end
2932
2976
 
2933
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2977
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2934
2978
  def match_rest_type?; end
2935
2979
 
2936
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2980
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2937
2981
  def match_var_type?; end
2938
2982
 
2939
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2983
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2940
2984
  def match_with_lvasgn_type?; end
2941
2985
 
2942
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2986
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2943
2987
  def match_with_trailing_comma_type?; end
2944
2988
 
2945
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2989
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2946
2990
  def mlhs_type?; end
2947
2991
 
2948
- # source://rubocop-ast//lib/rubocop/ast/node.rb#521
2992
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#537
2949
2993
  def module_definition?(param0 = T.unsafe(nil)); end
2950
2994
 
2951
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
2995
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2952
2996
  def module_type?; end
2953
2997
 
2954
2998
  # Predicates
2955
2999
  #
2956
3000
  # @return [Boolean]
2957
3001
  #
2958
- # source://rubocop-ast//lib/rubocop/ast/node.rb#331
3002
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#341
2959
3003
  def multiline?; end
2960
3004
 
2961
3005
  # @return [Boolean]
2962
3006
  #
2963
- # source://rubocop-ast//lib/rubocop/ast/node.rb#365
3007
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#375
2964
3008
  def mutable_literal?; end
2965
3009
 
2966
- # source://rubocop-ast//lib/rubocop/ast/node.rb#655
3010
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#671
2967
3011
  def new_class_or_module_block?(param0 = T.unsafe(nil)); end
2968
3012
 
2969
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3013
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2970
3014
  def next_type?; end
2971
3015
 
2972
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3016
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2973
3017
  def nil_type?; end
2974
3018
 
2975
3019
  # Common destructuring method. This can be used to normalize
@@ -2979,98 +3023,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node
2979
3023
  #
2980
3024
  # @return [Array<Node>] the different parts of the ndde
2981
3025
  #
2982
- # source://rubocop-ast//lib/rubocop/ast/node.rb#206
3026
+ # source://ast/2.4.2/lib/ast/node.rb#56
2983
3027
  def node_parts; end
2984
3028
 
2985
- # source://rubocop-ast//lib/rubocop/ast/node.rb#265
3029
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#275
2986
3030
  def nonempty_line_count; end
2987
3031
 
2988
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3032
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2989
3033
  def not_type?; end
2990
3034
 
2991
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3035
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2992
3036
  def nth_ref_type?; end
2993
3037
 
2994
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3038
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2995
3039
  def numargs_type?; end
2996
3040
 
2997
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3041
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
2998
3042
  def numblock_type?; end
2999
3043
 
3000
3044
  # @return [Boolean]
3001
3045
  #
3002
- # source://rubocop-ast//lib/rubocop/ast/node.rb#466
3046
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#476
3003
3047
  def numeric_type?; end
3004
3048
 
3005
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3049
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3006
3050
  def objc_kwarg_type?; end
3007
3051
 
3008
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3052
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3009
3053
  def objc_restarg_type?; end
3010
3054
 
3011
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3055
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3012
3056
  def objc_varargs_type?; end
3013
3057
 
3014
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3058
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3015
3059
  def op_asgn_type?; end
3016
3060
 
3017
3061
  # @return [Boolean]
3018
3062
  #
3019
- # source://rubocop-ast//lib/rubocop/ast/node.rb#438
3063
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#448
3020
3064
  def operator_keyword?; end
3021
3065
 
3022
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3066
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3023
3067
  def optarg_type?; end
3024
3068
 
3025
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3069
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3026
3070
  def or_asgn_type?; end
3027
3071
 
3028
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3072
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3029
3073
  def or_type?; end
3030
3074
 
3031
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3075
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3032
3076
  def pair_type?; end
3033
3077
 
3034
3078
  # Returns the parent node, or `nil` if the receiver is a root node.
3035
3079
  #
3036
3080
  # @return [Node, nil] the parent node or `nil`
3037
3081
  #
3038
- # source://rubocop-ast//lib/rubocop/ast/node.rb#114
3082
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#126
3039
3083
  def parent; end
3040
3084
 
3041
3085
  # @return [Boolean]
3042
3086
  #
3043
- # source://rubocop-ast//lib/rubocop/ast/node.rb#123
3087
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#135
3044
3088
  def parent?; end
3045
3089
 
3046
3090
  # Searching the AST
3047
3091
  #
3048
- # source://rubocop-ast//lib/rubocop/ast/node.rb#315
3092
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#325
3049
3093
  def parent_module_name; end
3050
3094
 
3051
3095
  # @return [Boolean]
3052
3096
  #
3053
- # source://rubocop-ast//lib/rubocop/ast/node.rb#442
3097
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#452
3054
3098
  def parenthesized_call?; end
3055
3099
 
3056
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3100
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3057
3101
  def pin_type?; end
3058
3102
 
3059
3103
  # @return [Boolean]
3060
3104
  #
3061
- # source://rubocop-ast//lib/rubocop/ast/node.rb#418
3105
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#428
3062
3106
  def post_condition_loop?; end
3063
3107
 
3064
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3108
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3065
3109
  def postexe_type?; end
3066
3110
 
3067
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3111
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3068
3112
  def preexe_type?; end
3069
3113
 
3070
- # source://rubocop-ast//lib/rubocop/ast/node.rb#486
3114
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#496
3071
3115
  def proc?(param0 = T.unsafe(nil)); end
3072
3116
 
3073
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3117
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3074
3118
  def procarg0_type?; end
3075
3119
 
3076
3120
  # Some expressions are evaluated for their value, some for their side
@@ -3083,56 +3127,56 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3083
3127
  #
3084
3128
  # @return [Boolean]
3085
3129
  #
3086
- # source://rubocop-ast//lib/rubocop/ast/node.rb#566
3130
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#582
3087
3131
  def pure?; end
3088
3132
 
3089
3133
  # @return [Boolean]
3090
3134
  #
3091
- # source://rubocop-ast//lib/rubocop/ast/node.rb#470
3135
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#480
3092
3136
  def range_type?; end
3093
3137
 
3094
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3138
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3095
3139
  def rational_type?; end
3096
3140
 
3097
- # source://rubocop-ast//lib/rubocop/ast/node.rb#276
3141
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#286
3098
3142
  def receiver(param0 = T.unsafe(nil)); end
3099
3143
 
3100
- # source://rubocop-ast//lib/rubocop/ast/node.rb#376
3144
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#386
3101
3145
  def recursive_basic_literal?; end
3102
3146
 
3103
- # source://rubocop-ast//lib/rubocop/ast/node.rb#376
3147
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#386
3104
3148
  def recursive_literal?; end
3105
3149
 
3106
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3150
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3107
3151
  def redo_type?; end
3108
3152
 
3109
3153
  # @return [Boolean]
3110
3154
  #
3111
- # source://rubocop-ast//lib/rubocop/ast/node.rb#394
3155
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#404
3112
3156
  def reference?; end
3113
3157
 
3114
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3158
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3115
3159
  def regexp_type?; end
3116
3160
 
3117
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3161
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3118
3162
  def regopt_type?; end
3119
3163
 
3120
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3164
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3121
3165
  def resbody_type?; end
3122
3166
 
3123
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3167
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3124
3168
  def rescue_type?; end
3125
3169
 
3126
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3170
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3127
3171
  def restarg_expr_type?; end
3128
3172
 
3129
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3173
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3130
3174
  def restarg_type?; end
3131
3175
 
3132
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3176
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3133
3177
  def retry_type?; end
3134
3178
 
3135
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3179
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3136
3180
  def return_type?; end
3137
3181
 
3138
3182
  # Use is discouraged, this is a potentially slow method and can lead
@@ -3140,7 +3184,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3140
3184
  #
3141
3185
  # @return [Node, nil] the right (aka next) sibling
3142
3186
  #
3143
- # source://rubocop-ast//lib/rubocop/ast/node.rb#166
3187
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#178
3144
3188
  def right_sibling; end
3145
3189
 
3146
3190
  # Use is discouraged, this is a potentially slow method and can lead
@@ -3148,29 +3192,34 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3148
3192
  #
3149
3193
  # @return [Array<Node>] the right (aka next) siblings
3150
3194
  #
3151
- # source://rubocop-ast//lib/rubocop/ast/node.rb#194
3195
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#206
3152
3196
  def right_siblings; end
3153
3197
 
3154
3198
  # @return [Boolean]
3155
3199
  #
3156
- # source://rubocop-ast//lib/rubocop/ast/node.rb#128
3200
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#140
3157
3201
  def root?; end
3158
3202
 
3159
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3203
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3160
3204
  def sclass_type?; end
3161
3205
 
3162
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3206
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3163
3207
  def self_type?; end
3164
3208
 
3165
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3209
+ # Most nodes are of 'send' type, so this method is defined
3210
+ # separately to make this check as fast as possible.
3211
+ #
3212
+ # @return [Boolean]
3213
+ #
3214
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#119
3166
3215
  def send_type?; end
3167
3216
 
3168
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3217
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3169
3218
  def shadowarg_type?; end
3170
3219
 
3171
3220
  # @return [Boolean]
3172
3221
  #
3173
- # source://rubocop-ast//lib/rubocop/ast/node.rb#402
3222
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#412
3174
3223
  def shorthand_asgn?; end
3175
3224
 
3176
3225
  # Returns the index of the receiver node in its siblings. (Sibling index
@@ -3179,70 +3228,70 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3179
3228
  #
3180
3229
  # @return [Integer, nil] the index of the receiver node in its siblings
3181
3230
  #
3182
- # source://rubocop-ast//lib/rubocop/ast/node.rb#159
3231
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#171
3183
3232
  def sibling_index; end
3184
3233
 
3185
3234
  # @return [Boolean]
3186
3235
  #
3187
- # source://rubocop-ast//lib/rubocop/ast/node.rb#335
3236
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#345
3188
3237
  def single_line?; end
3189
3238
 
3190
3239
  # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
3191
3240
  #
3192
3241
  # @return [String, nil]
3193
3242
  #
3194
- # source://rubocop-ast//lib/rubocop/ast/node.rb#243
3243
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#253
3195
3244
  def source; end
3196
3245
 
3197
- # source://rubocop-ast//lib/rubocop/ast/node.rb#269
3246
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#279
3198
3247
  def source_length; end
3199
3248
 
3200
- # source://rubocop-ast//lib/rubocop/ast/node.rb#247
3249
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#257
3201
3250
  def source_range; end
3202
3251
 
3203
3252
  # @return [Boolean]
3204
3253
  #
3205
- # source://rubocop-ast//lib/rubocop/ast/node.rb#434
3254
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#444
3206
3255
  def special_keyword?; end
3207
3256
 
3208
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3257
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3209
3258
  def splat_type?; end
3210
3259
 
3211
- # source://rubocop-ast//lib/rubocop/ast/node.rb#281
3260
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#291
3212
3261
  def str_content(param0 = T.unsafe(nil)); end
3213
3262
 
3214
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3263
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3215
3264
  def str_type?; end
3216
3265
 
3217
3266
  # @deprecated Use `:class_constructor?`
3218
3267
  #
3219
- # source://rubocop-ast//lib/rubocop/ast/node.rb#509
3268
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#525
3220
3269
  def struct_constructor?(param0 = T.unsafe(nil)); end
3221
3270
 
3222
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3271
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3223
3272
  def super_type?; end
3224
3273
 
3225
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3274
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3226
3275
  def sym_type?; end
3227
3276
 
3228
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3277
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3229
3278
  def true_type?; end
3230
3279
 
3231
3280
  # @return [Boolean]
3232
3281
  #
3233
- # source://rubocop-ast//lib/rubocop/ast/node.rb#357
3282
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#367
3234
3283
  def truthy_literal?; end
3235
3284
 
3236
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3285
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3237
3286
  def undef_type?; end
3238
3287
 
3239
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3288
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3240
3289
  def unless_guard_type?; end
3241
3290
 
3242
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3291
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3243
3292
  def until_post_type?; end
3244
3293
 
3245
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3294
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3246
3295
  def until_type?; end
3247
3296
 
3248
3297
  # Override `AST::Node#updated` so that `AST::Processor` does not try to
@@ -3251,7 +3300,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3251
3300
  # identical subtrees. Rather, the entire AST must be copied any time any
3252
3301
  # part of it is changed.
3253
3302
  #
3254
- # source://rubocop-ast//lib/rubocop/ast/node.rb#148
3303
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#160
3255
3304
  def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
3256
3305
 
3257
3306
  # Some expressions are evaluated for their value, some for their side
@@ -3265,72 +3314,72 @@ class RuboCop::AST::Node < ::Parser::AST::Node
3265
3314
  #
3266
3315
  # @return [Boolean]
3267
3316
  #
3268
- # source://rubocop-ast//lib/rubocop/ast/node.rb#535
3317
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#551
3269
3318
  def value_used?; end
3270
3319
 
3271
3320
  # @return [Boolean]
3272
3321
  #
3273
- # source://rubocop-ast//lib/rubocop/ast/node.rb#390
3322
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#400
3274
3323
  def variable?; end
3275
3324
 
3276
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3325
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3277
3326
  def when_type?; end
3278
3327
 
3279
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3328
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3280
3329
  def while_post_type?; end
3281
3330
 
3282
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3331
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3283
3332
  def while_type?; end
3284
3333
 
3285
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3334
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3286
3335
  def xstr_type?; end
3287
3336
 
3288
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3337
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3289
3338
  def yield_type?; end
3290
3339
 
3291
- # source://rubocop-ast//lib/rubocop/ast/node.rb#106
3340
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#111
3292
3341
  def zsuper_type?; end
3293
3342
 
3294
3343
  protected
3295
3344
 
3296
- # source://rubocop-ast//lib/rubocop/ast/node.rb#118
3345
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#130
3297
3346
  def parent=(node); end
3298
3347
 
3299
3348
  private
3300
3349
 
3301
3350
  # @return [Boolean]
3302
3351
  #
3303
- # source://rubocop-ast//lib/rubocop/ast/node.rb#594
3352
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#610
3304
3353
  def begin_value_used?; end
3305
3354
 
3306
3355
  # @return [Boolean]
3307
3356
  #
3308
- # source://rubocop-ast//lib/rubocop/ast/node.rb#605
3357
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#621
3309
3358
  def case_if_value_used?; end
3310
3359
 
3311
- # source://rubocop-ast//lib/rubocop/ast/node.rb#295
3360
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#305
3312
3361
  def defined_module0(param0 = T.unsafe(nil)); end
3313
3362
 
3314
3363
  # @return [Boolean]
3315
3364
  #
3316
- # source://rubocop-ast//lib/rubocop/ast/node.rb#599
3365
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#615
3317
3366
  def for_value_used?; end
3318
3367
 
3319
- # source://rubocop-ast//lib/rubocop/ast/node.rb#641
3368
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#657
3320
3369
  def parent_module_name_for_block(ancestor); end
3321
3370
 
3322
- # source://rubocop-ast//lib/rubocop/ast/node.rb#629
3371
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#645
3323
3372
  def parent_module_name_for_sclass(sclass_node); end
3324
3373
 
3325
- # source://rubocop-ast//lib/rubocop/ast/node.rb#616
3374
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#632
3326
3375
  def parent_module_name_part(node); end
3327
3376
 
3328
- # source://rubocop-ast//lib/rubocop/ast/node.rb#584
3377
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#600
3329
3378
  def visit_ancestors(types); end
3330
3379
 
3331
3380
  # @return [Boolean]
3332
3381
  #
3333
- # source://rubocop-ast//lib/rubocop/ast/node.rb#611
3382
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#627
3334
3383
  def while_until_value_used?; end
3335
3384
  end
3336
3385
 
@@ -3371,6 +3420,12 @@ RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
3371
3420
  # source://rubocop-ast//lib/rubocop/ast/node.rb#60
3372
3421
  RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
3373
3422
 
3423
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#87
3424
+ RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array)
3425
+
3426
+ # source://rubocop-ast//lib/rubocop/ast/node.rb#88
3427
+ RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash)
3428
+
3374
3429
  # @api private
3375
3430
  #
3376
3431
  # source://rubocop-ast//lib/rubocop/ast/node.rb#50
@@ -3473,47 +3528,47 @@ class RuboCop::AST::NodePattern
3473
3528
 
3474
3529
  # @return [NodePattern] a new instance of NodePattern
3475
3530
  #
3476
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#61
3531
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#77
3477
3532
  def initialize(str, compiler: T.unsafe(nil)); end
3478
3533
 
3479
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#74
3534
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90
3480
3535
  def ==(other); end
3481
3536
 
3482
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#91
3537
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#107
3483
3538
  def as_json(_options = T.unsafe(nil)); end
3484
3539
 
3485
3540
  # Returns the value of attribute ast.
3486
3541
  #
3487
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#57
3542
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
3488
3543
  def ast; end
3489
3544
 
3490
3545
  # source://forwardable/1.3.3/forwardable.rb#231
3491
3546
  def captures(*args, **_arg1, &block); end
3492
3547
 
3493
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
3548
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
3494
3549
  def encode_with(coder); end
3495
3550
 
3496
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#74
3551
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90
3497
3552
  def eql?(other); end
3498
3553
 
3499
3554
  # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119
3500
3555
  def freeze; end
3501
3556
 
3502
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#99
3557
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#115
3503
3558
  def init_with(coder); end
3504
3559
 
3505
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#87
3560
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#103
3506
3561
  def marshal_dump; end
3507
3562
 
3508
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#83
3563
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#99
3509
3564
  def marshal_load(pattern); end
3510
3565
 
3511
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#69
3566
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#85
3512
3567
  def match(*args, **rest, &block); end
3513
3568
 
3514
3569
  # Returns the value of attribute match_code.
3515
3570
  #
3516
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#57
3571
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
3517
3572
  def match_code; end
3518
3573
 
3519
3574
  # source://forwardable/1.3.3/forwardable.rb#231
@@ -3521,13 +3576,13 @@ class RuboCop::AST::NodePattern
3521
3576
 
3522
3577
  # Returns the value of attribute pattern.
3523
3578
  #
3524
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#57
3579
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
3525
3580
  def pattern; end
3526
3581
 
3527
3582
  # source://forwardable/1.3.3/forwardable.rb#231
3528
3583
  def positional_parameters(*args, **_arg1, &block); end
3529
3584
 
3530
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#79
3585
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
3531
3586
  def to_s; end
3532
3587
 
3533
3588
  class << self
@@ -3535,7 +3590,7 @@ class RuboCop::AST::NodePattern
3535
3590
  #
3536
3591
  # @yield [element]
3537
3592
  #
3538
- # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#105
3593
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#59
3539
3594
  def descend(element, &block); end
3540
3595
  end
3541
3596
  end
@@ -4624,6 +4679,9 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
4624
4679
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#19
4625
4680
  def rest?; end
4626
4681
 
4682
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#78
4683
+ def source_range; end
4684
+
4627
4685
  # @return [Boolean] returns whether it matches a variable number of elements
4628
4686
  #
4629
4687
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#58
@@ -4635,67 +4693,67 @@ end
4635
4693
 
4636
4694
  # Node class for `<int str ...>`
4637
4695
  #
4638
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#176
4696
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#180
4639
4697
  class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
4640
4698
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4641
4699
 
4642
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#194
4700
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#198
4643
4701
  def arity; end
4644
4702
 
4645
4703
  # @return [Boolean]
4646
4704
  #
4647
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#186
4705
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#190
4648
4706
  def ends_with_rest?; end
4649
4707
 
4650
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#190
4708
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#194
4651
4709
  def rest_node; end
4652
4710
 
4653
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#182
4711
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#186
4654
4712
  def term_nodes; end
4655
4713
  end
4656
4714
 
4657
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#179
4715
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#183
4658
4716
  RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
4659
4717
 
4660
4718
  # Node class for `$something`
4661
4719
  #
4662
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#93
4720
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97
4663
4721
  class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
4664
4722
  # source://forwardable/1.3.3/forwardable.rb#231
4665
4723
  def arity(*args, **_arg1, &block); end
4666
4724
 
4667
4725
  # @return [Boolean]
4668
4726
  #
4669
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97
4727
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101
4670
4728
  def capture?; end
4671
4729
 
4672
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105
4730
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#109
4673
4731
  def in_sequence_head; end
4674
4732
 
4675
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101
4733
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105
4676
4734
  def nb_captures; end
4677
4735
 
4678
4736
  # source://forwardable/1.3.3/forwardable.rb#231
4679
4737
  def rest?(*args, **_arg1, &block); end
4680
4738
  end
4681
4739
 
4682
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82
4740
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86
4683
4741
  module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4684
4742
  # @raise [NodePattern::Invalid]
4685
4743
  #
4686
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#83
4744
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#87
4687
4745
  def in_sequence_head; end
4688
4746
  end
4689
4747
 
4690
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#136
4748
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#140
4691
4749
  RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate
4692
4750
 
4693
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#78
4751
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82
4694
4752
  RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
4695
4753
 
4696
4754
  # Registry
4697
4755
  #
4698
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#246
4756
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#250
4699
4757
  RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
4700
4758
 
4701
4759
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#12
@@ -4703,83 +4761,83 @@ RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
4703
4761
 
4704
4762
  # Node class for `predicate?(:arg, :list)`
4705
4763
  #
4706
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#127
4764
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131
4707
4765
  class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
4708
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132
4766
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#136
4709
4767
  def arg_list; end
4710
4768
 
4711
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#128
4769
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132
4712
4770
  def method_name; end
4713
4771
  end
4714
4772
 
4715
4773
  # Node class for `int+`
4716
4774
  #
4717
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139
4775
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#143
4718
4776
  class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
4719
4777
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4720
4778
 
4721
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#152
4779
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#156
4722
4780
  def arity; end
4723
4781
 
4724
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#142
4782
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#146
4725
4783
  def operator; end
4726
4784
  end
4727
4785
 
4728
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#146
4786
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#150
4729
4787
  RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
4730
4788
 
4731
4789
  # Node class for `...`
4732
4790
  #
4733
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#158
4791
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162
4734
4792
  class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
4735
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166
4793
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#170
4736
4794
  def arity; end
4737
4795
 
4738
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#170
4796
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#174
4739
4797
  def in_sequence_head; end
4740
4798
 
4741
4799
  # @return [Boolean]
4742
4800
  #
4743
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162
4801
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166
4744
4802
  def rest?; end
4745
4803
  end
4746
4804
 
4747
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#159
4805
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#163
4748
4806
  RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
4749
4807
 
4750
4808
  # Node class for `(type first second ...)`
4751
4809
  #
4752
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#114
4810
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#118
4753
4811
  class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
4754
4812
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4755
4813
 
4756
4814
  # @return [Sequence] a new instance of Sequence
4757
4815
  #
4758
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#117
4816
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#121
4759
4817
  def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
4760
4818
  end
4761
4819
 
4762
4820
  # A list (potentially empty) of nodes; part of a Union
4763
4821
  #
4764
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#202
4822
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#206
4765
4823
  class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
4766
4824
  include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
4767
4825
 
4768
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#205
4826
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#209
4769
4827
  def arity; end
4770
4828
 
4771
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#210
4829
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#214
4772
4830
  def in_sequence_head; end
4773
4831
  end
4774
4832
 
4775
4833
  # Node class for `{ ... }`
4776
4834
  #
4777
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#220
4835
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224
4778
4836
  class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
4779
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#221
4837
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#225
4780
4838
  def arity; end
4781
4839
 
4782
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#228
4840
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#232
4783
4841
  def in_sequence_head; end
4784
4842
  end
4785
4843
 
@@ -4798,116 +4856,116 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
4798
4856
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19
4799
4857
  def initialize(builder = T.unsafe(nil)); end
4800
4858
 
4801
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#333
4859
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#335
4802
4860
  def _reduce_10(val, _values); end
4803
4861
 
4804
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#337
4862
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#339
4805
4863
  def _reduce_11(val, _values); end
4806
4864
 
4807
4865
  # reduce 12 omitted
4808
4866
  #
4809
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#343
4867
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#345
4810
4868
  def _reduce_13(val, _values); end
4811
4869
 
4812
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#347
4870
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#349
4813
4871
  def _reduce_14(val, _values); end
4814
4872
 
4815
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#351
4873
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#353
4816
4874
  def _reduce_15(val, _values); end
4817
4875
 
4818
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#355
4876
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#357
4819
4877
  def _reduce_16(val, _values); end
4820
4878
 
4821
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#359
4879
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#361
4822
4880
  def _reduce_17(val, _values); end
4823
4881
 
4824
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#363
4882
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#365
4825
4883
  def _reduce_18(val, _values); end
4826
4884
 
4827
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#367
4885
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#369
4828
4886
  def _reduce_19(val, _values); end
4829
4887
 
4830
4888
  # reduce 1 omitted
4831
4889
  #
4832
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#301
4890
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#303
4833
4891
  def _reduce_2(val, _values); end
4834
4892
 
4835
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#371
4893
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#373
4836
4894
  def _reduce_20(val, _values); end
4837
4895
 
4838
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#375
4896
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#377
4839
4897
  def _reduce_21(val, _values); end
4840
4898
 
4841
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#379
4899
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#381
4842
4900
  def _reduce_22(val, _values); end
4843
4901
 
4844
4902
  # reduce 24 omitted
4845
4903
  #
4846
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#387
4904
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#389
4847
4905
  def _reduce_25(val, _values); end
4848
4906
 
4849
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#393
4907
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#395
4850
4908
  def _reduce_26(val, _values); end
4851
4909
 
4852
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#305
4910
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#307
4853
4911
  def _reduce_3(val, _values); end
4854
4912
 
4855
4913
  # reduce 32 omitted
4856
4914
  #
4857
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#413
4915
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#415
4858
4916
  def _reduce_33(val, _values); end
4859
4917
 
4860
4918
  # reduce 36 omitted
4861
4919
  #
4862
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#423
4920
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#425
4863
4921
  def _reduce_37(val, _values); end
4864
4922
 
4865
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#427
4923
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#429
4866
4924
  def _reduce_38(val, _values); end
4867
4925
 
4868
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#431
4926
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#433
4869
4927
  def _reduce_39(val, _values); end
4870
4928
 
4871
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#309
4929
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#311
4872
4930
  def _reduce_4(val, _values); end
4873
4931
 
4874
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#435
4932
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#437
4875
4933
  def _reduce_40(val, _values); end
4876
4934
 
4877
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#439
4935
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#441
4878
4936
  def _reduce_41(val, _values); end
4879
4937
 
4880
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#443
4938
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#445
4881
4939
  def _reduce_42(val, _values); end
4882
4940
 
4883
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#447
4941
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#449
4884
4942
  def _reduce_43(val, _values); end
4885
4943
 
4886
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#451
4944
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#453
4887
4945
  def _reduce_44(val, _values); end
4888
4946
 
4889
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#455
4947
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#457
4890
4948
  def _reduce_45(val, _values); end
4891
4949
 
4892
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#459
4950
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#461
4893
4951
  def _reduce_46(val, _values); end
4894
4952
 
4895
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#313
4953
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#315
4896
4954
  def _reduce_5(val, _values); end
4897
4955
 
4898
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#317
4956
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#319
4899
4957
  def _reduce_6(val, _values); end
4900
4958
 
4901
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#321
4959
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#323
4902
4960
  def _reduce_7(val, _values); end
4903
4961
 
4904
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#325
4962
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#327
4905
4963
  def _reduce_8(val, _values); end
4906
4964
 
4907
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#329
4965
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#331
4908
4966
  def _reduce_9(val, _values); end
4909
4967
 
4910
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463
4968
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
4911
4969
  def _reduce_none(val, _values); end
4912
4970
 
4913
4971
  # source://forwardable/1.3.3/forwardable.rb#231
@@ -4967,10 +5025,10 @@ RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer
4967
5025
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227
4968
5026
  RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array)
4969
5027
 
4970
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#293
5028
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#295
4971
5029
  RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass)
4972
5030
 
4973
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#243
5031
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#244
4974
5032
  RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
4975
5033
 
4976
5034
  # Overrides Parser to use `WithMeta` variants and provide additional methods
@@ -4979,15 +5037,15 @@ RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil),
4979
5037
  class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser
4980
5038
  # Returns the value of attribute comments.
4981
5039
  #
4982
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#99
5040
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#98
4983
5041
  def comments; end
4984
5042
 
4985
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#101
5043
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#100
4986
5044
  def do_parse; end
4987
5045
 
4988
5046
  # Returns the value of attribute tokens.
4989
5047
  #
4990
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#99
5048
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#98
4991
5049
  def tokens; end
4992
5050
  end
4993
5051
 
@@ -5018,7 +5076,7 @@ class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::Nod
5018
5076
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#71
5019
5077
  def n(type, children, source_map); end
5020
5078
 
5021
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#86
5079
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#85
5022
5080
  def source_map(token_or_range, begin_t: T.unsafe(nil), end_t: T.unsafe(nil), operator_t: T.unsafe(nil), selector_t: T.unsafe(nil)); end
5023
5081
  end
5024
5082
 
@@ -5091,6 +5149,12 @@ RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_D
5091
5149
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5092
5150
  RuboCop::AST::NodePattern::Sets::SET_ANY_ALL_NORETURN_ETC = T.let(T.unsafe(nil), Set)
5093
5151
 
5152
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5153
+ RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set)
5154
+
5155
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5156
+ RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set)
5157
+
5094
5158
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5095
5159
  RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set)
5096
5160
 
@@ -5122,13 +5186,13 @@ RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE = T.let(T.unsafe(nil), Set)
5122
5186
  RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), Set)
5123
5187
 
5124
5188
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5125
- RuboCop::AST::NodePattern::Sets::SET_CONSTANTIZE_CONSTANTS_CONST_GET = T.let(T.unsafe(nil), Set)
5189
+ RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set)
5126
5190
 
5127
5191
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5128
- RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
5192
+ RuboCop::AST::NodePattern::Sets::SET_CONSTANTIZE_CONSTANTS_CONST_GET = T.let(T.unsafe(nil), Set)
5129
5193
 
5130
5194
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5131
- RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set)
5195
+ RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
5132
5196
 
5133
5197
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5134
5198
  RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
@@ -5142,9 +5206,6 @@ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe
5142
5206
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5143
5207
  RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set)
5144
5208
 
5145
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5146
- RuboCop::AST::NodePattern::Sets::SET_ENUMERATOR_RATIONAL_COMPLEX_THREAD = T.let(T.unsafe(nil), Set)
5147
-
5148
5209
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5149
5210
  RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set)
5150
5211
 
@@ -5154,6 +5215,18 @@ RuboCop::AST::NodePattern::Sets::SET_EXIST_EXISTS = T.let(T.unsafe(nil), Set)
5154
5215
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5155
5216
  RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set)
5156
5217
 
5218
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5219
+ RuboCop::AST::NodePattern::Sets::SET_FILE_DIR = T.let(T.unsafe(nil), Set)
5220
+
5221
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5222
+ RuboCop::AST::NodePattern::Sets::SET_FILE_FILETEST = T.let(T.unsafe(nil), Set)
5223
+
5224
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5225
+ RuboCop::AST::NodePattern::Sets::SET_FILE_TEMPFILE = T.let(T.unsafe(nil), Set)
5226
+
5227
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5228
+ RuboCop::AST::NodePattern::Sets::SET_FILE_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set)
5229
+
5157
5230
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5158
5231
  RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set)
5159
5232
 
@@ -5166,6 +5239,9 @@ RuboCop::AST::NodePattern::Sets::SET_FLATTEN_FLATTEN = T.let(T.unsafe(nil), Set)
5166
5239
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5167
5240
  RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set)
5168
5241
 
5242
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5243
+ RuboCop::AST::NodePattern::Sets::SET_GETHOSTBYADDR_GETHOSTBYNAME = T.let(T.unsafe(nil), Set)
5244
+
5169
5245
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5170
5246
  RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set)
5171
5247
 
@@ -5211,6 +5287,9 @@ RuboCop::AST::NodePattern::Sets::SET_MATCH_MATCH = T.let(T.unsafe(nil), Set)
5211
5287
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5212
5288
  RuboCop::AST::NodePattern::Sets::SET_MATCH__MATCH = T.let(T.unsafe(nil), Set)
5213
5289
 
5290
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5291
+ RuboCop::AST::NodePattern::Sets::SET_MODULE_FUNCTION_RUBY2_KEYWORDS = T.let(T.unsafe(nil), Set)
5292
+
5214
5293
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5215
5294
  RuboCop::AST::NodePattern::Sets::SET_NEW_ = T.let(T.unsafe(nil), Set)
5216
5295
 
@@ -5227,7 +5306,10 @@ RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
5227
5306
  RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
5228
5307
 
5229
5308
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5230
- RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED = T.let(T.unsafe(nil), Set)
5309
+ RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_EMPTY = T.let(T.unsafe(nil), Set)
5310
+
5311
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5312
+ RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T.let(T.unsafe(nil), Set)
5231
5313
 
5232
5314
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5233
5315
  RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set)
@@ -5247,15 +5329,21 @@ RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set)
5247
5329
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5248
5330
  RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), Set)
5249
5331
 
5332
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5333
+ RuboCop::AST::NodePattern::Sets::SET_READ_BINREAD = T.let(T.unsafe(nil), Set)
5334
+
5250
5335
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5251
5336
  RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
5252
5337
 
5253
5338
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5254
- RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
5339
+ RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set)
5255
5340
 
5256
5341
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5257
5342
  RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
5258
5343
 
5344
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5345
+ RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set)
5346
+
5259
5347
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5260
5348
  RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set)
5261
5349
 
@@ -5289,9 +5377,6 @@ RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set)
5289
5377
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5290
5378
  RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set)
5291
5379
 
5292
- # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5293
- RuboCop::AST::NodePattern::Sets::SET_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set)
5294
-
5295
5380
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5296
5381
  RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set)
5297
5382
 
@@ -5328,6 +5413,9 @@ RuboCop::AST::NodePattern::Sets::SET__FETCH = T.let(T.unsafe(nil), Set)
5328
5413
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5329
5414
  RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set)
5330
5415
 
5416
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5417
+ RuboCop::AST::NodePattern::Sets::SET__PUSH_APPEND = T.let(T.unsafe(nil), Set)
5418
+
5331
5419
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5332
5420
  RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set)
5333
5421
 
@@ -5352,6 +5440,9 @@ RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set)
5352
5440
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5353
5441
  RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set)
5354
5442
 
5443
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5444
+ RuboCop::AST::NodePattern::Sets::SET___9 = T.let(T.unsafe(nil), Set)
5445
+
5355
5446
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5356
5447
  RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set)
5357
5448
 
@@ -5364,6 +5455,9 @@ RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil)
5364
5455
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5365
5456
  RuboCop::AST::NodePattern::Sets::SET____ = T.let(T.unsafe(nil), Set)
5366
5457
 
5458
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5459
+ RuboCop::AST::NodePattern::Sets::SET____2 = T.let(T.unsafe(nil), Set)
5460
+
5367
5461
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5368
5462
  RuboCop::AST::NodePattern::Sets::SET____ETC = T.let(T.unsafe(nil), Set)
5369
5463
 
@@ -5373,6 +5467,9 @@ RuboCop::AST::NodePattern::Sets::SET____ETC_2 = T.let(T.unsafe(nil), Set)
5373
5467
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5374
5468
  RuboCop::AST::NodePattern::Sets::SET____ETC_3 = T.let(T.unsafe(nil), Set)
5375
5469
 
5470
+ # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5471
+ RuboCop::AST::NodePattern::Sets::SET____ETC_4 = T.let(T.unsafe(nil), Set)
5472
+
5376
5473
  # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
5377
5474
  RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set)
5378
5475
 
@@ -5613,14 +5710,14 @@ module RuboCop::AST::ParameterizedNode::RestArguments
5613
5710
 
5614
5711
  # @return [Array<Node>] arguments, if any
5615
5712
  #
5616
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#86
5713
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#89
5617
5714
  def arguments; end
5618
5715
 
5619
5716
  # Checks whether this node has any arguments.
5620
5717
  #
5621
5718
  # @return [Boolean] whether this node has any arguments
5622
5719
  #
5623
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#111
5720
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#119
5624
5721
  def arguments?; end
5625
5722
 
5626
5723
  # A shorthand for getting the first argument of the node.
@@ -5629,7 +5726,7 @@ module RuboCop::AST::ParameterizedNode::RestArguments
5629
5726
  # @return [Node, nil] the first argument of the node,
5630
5727
  # or `nil` if there are no arguments
5631
5728
  #
5632
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#95
5729
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#103
5633
5730
  def first_argument; end
5634
5731
 
5635
5732
  # A shorthand for getting the last argument of the node.
@@ -5638,10 +5735,13 @@ module RuboCop::AST::ParameterizedNode::RestArguments
5638
5735
  # @return [Node, nil] the last argument of the node,
5639
5736
  # or `nil` if there are no arguments
5640
5737
  #
5641
- # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#104
5738
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#112
5642
5739
  def last_argument; end
5643
5740
  end
5644
5741
 
5742
+ # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#86
5743
+ RuboCop::AST::ParameterizedNode::RestArguments::EMPTY_ARGUMENTS = T.let(T.unsafe(nil), Array)
5744
+
5645
5745
  # A specialized `ParameterizedNode` for node that have a single child
5646
5746
  # containing either `nil`, an argument, or a `begin` node with all the
5647
5747
  # arguments
@@ -5717,38 +5817,38 @@ end
5717
5817
  class RuboCop::AST::ProcessedSource
5718
5818
  # @return [ProcessedSource] a new instance of ProcessedSource
5719
5819
  #
5720
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#26
5721
- def initialize(source, ruby_version, path = T.unsafe(nil)); end
5820
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#29
5821
+ def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
5722
5822
 
5723
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#63
5823
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#73
5724
5824
  def [](*args); end
5725
5825
 
5726
5826
  # Returns the value of attribute ast.
5727
5827
  #
5728
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5828
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5729
5829
  def ast; end
5730
5830
 
5731
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
5831
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#51
5732
5832
  def ast_with_comments; end
5733
5833
 
5734
5834
  # @return [Boolean]
5735
5835
  #
5736
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#102
5836
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
5737
5837
  def blank?; end
5738
5838
 
5739
5839
  # Returns the value of attribute buffer.
5740
5840
  #
5741
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5841
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5742
5842
  def buffer; end
5743
5843
 
5744
5844
  # Raw source checksum for tracking infinite loops.
5745
5845
  #
5746
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#74
5846
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84
5747
5847
  def checksum; end
5748
5848
 
5749
5849
  # @return [Comment, nil] the comment at that line, if any.
5750
5850
  #
5751
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107
5851
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
5752
5852
  def comment_at_line(line); end
5753
5853
 
5754
5854
  # Consider using `each_comment_in_lines` instead
@@ -5756,170 +5856,178 @@ class RuboCop::AST::ProcessedSource
5756
5856
  # @deprecated use contains_comment?
5757
5857
  # @return [Boolean] if any of the lines in the given `source_range` has a comment.
5758
5858
  #
5759
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129
5859
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
5760
5860
  def commented?(source_range); end
5761
5861
 
5762
5862
  # Returns the value of attribute comments.
5763
5863
  #
5764
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5864
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5765
5865
  def comments; end
5766
5866
 
5767
5867
  # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
5768
5868
  #
5769
5869
  # @deprecated Use `each_comment_in_lines`
5770
5870
  #
5771
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#137
5871
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
5772
5872
  def comments_before_line(line); end
5773
5873
 
5774
5874
  # Consider using `each_comment_in_lines` instead
5775
5875
  #
5776
5876
  # @return [Boolean] if any of the lines in the given `source_range` has a comment.
5777
5877
  #
5778
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129
5878
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
5779
5879
  def contains_comment?(source_range); end
5780
5880
 
5781
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151
5881
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161
5782
5882
  def current_line(token); end
5783
5883
 
5784
5884
  # Returns the value of attribute diagnostics.
5785
5885
  #
5786
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5886
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5787
5887
  def diagnostics; end
5788
5888
 
5789
5889
  # @deprecated Use `comments.each`
5790
5890
  #
5791
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#79
5891
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89
5792
5892
  def each_comment(&block); end
5793
5893
 
5794
5894
  # Enumerates on the comments contained with the given `line_range`
5795
5895
  #
5796
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
5896
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#127
5797
5897
  def each_comment_in_lines(line_range); end
5798
5898
 
5799
5899
  # @deprecated Use `tokens.each`
5800
5900
  #
5801
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89
5901
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#99
5802
5902
  def each_token(&block); end
5803
5903
 
5804
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98
5904
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#108
5805
5905
  def file_path; end
5806
5906
 
5807
5907
  # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
5808
5908
  #
5809
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84
5909
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94
5810
5910
  def find_comment(&block); end
5811
5911
 
5812
5912
  # @deprecated Use `tokens.find`
5813
5913
  #
5814
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94
5914
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#104
5815
5915
  def find_token(&block); end
5816
5916
 
5817
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#172
5917
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#182
5818
5918
  def first_token_of(range_or_node); end
5819
5919
 
5820
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#155
5920
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#165
5821
5921
  def following_line(token); end
5822
5922
 
5823
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176
5923
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#186
5824
5924
  def last_token_of(range_or_node); end
5825
5925
 
5826
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#159
5926
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#169
5827
5927
  def line_indentation(line_number); end
5828
5928
 
5829
5929
  # @return [Boolean] if the given line number has a comment.
5830
5930
  #
5831
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
5931
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#122
5832
5932
  def line_with_comment?(line); end
5833
5933
 
5834
5934
  # Returns the source lines, line break characters removed, excluding a
5835
5935
  # possible __END__ and everything that comes after.
5836
5936
  #
5837
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#49
5937
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#59
5838
5938
  def lines; end
5839
5939
 
5940
+ # Returns the value of attribute parser_engine.
5941
+ #
5942
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5943
+ def parser_engine; end
5944
+
5840
5945
  # Returns the value of attribute parser_error.
5841
5946
  #
5842
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5947
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5843
5948
  def parser_error; end
5844
5949
 
5845
5950
  # Returns the value of attribute path.
5846
5951
  #
5847
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5952
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5848
5953
  def path; end
5849
5954
 
5850
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
5955
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
5851
5956
  def preceding_line(token); end
5852
5957
 
5853
5958
  # Returns the value of attribute raw_source.
5854
5959
  #
5855
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5960
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5856
5961
  def raw_source; end
5857
5962
 
5858
5963
  # Returns the value of attribute ruby_version.
5859
5964
  #
5860
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5965
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5861
5966
  def ruby_version; end
5862
5967
 
5863
5968
  # The tokens list is always sorted by token position, except for cases when heredoc
5864
5969
  # is passed as a method argument. In this case tokens are interleaved by
5865
5970
  # heredoc contents' tokens.
5866
5971
  #
5867
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#183
5972
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#193
5868
5973
  def sorted_tokens; end
5869
5974
 
5870
5975
  # @return [Boolean]
5871
5976
  #
5872
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#141
5977
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151
5873
5978
  def start_with?(string); end
5874
5979
 
5875
5980
  # Returns the value of attribute tokens.
5876
5981
  #
5877
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5982
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
5878
5983
  def tokens; end
5879
5984
 
5880
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#166
5985
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176
5881
5986
  def tokens_within(range_or_node); end
5882
5987
 
5883
5988
  # @return [Boolean]
5884
5989
  #
5885
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#67
5990
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77
5886
5991
  def valid_syntax?; end
5887
5992
 
5888
5993
  private
5889
5994
 
5890
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#190
5995
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#200
5891
5996
  def comment_index; end
5892
5997
 
5893
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#275
5894
- def create_parser(ruby_version); end
5998
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#312
5999
+ def create_parser(ruby_version, parser_engine); end
5895
6000
 
5896
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#291
6001
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#328
5897
6002
  def first_token_index(range_or_node); end
5898
6003
 
5899
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#296
6004
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#333
5900
6005
  def last_token_index(range_or_node); end
5901
6006
 
5902
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#196
5903
- def parse(source, ruby_version); end
6007
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#206
6008
+ def parse(source, ruby_version, parser_engine); end
5904
6009
 
5905
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#230
5906
- def parser_class(ruby_version); end
6010
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#240
6011
+ def parser_class(ruby_version, parser_engine); end
5907
6012
 
5908
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#301
6013
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#338
5909
6014
  def source_range(range_or_node); end
5910
6015
 
5911
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#213
6016
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#223
5912
6017
  def tokenize(parser); end
5913
6018
 
5914
6019
  class << self
5915
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
5916
- def from_file(path, ruby_version); end
6020
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#24
6021
+ def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
5917
6022
  end
5918
6023
  end
5919
6024
 
5920
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#23
6025
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
5921
6026
  RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
5922
6027
 
6028
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
6029
+ RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
6030
+
5923
6031
  # @api private
5924
6032
  #
5925
6033
  # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13
@@ -6174,9 +6282,14 @@ class RuboCop::AST::SendNode < ::RuboCop::AST::Node
6174
6282
  # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#13
6175
6283
  def attribute_accessor?(param0 = T.unsafe(nil)); end
6176
6284
 
6285
+ # @return [Boolean]
6286
+ #
6287
+ # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#18
6288
+ def send_type?; end
6289
+
6177
6290
  private
6178
6291
 
6179
- # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#20
6292
+ # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#24
6180
6293
  def first_argument_index; end
6181
6294
  end
6182
6295
 
@@ -6204,6 +6317,11 @@ class RuboCop::AST::StrNode < ::RuboCop::AST::Node
6204
6317
  # @return [Boolean]
6205
6318
  #
6206
6319
  # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11
6320
+ def character_literal?; end
6321
+
6322
+ # @return [Boolean]
6323
+ #
6324
+ # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#15
6207
6325
  def heredoc?; end
6208
6326
  end
6209
6327
 
@@ -6244,146 +6362,154 @@ end
6244
6362
  class RuboCop::AST::Token
6245
6363
  # @return [Token] a new instance of Token
6246
6364
  #
6247
- # source://rubocop-ast//lib/rubocop/ast/token.rb#15
6365
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#17
6248
6366
  def initialize(pos, type, text); end
6249
6367
 
6250
- # source://rubocop-ast//lib/rubocop/ast/token.rb#30
6368
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#32
6251
6369
  def begin_pos; end
6252
6370
 
6253
- # source://rubocop-ast//lib/rubocop/ast/token.rb#26
6371
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#28
6254
6372
  def column; end
6255
6373
 
6256
6374
  # @return [Boolean]
6257
6375
  #
6258
- # source://rubocop-ast//lib/rubocop/ast/token.rb#99
6376
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#101
6259
6377
  def comma?; end
6260
6378
 
6261
6379
  # Type Predicates
6262
6380
  #
6263
6381
  # @return [Boolean]
6264
6382
  #
6265
- # source://rubocop-ast//lib/rubocop/ast/token.rb#55
6383
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#57
6266
6384
  def comment?; end
6267
6385
 
6268
6386
  # @return [Boolean]
6269
6387
  #
6270
- # source://rubocop-ast//lib/rubocop/ast/token.rb#103
6388
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#105
6271
6389
  def dot?; end
6272
6390
 
6273
6391
  # @return [Boolean]
6274
6392
  #
6275
- # source://rubocop-ast//lib/rubocop/ast/token.rb#115
6393
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#117
6276
6394
  def end?; end
6277
6395
 
6278
- # source://rubocop-ast//lib/rubocop/ast/token.rb#34
6396
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#36
6279
6397
  def end_pos; end
6280
6398
 
6281
6399
  # @return [Boolean]
6282
6400
  #
6283
- # source://rubocop-ast//lib/rubocop/ast/token.rb#119
6401
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#121
6284
6402
  def equal_sign?; end
6285
6403
 
6286
6404
  # @return [Boolean]
6287
6405
  #
6288
- # source://rubocop-ast//lib/rubocop/ast/token.rb#63
6406
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#65
6289
6407
  def left_array_bracket?; end
6290
6408
 
6291
6409
  # @return [Boolean]
6292
6410
  #
6293
- # source://rubocop-ast//lib/rubocop/ast/token.rb#79
6411
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#81
6294
6412
  def left_brace?; end
6295
6413
 
6296
6414
  # @return [Boolean]
6297
6415
  #
6298
- # source://rubocop-ast//lib/rubocop/ast/token.rb#71
6416
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#73
6299
6417
  def left_bracket?; end
6300
6418
 
6301
6419
  # @return [Boolean]
6302
6420
  #
6303
- # source://rubocop-ast//lib/rubocop/ast/token.rb#83
6421
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#85
6304
6422
  def left_curly_brace?; end
6305
6423
 
6306
6424
  # @return [Boolean]
6307
6425
  #
6308
- # source://rubocop-ast//lib/rubocop/ast/token.rb#91
6426
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#93
6309
6427
  def left_parens?; end
6310
6428
 
6311
6429
  # @return [Boolean]
6312
6430
  #
6313
- # source://rubocop-ast//lib/rubocop/ast/token.rb#67
6431
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#69
6314
6432
  def left_ref_bracket?; end
6315
6433
 
6316
- # source://rubocop-ast//lib/rubocop/ast/token.rb#22
6434
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#24
6317
6435
  def line; end
6318
6436
 
6437
+ # @return [Boolean]
6438
+ #
6439
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#125
6440
+ def new_line?; end
6441
+
6319
6442
  # Returns the value of attribute pos.
6320
6443
  #
6321
- # source://rubocop-ast//lib/rubocop/ast/token.rb#7
6444
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#9
6322
6445
  def pos; end
6323
6446
 
6324
6447
  # @return [Boolean]
6325
6448
  #
6326
- # source://rubocop-ast//lib/rubocop/ast/token.rb#107
6449
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#109
6327
6450
  def regexp_dots?; end
6328
6451
 
6329
6452
  # @return [Boolean]
6330
6453
  #
6331
- # source://rubocop-ast//lib/rubocop/ast/token.rb#111
6454
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#113
6332
6455
  def rescue_modifier?; end
6333
6456
 
6334
6457
  # @return [Boolean]
6335
6458
  #
6336
- # source://rubocop-ast//lib/rubocop/ast/token.rb#75
6459
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#77
6337
6460
  def right_bracket?; end
6338
6461
 
6339
6462
  # @return [Boolean]
6340
6463
  #
6341
- # source://rubocop-ast//lib/rubocop/ast/token.rb#87
6464
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#89
6342
6465
  def right_curly_brace?; end
6343
6466
 
6344
6467
  # @return [Boolean]
6345
6468
  #
6346
- # source://rubocop-ast//lib/rubocop/ast/token.rb#95
6469
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#97
6347
6470
  def right_parens?; end
6348
6471
 
6349
6472
  # @return [Boolean]
6350
6473
  #
6351
- # source://rubocop-ast//lib/rubocop/ast/token.rb#59
6474
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#61
6352
6475
  def semicolon?; end
6353
6476
 
6354
6477
  # Checks if there is whitespace after token
6355
6478
  #
6356
6479
  # @return [Boolean]
6357
6480
  #
6358
- # source://rubocop-ast//lib/rubocop/ast/token.rb#43
6481
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#45
6359
6482
  def space_after?; end
6360
6483
 
6361
6484
  # Checks if there is whitespace before token
6362
6485
  #
6363
6486
  # @return [Boolean]
6364
6487
  #
6365
- # source://rubocop-ast//lib/rubocop/ast/token.rb#48
6488
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#50
6366
6489
  def space_before?; end
6367
6490
 
6368
6491
  # Returns the value of attribute text.
6369
6492
  #
6370
- # source://rubocop-ast//lib/rubocop/ast/token.rb#7
6493
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#9
6371
6494
  def text; end
6372
6495
 
6373
- # source://rubocop-ast//lib/rubocop/ast/token.rb#38
6496
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#40
6374
6497
  def to_s; end
6375
6498
 
6376
6499
  # Returns the value of attribute type.
6377
6500
  #
6378
- # source://rubocop-ast//lib/rubocop/ast/token.rb#7
6501
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#9
6379
6502
  def type; end
6380
6503
 
6381
6504
  class << self
6382
- # source://rubocop-ast//lib/rubocop/ast/token.rb#9
6505
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#11
6383
6506
  def from_parser_token(parser_token); end
6384
6507
  end
6385
6508
  end
6386
6509
 
6510
+ # source://rubocop-ast//lib/rubocop/ast/token.rb#7
6511
+ RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array)
6512
+
6387
6513
  # Provides methods for traversing an AST.
6388
6514
  # Does not transform an AST; for that, use Parser::AST::Processor.
6389
6515
  # Override methods to perform custom processing. Remember to call `super`
@@ -6393,391 +6519,394 @@ end
6393
6519
  module RuboCop::AST::Traversal
6394
6520
  extend ::RuboCop::AST::Traversal::CallbackCompiler
6395
6521
 
6396
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6522
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#173
6523
+ def on_(node); end
6524
+
6525
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6397
6526
  def on___ENCODING__(node); end
6398
6527
 
6399
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6528
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6400
6529
  def on___FILE__(node); end
6401
6530
 
6402
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6531
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6403
6532
  def on___LINE__(node); end
6404
6533
 
6405
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6534
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6406
6535
  def on_alias(node); end
6407
6536
 
6408
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6537
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6409
6538
  def on_and(node); end
6410
6539
 
6411
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6540
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6412
6541
  def on_and_asgn(node); end
6413
6542
 
6414
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6543
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6415
6544
  def on_arg(node); end
6416
6545
 
6417
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6546
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6418
6547
  def on_arg_expr(node); end
6419
6548
 
6420
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6549
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6421
6550
  def on_args(node); end
6422
6551
 
6423
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6552
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6424
6553
  def on_array(node); end
6425
6554
 
6426
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6555
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6427
6556
  def on_array_pattern(node); end
6428
6557
 
6429
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6558
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6430
6559
  def on_array_pattern_with_tail(node); end
6431
6560
 
6432
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6561
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6433
6562
  def on_back_ref(node); end
6434
6563
 
6435
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6564
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6436
6565
  def on_begin(node); end
6437
6566
 
6438
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#150
6567
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#151
6439
6568
  def on_block(node); end
6440
6569
 
6441
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6570
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129
6442
6571
  def on_block_pass(node); end
6443
6572
 
6444
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6573
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6445
6574
  def on_blockarg(node); end
6446
6575
 
6447
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6576
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6448
6577
  def on_break(node); end
6449
6578
 
6450
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6579
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6451
6580
  def on_case(node); end
6452
6581
 
6453
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6582
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6454
6583
  def on_case_match(node); end
6455
6584
 
6456
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
6585
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#146
6457
6586
  def on_casgn(node); end
6458
6587
 
6459
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6588
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6460
6589
  def on_cbase(node); end
6461
6590
 
6462
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#146
6591
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#147
6463
6592
  def on_class(node); end
6464
6593
 
6465
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6594
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6466
6595
  def on_complex(node); end
6467
6596
 
6468
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#144
6597
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
6469
6598
  def on_const(node); end
6470
6599
 
6471
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6600
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6472
6601
  def on_const_pattern(node); end
6473
6602
 
6474
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#154
6603
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155
6475
6604
  def on_csend(node); end
6476
6605
 
6477
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6606
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6478
6607
  def on_cvar(node); end
6479
6608
 
6480
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#130
6609
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131
6481
6610
  def on_cvasgn(node); end
6482
6611
 
6483
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#147
6612
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
6484
6613
  def on_def(node); end
6485
6614
 
6486
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6615
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6487
6616
  def on_defined?(node); end
6488
6617
 
6489
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#152
6618
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#153
6490
6619
  def on_defs(node); end
6491
6620
 
6492
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6621
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6493
6622
  def on_dstr(node); end
6494
6623
 
6495
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6624
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6496
6625
  def on_dsym(node); end
6497
6626
 
6498
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6627
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6499
6628
  def on_eflipflop(node); end
6500
6629
 
6501
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6630
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6502
6631
  def on_empty_else(node); end
6503
6632
 
6504
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6633
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6505
6634
  def on_ensure(node); end
6506
6635
 
6507
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6636
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6508
6637
  def on_erange(node); end
6509
6638
 
6510
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6639
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6511
6640
  def on_false(node); end
6512
6641
 
6513
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6642
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6514
6643
  def on_find_pattern(node); end
6515
6644
 
6516
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6645
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6517
6646
  def on_float(node); end
6518
6647
 
6519
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6648
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6520
6649
  def on_for(node); end
6521
6650
 
6522
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6651
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6523
6652
  def on_forward_arg(node); end
6524
6653
 
6525
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6654
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6526
6655
  def on_forward_args(node); end
6527
6656
 
6528
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6657
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6529
6658
  def on_forwarded_args(node); end
6530
6659
 
6531
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#172
6660
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6532
6661
  def on_forwarded_kwrestarg(node); end
6533
6662
 
6534
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#172
6663
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6535
6664
  def on_forwarded_restarg(node); end
6536
6665
 
6537
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6666
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6538
6667
  def on_gvar(node); end
6539
6668
 
6540
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#130
6669
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131
6541
6670
  def on_gvasgn(node); end
6542
6671
 
6543
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6672
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6544
6673
  def on_hash(node); end
6545
6674
 
6546
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6675
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6547
6676
  def on_hash_pattern(node); end
6548
6677
 
6549
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#149
6678
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#150
6550
6679
  def on_if(node); end
6551
6680
 
6552
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6681
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6553
6682
  def on_if_guard(node); end
6554
6683
 
6555
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6684
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6556
6685
  def on_iflipflop(node); end
6557
6686
 
6558
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6687
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6559
6688
  def on_in_match(node); end
6560
6689
 
6561
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6690
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6562
6691
  def on_in_pattern(node); end
6563
6692
 
6564
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6693
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6565
6694
  def on_index(node); end
6566
6695
 
6567
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6696
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6568
6697
  def on_indexasgn(node); end
6569
6698
 
6570
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6699
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6571
6700
  def on_int(node); end
6572
6701
 
6573
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6702
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6574
6703
  def on_irange(node); end
6575
6704
 
6576
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6705
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6577
6706
  def on_ivar(node); end
6578
6707
 
6579
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#130
6708
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131
6580
6709
  def on_ivasgn(node); end
6581
6710
 
6582
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6711
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6583
6712
  def on_kwarg(node); end
6584
6713
 
6585
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6714
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6586
6715
  def on_kwargs(node); end
6587
6716
 
6588
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6717
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6589
6718
  def on_kwbegin(node); end
6590
6719
 
6591
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6720
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6592
6721
  def on_kwnilarg(node); end
6593
6722
 
6594
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131
6723
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
6595
6724
  def on_kwoptarg(node); end
6596
6725
 
6597
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6726
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124
6598
6727
  def on_kwrestarg(node); end
6599
6728
 
6600
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124
6729
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125
6601
6730
  def on_kwsplat(node); end
6602
6731
 
6603
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6732
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6604
6733
  def on_lambda(node); end
6605
6734
 
6606
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6735
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6607
6736
  def on_lvar(node); end
6608
6737
 
6609
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#130
6738
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131
6610
6739
  def on_lvasgn(node); end
6611
6740
 
6612
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6741
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6613
6742
  def on_masgn(node); end
6614
6743
 
6615
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6744
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6616
6745
  def on_match_alt(node); end
6617
6746
 
6618
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6747
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6619
6748
  def on_match_as(node); end
6620
6749
 
6621
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6750
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6622
6751
  def on_match_current_line(node); end
6623
6752
 
6624
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6753
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6625
6754
  def on_match_nil_pattern(node); end
6626
6755
 
6627
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6756
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6628
6757
  def on_match_pattern(node); end
6629
6758
 
6630
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6759
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6631
6760
  def on_match_pattern_p(node); end
6632
6761
 
6633
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124
6762
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125
6634
6763
  def on_match_rest(node); end
6635
6764
 
6636
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6765
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6637
6766
  def on_match_var(node); end
6638
6767
 
6639
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6768
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6640
6769
  def on_match_with_lvasgn(node); end
6641
6770
 
6642
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6771
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6643
6772
  def on_match_with_trailing_comma(node); end
6644
6773
 
6645
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6774
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6646
6775
  def on_mlhs(node); end
6647
6776
 
6648
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
6777
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
6649
6778
  def on_module(node); end
6650
6779
 
6651
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6780
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6652
6781
  def on_mrasgn(node); end
6653
6782
 
6654
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6783
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6655
6784
  def on_next(node); end
6656
6785
 
6657
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6786
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6658
6787
  def on_nil(node); end
6659
6788
 
6660
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6789
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6661
6790
  def on_not(node); end
6662
6791
 
6663
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6792
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6664
6793
  def on_nth_ref(node); end
6665
6794
 
6666
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#151
6795
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#152
6667
6796
  def on_numblock(node); end
6668
6797
 
6669
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
6798
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#149
6670
6799
  def on_op_asgn(node); end
6671
6800
 
6672
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131
6801
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
6673
6802
  def on_optarg(node); end
6674
6803
 
6675
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6804
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6676
6805
  def on_or(node); end
6677
6806
 
6678
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6807
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6679
6808
  def on_or_asgn(node); end
6680
6809
 
6681
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6810
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6682
6811
  def on_pair(node); end
6683
6812
 
6684
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6813
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6685
6814
  def on_pin(node); end
6686
6815
 
6687
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6816
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129
6688
6817
  def on_postexe(node); end
6689
6818
 
6690
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6819
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129
6691
6820
  def on_preexe(node); end
6692
6821
 
6693
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6822
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6694
6823
  def on_procarg0(node); end
6695
6824
 
6696
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6825
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6697
6826
  def on_rasgn(node); end
6698
6827
 
6699
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6828
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6700
6829
  def on_rational(node); end
6701
6830
 
6702
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6831
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6703
6832
  def on_redo(node); end
6704
6833
 
6705
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6834
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6706
6835
  def on_regexp(node); end
6707
6836
 
6708
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134
6837
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6709
6838
  def on_regopt(node); end
6710
6839
 
6711
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6840
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6712
6841
  def on_resbody(node); end
6713
6842
 
6714
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6843
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6715
6844
  def on_rescue(node); end
6716
6845
 
6717
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6846
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124
6718
6847
  def on_restarg(node); end
6719
6848
 
6720
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6849
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6721
6850
  def on_retry(node); end
6722
6851
 
6723
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6852
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6724
6853
  def on_return(node); end
6725
6854
 
6726
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
6855
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
6727
6856
  def on_sclass(node); end
6728
6857
 
6729
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6858
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6730
6859
  def on_self(node); end
6731
6860
 
6732
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#154
6861
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155
6733
6862
  def on_send(node); end
6734
6863
 
6735
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6864
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6736
6865
  def on_shadowarg(node); end
6737
6866
 
6738
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124
6867
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125
6739
6868
  def on_splat(node); end
6740
6869
 
6741
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6870
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6742
6871
  def on_str(node); end
6743
6872
 
6744
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6873
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6745
6874
  def on_super(node); end
6746
6875
 
6747
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#126
6876
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6748
6877
  def on_sym(node); end
6749
6878
 
6750
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6879
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6751
6880
  def on_true(node); end
6752
6881
 
6753
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6882
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6754
6883
  def on_undef(node); end
6755
6884
 
6756
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127
6885
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128
6757
6886
  def on_unless_guard(node); end
6758
6887
 
6759
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
6888
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
6760
6889
  def on_until(node); end
6761
6890
 
6762
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6891
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6763
6892
  def on_until_post(node); end
6764
6893
 
6765
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
6894
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139
6766
6895
  def on_when(node); end
6767
6896
 
6768
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
6897
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
6769
6898
  def on_while(node); end
6770
6899
 
6771
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6900
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6772
6901
  def on_while_post(node); end
6773
6902
 
6774
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6903
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6775
6904
  def on_xstr(node); end
6776
6905
 
6777
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135
6906
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
6778
6907
  def on_yield(node); end
6779
6908
 
6780
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#122
6909
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123
6781
6910
  def on_zsuper(node); end
6782
6911
 
6783
6912
  # source://rubocop-ast//lib/rubocop/ast/traversal.rb#17
@@ -6821,7 +6950,7 @@ RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash)
6821
6950
  # source://rubocop-ast//lib/rubocop/ast/traversal.rb#12
6822
6951
  class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end
6823
6952
 
6824
- # source://rubocop-ast//lib/rubocop/ast/traversal.rb#99
6953
+ # source://rubocop-ast//lib/rubocop/ast/traversal.rb#100
6825
6954
  RuboCop::AST::Traversal::NO_CHILD_NODES = T.let(T.unsafe(nil), Set)
6826
6955
 
6827
6956
  # source://rubocop-ast//lib/rubocop/ast/traversal.rb#15