sorbet-result 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +74 -51
- data/README.md +1 -1
- data/lib/typed/no_payload_on_failure_error.rb +8 -3
- data/lib/typed/result.rb +1 -1
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +3 -3
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/erb@5.0.1.rbi +878 -0
- data/sorbet/rbi/gems/{erubi@1.13.0.rbi → erubi@1.13.1.rbi} +14 -9
- data/sorbet/rbi/gems/{json@2.7.5.rbi → json@2.12.2.rbi} +654 -232
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +11 -5
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/{minitest@5.25.1.rbi → minitest@5.25.5.rbi} +227 -220
- data/sorbet/rbi/gems/{parser@3.3.5.1.rbi → parser@3.3.8.0.rbi} +215 -199
- data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
- data/sorbet/rbi/gems/{prism@1.2.0.rbi → prism@1.4.0.rbi} +6569 -3922
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.6.rbi} +973 -236
- data/sorbet/rbi/gems/{rake@13.2.1.rbi → rake@13.3.0.rbi} +15 -12
- data/sorbet/rbi/gems/{rbi@0.2.1.rbi → rbi@0.3.6.rbi} +3340 -982
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +6976 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5243 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.33.1.rbi → rubocop-ast@1.45.1.rbi} +1069 -826
- data/sorbet/rbi/gems/{rubocop@1.66.1.rbi → rubocop@1.75.8.rbi} +7880 -4054
- data/sorbet/rbi/gems/{spoom@1.5.0.rbi → spoom@1.6.3.rbi} +3013 -960
- data/sorbet/rbi/gems/{standard@1.41.1.rbi → standard@1.50.0.rbi} +68 -59
- data/sorbet/rbi/gems/{tapioca@0.16.3.rbi → tapioca@0.16.11.rbi} +273 -248
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- metadata +38 -34
- data/.tool-versions +0 -1
- data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +0 -66
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.10.rbi → reline@0.6.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-performance@1.22.1.rbi → rubocop-performance@1.25.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-sorbet@0.7.8.rbi → rubocop-sorbet@0.9.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{standard-performance@1.5.0.rbi → standard-performance@1.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{standard-sorbet@0.0.2.rbi → standard-sorbet@0.0.3.rbi} +0 -0
- /data/sorbet/rbi/gems/{stringio@3.1.1.rbi → stringio@3.1.7.rbi} +0 -0
@@ -192,7 +192,7 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
|
|
192
192
|
#
|
193
193
|
# @return [Array<Node>] an array of value nodes
|
194
194
|
#
|
195
|
-
# source://ast/2.4.
|
195
|
+
# source://ast/2.4.3/lib/ast/node.rb#56
|
196
196
|
def values; end
|
197
197
|
end
|
198
198
|
|
@@ -209,15 +209,29 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
|
|
209
209
|
#
|
210
210
|
# @return [Node] the expression being assigned.
|
211
211
|
#
|
212
|
-
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#
|
212
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
|
213
213
|
def expression; end
|
214
214
|
|
215
|
+
# The name of the variable being assigned as a symbol.
|
216
|
+
#
|
217
|
+
# @return [Symbol] the name of the variable being assigned
|
218
|
+
#
|
219
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
|
220
|
+
def lhs; end
|
221
|
+
|
215
222
|
# The name of the variable being assigned as a symbol.
|
216
223
|
#
|
217
224
|
# @return [Symbol] the name of the variable being assigned
|
218
225
|
#
|
219
226
|
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
|
220
227
|
def name; end
|
228
|
+
|
229
|
+
# The expression being assigned to the variable.
|
230
|
+
#
|
231
|
+
# @return [Node] the expression being assigned.
|
232
|
+
#
|
233
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
|
234
|
+
def rhs; end
|
221
235
|
end
|
222
236
|
|
223
237
|
# Common functionality for primitive literal nodes: `sym`, `str`,
|
@@ -280,7 +294,7 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
280
294
|
#
|
281
295
|
# @return [Array<Node>]
|
282
296
|
#
|
283
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
297
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#62
|
284
298
|
def argument_list; end
|
285
299
|
|
286
300
|
# The arguments of this block.
|
@@ -290,42 +304,42 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
290
304
|
#
|
291
305
|
# @return [Array<Node>]
|
292
306
|
#
|
293
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
307
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#50
|
294
308
|
def arguments; end
|
295
309
|
|
296
310
|
# Checks whether this block takes any arguments.
|
297
311
|
#
|
298
312
|
# @return [Boolean] whether this `block` node takes any arguments
|
299
313
|
#
|
300
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
314
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#89
|
301
315
|
def arguments?; end
|
302
316
|
|
303
317
|
# The body of this block.
|
304
318
|
#
|
305
319
|
# @return [Node, nil] the body of the `block` node or `nil`
|
306
320
|
#
|
307
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
321
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#75
|
308
322
|
def body; end
|
309
323
|
|
310
324
|
# Checks whether the `block` literal is delimited by curly braces.
|
311
325
|
#
|
312
326
|
# @return [Boolean] whether the `block` literal is enclosed in braces
|
313
327
|
#
|
314
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
328
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#96
|
315
329
|
def braces?; end
|
316
330
|
|
317
331
|
# The closing delimiter for this `block` literal.
|
318
332
|
#
|
319
333
|
# @return [String] the closing delimiter for the `block` literal
|
320
334
|
#
|
321
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
335
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#124
|
322
336
|
def closing_delimiter; end
|
323
337
|
|
324
338
|
# The delimiters for this `block` literal.
|
325
339
|
#
|
326
340
|
# @return [Array<String>] the delimiters for the `block` literal
|
327
341
|
#
|
328
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
342
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#110
|
329
343
|
def delimiters; end
|
330
344
|
|
331
345
|
# A shorthand for getting the first argument of this block.
|
@@ -334,21 +348,21 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
334
348
|
# @return [Node, nil] the first argument of this block,
|
335
349
|
# or `nil` if there are no arguments
|
336
350
|
#
|
337
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
351
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#31
|
338
352
|
def first_argument; end
|
339
353
|
|
340
354
|
# Checks whether the `block` literal is delimited by `do`-`end` keywords.
|
341
355
|
#
|
342
356
|
# @return [Boolean] whether the `block` literal is enclosed in `do`-`end`
|
343
357
|
#
|
344
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
358
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#103
|
345
359
|
def keywords?; end
|
346
360
|
|
347
361
|
# Checks whether this `block` literal belongs to a lambda.
|
348
362
|
#
|
349
363
|
# @return [Boolean] whether the `block` literal belongs to a lambda
|
350
364
|
#
|
351
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
365
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#147
|
352
366
|
def lambda?; end
|
353
367
|
|
354
368
|
# A shorthand for getting the last argument of this block.
|
@@ -357,14 +371,14 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
357
371
|
# @return [Node, nil] the last argument of this block,
|
358
372
|
# or `nil` if there are no arguments
|
359
373
|
#
|
360
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
374
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#40
|
361
375
|
def last_argument; end
|
362
376
|
|
363
377
|
# The name of the dispatched method as a symbol.
|
364
378
|
#
|
365
379
|
# @return [Symbol] the name of the dispatched method
|
366
380
|
#
|
367
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
381
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#82
|
368
382
|
def method_name; end
|
369
383
|
|
370
384
|
# Checks whether this is a multiline block. This is overridden here
|
@@ -372,21 +386,21 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
372
386
|
#
|
373
387
|
# @return [Boolean] whether the `block` literal is on a several lines
|
374
388
|
#
|
375
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
389
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#140
|
376
390
|
def multiline?; end
|
377
391
|
|
378
392
|
# The opening delimiter for this `block` literal.
|
379
393
|
#
|
380
394
|
# @return [String] the opening delimiter for the `block` literal
|
381
395
|
#
|
382
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
396
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#117
|
383
397
|
def opening_delimiter; end
|
384
398
|
|
385
399
|
# The `send` node associated with this block.
|
386
400
|
#
|
387
401
|
# @return [SendNode] the `send` node associated with the `block` node
|
388
402
|
#
|
389
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
403
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#22
|
390
404
|
def send_node; end
|
391
405
|
|
392
406
|
# Checks whether this is a single line block. This is overridden here
|
@@ -394,25 +408,26 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
394
408
|
#
|
395
409
|
# @return [Boolean] whether the `block` literal is on a single line
|
396
410
|
#
|
397
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
411
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#132
|
398
412
|
def single_line?; end
|
399
413
|
|
400
414
|
# Checks whether this node body is a void context.
|
401
415
|
#
|
402
416
|
# @return [Boolean] whether the `block` node body is a void context
|
403
417
|
#
|
404
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
418
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#154
|
405
419
|
def void_context?; end
|
406
420
|
|
407
421
|
private
|
408
422
|
|
409
|
-
#
|
410
|
-
#
|
411
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#157
|
423
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#160
|
412
424
|
def numbered_arguments; end
|
413
425
|
end
|
414
426
|
|
415
427
|
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#14
|
428
|
+
RuboCop::AST::BlockNode::IT_BLOCK_ARGUMENT = T.let(T.unsafe(nil), Array)
|
429
|
+
|
430
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#16
|
416
431
|
RuboCop::AST::BlockNode::VOID_CONTEXT_METHODS = T.let(T.unsafe(nil), Array)
|
417
432
|
|
418
433
|
# A node extension for `break` nodes. This will be used in place of a
|
@@ -437,31 +452,61 @@ end
|
|
437
452
|
# parser = Parser::Ruby25.new(builder)
|
438
453
|
# root_node = parser.parse(buffer)
|
439
454
|
#
|
440
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
455
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#128
|
441
456
|
class RuboCop::AST::Builder < ::Parser::Builders::Default
|
457
|
+
include ::RuboCop::AST::BuilderExtensions
|
458
|
+
end
|
459
|
+
|
460
|
+
# Common functionality between the parser and prism builder
|
461
|
+
#
|
462
|
+
# @api private
|
463
|
+
#
|
464
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#7
|
465
|
+
module RuboCop::AST::BuilderExtensions
|
442
466
|
# Generates {Node} from the given information.
|
443
467
|
#
|
468
|
+
# @api private
|
444
469
|
# @return [Node] the generated node
|
445
470
|
#
|
446
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
471
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#100
|
447
472
|
def n(type, children, source_map); end
|
448
473
|
|
449
|
-
#
|
474
|
+
# Overwrite the base method to allow strings with invalid encoding
|
450
475
|
# More details here https://github.com/whitequark/parser/issues/283
|
451
476
|
#
|
452
|
-
#
|
477
|
+
# @api private
|
478
|
+
#
|
479
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#106
|
453
480
|
def string_value(token); end
|
454
481
|
|
455
482
|
private
|
456
483
|
|
457
|
-
#
|
484
|
+
# @api private
|
485
|
+
#
|
486
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#112
|
458
487
|
def node_klass(type); end
|
488
|
+
|
489
|
+
class << self
|
490
|
+
# @api private
|
491
|
+
# @private
|
492
|
+
#
|
493
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#8
|
494
|
+
def included(base); end
|
495
|
+
end
|
459
496
|
end
|
460
497
|
|
461
498
|
# @api private
|
462
499
|
#
|
463
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
464
|
-
RuboCop::AST::
|
500
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#14
|
501
|
+
RuboCop::AST::BuilderExtensions::NODE_MAP = T.let(T.unsafe(nil), Hash)
|
502
|
+
|
503
|
+
# A parser builder, based on the one provided by prism,
|
504
|
+
# which is capable of emitting AST for more recent Rubies.
|
505
|
+
#
|
506
|
+
# source://rubocop-ast//lib/rubocop/ast/builder_prism.rb#7
|
507
|
+
class RuboCop::AST::BuilderPrism < ::Prism::Translation::Parser::Builder
|
508
|
+
include ::RuboCop::AST::BuilderExtensions
|
509
|
+
end
|
465
510
|
|
466
511
|
# A node extension for `case_match` nodes. This will be used in place of
|
467
512
|
# a plain node when the builder constructs the AST, making its methods
|
@@ -580,11 +625,21 @@ class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
|
|
580
625
|
#
|
581
626
|
# @return [Node] the expression being assigned.
|
582
627
|
#
|
583
|
-
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#
|
628
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
|
584
629
|
def expression; end
|
585
630
|
|
631
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
|
632
|
+
def lhs; end
|
633
|
+
|
586
634
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
|
587
635
|
def name; end
|
636
|
+
|
637
|
+
# The expression being assigned to the variable.
|
638
|
+
#
|
639
|
+
# @return [Node] the expression being assigned.
|
640
|
+
#
|
641
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
|
642
|
+
def rhs; end
|
588
643
|
end
|
589
644
|
|
590
645
|
# A node extension for `class` nodes. This will be used in place of a plain
|
@@ -621,409 +676,409 @@ end
|
|
621
676
|
module RuboCop::AST::CollectionNode
|
622
677
|
extend ::RuboCop::SimpleForwardable
|
623
678
|
|
624
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
679
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
625
680
|
def &(*_arg0, **_arg1, &_arg2); end
|
626
681
|
|
627
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
682
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
628
683
|
def *(*_arg0, **_arg1, &_arg2); end
|
629
684
|
|
630
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
685
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
631
686
|
def +(*_arg0, **_arg1, &_arg2); end
|
632
687
|
|
633
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
688
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
634
689
|
def -(*_arg0, **_arg1, &_arg2); end
|
635
690
|
|
636
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
691
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
637
692
|
def <<(*_arg0, **_arg1, &_arg2); end
|
638
693
|
|
639
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
694
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
640
695
|
def [](*_arg0, **_arg1, &_arg2); end
|
641
696
|
|
642
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
697
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
643
698
|
def []=(*_arg0, **_arg1, &_arg2); end
|
644
699
|
|
645
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
700
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
646
701
|
def all?(*_arg0, **_arg1, &_arg2); end
|
647
702
|
|
648
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
703
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
649
704
|
def any?(*_arg0, **_arg1, &_arg2); end
|
650
705
|
|
651
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
706
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
652
707
|
def append(*_arg0, **_arg1, &_arg2); end
|
653
708
|
|
654
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
709
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
655
710
|
def assoc(*_arg0, **_arg1, &_arg2); end
|
656
711
|
|
657
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
712
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
658
713
|
def at(*_arg0, **_arg1, &_arg2); end
|
659
714
|
|
660
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
715
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
661
716
|
def bsearch(*_arg0, **_arg1, &_arg2); end
|
662
717
|
|
663
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
718
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
664
719
|
def bsearch_index(*_arg0, **_arg1, &_arg2); end
|
665
720
|
|
666
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
721
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
667
722
|
def chain(*_arg0, **_arg1, &_arg2); end
|
668
723
|
|
669
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
724
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
670
725
|
def chunk(*_arg0, **_arg1, &_arg2); end
|
671
726
|
|
672
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
727
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
673
728
|
def chunk_while(*_arg0, **_arg1, &_arg2); end
|
674
729
|
|
675
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
730
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
676
731
|
def clear(*_arg0, **_arg1, &_arg2); end
|
677
732
|
|
678
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
733
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
679
734
|
def collect(*_arg0, **_arg1, &_arg2); end
|
680
735
|
|
681
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
736
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
682
737
|
def collect!(*_arg0, **_arg1, &_arg2); end
|
683
738
|
|
684
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
739
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
685
740
|
def collect_concat(*_arg0, **_arg1, &_arg2); end
|
686
741
|
|
687
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
742
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
688
743
|
def combination(*_arg0, **_arg1, &_arg2); end
|
689
744
|
|
690
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
745
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
691
746
|
def compact(*_arg0, **_arg1, &_arg2); end
|
692
747
|
|
693
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
748
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
694
749
|
def compact!(*_arg0, **_arg1, &_arg2); end
|
695
750
|
|
696
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
751
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
697
752
|
def concat(*_arg0, **_arg1, &_arg2); end
|
698
753
|
|
699
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
754
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
700
755
|
def count(*_arg0, **_arg1, &_arg2); end
|
701
756
|
|
702
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
757
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
703
758
|
def cycle(*_arg0, **_arg1, &_arg2); end
|
704
759
|
|
705
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
760
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
706
761
|
def deconstruct(*_arg0, **_arg1, &_arg2); end
|
707
762
|
|
708
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
763
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
709
764
|
def delete(*_arg0, **_arg1, &_arg2); end
|
710
765
|
|
711
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
766
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
712
767
|
def delete_at(*_arg0, **_arg1, &_arg2); end
|
713
768
|
|
714
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
769
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
715
770
|
def delete_if(*_arg0, **_arg1, &_arg2); end
|
716
771
|
|
717
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
772
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
718
773
|
def detect(*_arg0, **_arg1, &_arg2); end
|
719
774
|
|
720
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
775
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
721
776
|
def difference(*_arg0, **_arg1, &_arg2); end
|
722
777
|
|
723
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
778
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
724
779
|
def dig(*_arg0, **_arg1, &_arg2); end
|
725
780
|
|
726
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
781
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
727
782
|
def drop(*_arg0, **_arg1, &_arg2); end
|
728
783
|
|
729
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
784
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
730
785
|
def drop_while(*_arg0, **_arg1, &_arg2); end
|
731
786
|
|
732
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
787
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
733
788
|
def each(*_arg0, **_arg1, &_arg2); end
|
734
789
|
|
735
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
790
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
736
791
|
def each_cons(*_arg0, **_arg1, &_arg2); end
|
737
792
|
|
738
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
793
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
739
794
|
def each_entry(*_arg0, **_arg1, &_arg2); end
|
740
795
|
|
741
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
796
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
742
797
|
def each_index(*_arg0, **_arg1, &_arg2); end
|
743
798
|
|
744
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
799
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
745
800
|
def each_slice(*_arg0, **_arg1, &_arg2); end
|
746
801
|
|
747
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
802
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
748
803
|
def each_with_index(*_arg0, **_arg1, &_arg2); end
|
749
804
|
|
750
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
805
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
751
806
|
def each_with_object(*_arg0, **_arg1, &_arg2); end
|
752
807
|
|
753
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
808
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
754
809
|
def empty?(*_arg0, **_arg1, &_arg2); end
|
755
810
|
|
756
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
811
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
757
812
|
def entries(*_arg0, **_arg1, &_arg2); end
|
758
813
|
|
759
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
814
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
760
815
|
def fetch(*_arg0, **_arg1, &_arg2); end
|
761
816
|
|
762
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
817
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
763
818
|
def fill(*_arg0, **_arg1, &_arg2); end
|
764
819
|
|
765
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
820
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
766
821
|
def filter(*_arg0, **_arg1, &_arg2); end
|
767
822
|
|
768
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
823
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
769
824
|
def filter!(*_arg0, **_arg1, &_arg2); end
|
770
825
|
|
771
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
826
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
772
827
|
def filter_map(*_arg0, **_arg1, &_arg2); end
|
773
828
|
|
774
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
829
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
775
830
|
def find(*_arg0, **_arg1, &_arg2); end
|
776
831
|
|
777
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
832
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
778
833
|
def find_all(*_arg0, **_arg1, &_arg2); end
|
779
834
|
|
780
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
835
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
781
836
|
def find_index(*_arg0, **_arg1, &_arg2); end
|
782
837
|
|
783
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
838
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
784
839
|
def first(*_arg0, **_arg1, &_arg2); end
|
785
840
|
|
786
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
841
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
787
842
|
def flat_map(*_arg0, **_arg1, &_arg2); end
|
788
843
|
|
789
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
844
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
790
845
|
def flatten(*_arg0, **_arg1, &_arg2); end
|
791
846
|
|
792
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
847
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
793
848
|
def flatten!(*_arg0, **_arg1, &_arg2); end
|
794
849
|
|
795
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
850
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
796
851
|
def grep(*_arg0, **_arg1, &_arg2); end
|
797
852
|
|
798
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
853
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
799
854
|
def grep_v(*_arg0, **_arg1, &_arg2); end
|
800
855
|
|
801
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
856
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
802
857
|
def group_by(*_arg0, **_arg1, &_arg2); end
|
803
858
|
|
804
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
859
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
805
860
|
def include?(*_arg0, **_arg1, &_arg2); end
|
806
861
|
|
807
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
862
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
808
863
|
def index(*_arg0, **_arg1, &_arg2); end
|
809
864
|
|
810
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
865
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
811
866
|
def inject(*_arg0, **_arg1, &_arg2); end
|
812
867
|
|
813
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
868
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
814
869
|
def insert(*_arg0, **_arg1, &_arg2); end
|
815
870
|
|
816
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
871
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
817
872
|
def intersect?(*_arg0, **_arg1, &_arg2); end
|
818
873
|
|
819
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
874
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
820
875
|
def intersection(*_arg0, **_arg1, &_arg2); end
|
821
876
|
|
822
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
877
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
823
878
|
def join(*_arg0, **_arg1, &_arg2); end
|
824
879
|
|
825
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
880
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
826
881
|
def keep_if(*_arg0, **_arg1, &_arg2); end
|
827
882
|
|
828
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
883
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
829
884
|
def last(*_arg0, **_arg1, &_arg2); end
|
830
885
|
|
831
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
886
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
832
887
|
def lazy(*_arg0, **_arg1, &_arg2); end
|
833
888
|
|
834
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
889
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
835
890
|
def length(*_arg0, **_arg1, &_arg2); end
|
836
891
|
|
837
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
892
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
838
893
|
def map(*_arg0, **_arg1, &_arg2); end
|
839
894
|
|
840
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
895
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
841
896
|
def map!(*_arg0, **_arg1, &_arg2); end
|
842
897
|
|
843
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
898
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
844
899
|
def max(*_arg0, **_arg1, &_arg2); end
|
845
900
|
|
846
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
901
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
847
902
|
def max_by(*_arg0, **_arg1, &_arg2); end
|
848
903
|
|
849
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
904
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
850
905
|
def member?(*_arg0, **_arg1, &_arg2); end
|
851
906
|
|
852
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
907
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
853
908
|
def min(*_arg0, **_arg1, &_arg2); end
|
854
909
|
|
855
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
910
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
856
911
|
def min_by(*_arg0, **_arg1, &_arg2); end
|
857
912
|
|
858
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
913
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
859
914
|
def minmax(*_arg0, **_arg1, &_arg2); end
|
860
915
|
|
861
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
916
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
862
917
|
def minmax_by(*_arg0, **_arg1, &_arg2); end
|
863
918
|
|
864
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
919
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
865
920
|
def none?(*_arg0, **_arg1, &_arg2); end
|
866
921
|
|
867
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
922
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
868
923
|
def one?(*_arg0, **_arg1, &_arg2); end
|
869
924
|
|
870
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
925
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
871
926
|
def pack(*_arg0, **_arg1, &_arg2); end
|
872
927
|
|
873
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
928
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
874
929
|
def partition(*_arg0, **_arg1, &_arg2); end
|
875
930
|
|
876
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
931
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
877
932
|
def permutation(*_arg0, **_arg1, &_arg2); end
|
878
933
|
|
879
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
934
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
880
935
|
def place(*_arg0, **_arg1, &_arg2); end
|
881
936
|
|
882
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
937
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
883
938
|
def pop(*_arg0, **_arg1, &_arg2); end
|
884
939
|
|
885
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
940
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
886
941
|
def prepend(*_arg0, **_arg1, &_arg2); end
|
887
942
|
|
888
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
943
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
889
944
|
def product(*_arg0, **_arg1, &_arg2); end
|
890
945
|
|
891
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
946
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
892
947
|
def push(*_arg0, **_arg1, &_arg2); end
|
893
948
|
|
894
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
949
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
895
950
|
def rassoc(*_arg0, **_arg1, &_arg2); end
|
896
951
|
|
897
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
952
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
898
953
|
def reduce(*_arg0, **_arg1, &_arg2); end
|
899
954
|
|
900
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
955
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
901
956
|
def reject(*_arg0, **_arg1, &_arg2); end
|
902
957
|
|
903
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
958
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
904
959
|
def reject!(*_arg0, **_arg1, &_arg2); end
|
905
960
|
|
906
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
961
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
907
962
|
def repeated_combination(*_arg0, **_arg1, &_arg2); end
|
908
963
|
|
909
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
964
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
910
965
|
def repeated_permutation(*_arg0, **_arg1, &_arg2); end
|
911
966
|
|
912
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
967
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
913
968
|
def replace(*_arg0, **_arg1, &_arg2); end
|
914
969
|
|
915
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
970
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
916
971
|
def reverse(*_arg0, **_arg1, &_arg2); end
|
917
972
|
|
918
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
973
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
919
974
|
def reverse!(*_arg0, **_arg1, &_arg2); end
|
920
975
|
|
921
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
976
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
922
977
|
def reverse_each(*_arg0, **_arg1, &_arg2); end
|
923
978
|
|
924
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
979
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
925
980
|
def rindex(*_arg0, **_arg1, &_arg2); end
|
926
981
|
|
927
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
982
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
928
983
|
def rotate(*_arg0, **_arg1, &_arg2); end
|
929
984
|
|
930
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
985
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
931
986
|
def rotate!(*_arg0, **_arg1, &_arg2); end
|
932
987
|
|
933
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
988
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
934
989
|
def sample(*_arg0, **_arg1, &_arg2); end
|
935
990
|
|
936
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
991
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
937
992
|
def select(*_arg0, **_arg1, &_arg2); end
|
938
993
|
|
939
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
994
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
940
995
|
def select!(*_arg0, **_arg1, &_arg2); end
|
941
996
|
|
942
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
997
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
943
998
|
def shelljoin(*_arg0, **_arg1, &_arg2); end
|
944
999
|
|
945
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1000
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
946
1001
|
def shift(*_arg0, **_arg1, &_arg2); end
|
947
1002
|
|
948
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1003
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
949
1004
|
def shuffle(*_arg0, **_arg1, &_arg2); end
|
950
1005
|
|
951
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1006
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
952
1007
|
def shuffle!(*_arg0, **_arg1, &_arg2); end
|
953
1008
|
|
954
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1009
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
955
1010
|
def size(*_arg0, **_arg1, &_arg2); end
|
956
1011
|
|
957
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1012
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
958
1013
|
def slice(*_arg0, **_arg1, &_arg2); end
|
959
1014
|
|
960
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1015
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
961
1016
|
def slice!(*_arg0, **_arg1, &_arg2); end
|
962
1017
|
|
963
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1018
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
964
1019
|
def slice_after(*_arg0, **_arg1, &_arg2); end
|
965
1020
|
|
966
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1021
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
967
1022
|
def slice_before(*_arg0, **_arg1, &_arg2); end
|
968
1023
|
|
969
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1024
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
970
1025
|
def slice_when(*_arg0, **_arg1, &_arg2); end
|
971
1026
|
|
972
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1027
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
973
1028
|
def sort(*_arg0, **_arg1, &_arg2); end
|
974
1029
|
|
975
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1030
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
976
1031
|
def sort!(*_arg0, **_arg1, &_arg2); end
|
977
1032
|
|
978
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1033
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
979
1034
|
def sort_by(*_arg0, **_arg1, &_arg2); end
|
980
1035
|
|
981
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1036
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
982
1037
|
def sort_by!(*_arg0, **_arg1, &_arg2); end
|
983
1038
|
|
984
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1039
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
985
1040
|
def sum(*_arg0, **_arg1, &_arg2); end
|
986
1041
|
|
987
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1042
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
988
1043
|
def take(*_arg0, **_arg1, &_arg2); end
|
989
1044
|
|
990
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1045
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
991
1046
|
def take_while(*_arg0, **_arg1, &_arg2); end
|
992
1047
|
|
993
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1048
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
994
1049
|
def tally(*_arg0, **_arg1, &_arg2); end
|
995
1050
|
|
996
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1051
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
997
1052
|
def to_ary(*_arg0, **_arg1, &_arg2); end
|
998
1053
|
|
999
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1054
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1000
1055
|
def to_h(*_arg0, **_arg1, &_arg2); end
|
1001
1056
|
|
1002
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1057
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1003
1058
|
def to_set(*_arg0, **_arg1, &_arg2); end
|
1004
1059
|
|
1005
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1060
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1006
1061
|
def transpose(*_arg0, **_arg1, &_arg2); end
|
1007
1062
|
|
1008
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1063
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1009
1064
|
def union(*_arg0, **_arg1, &_arg2); end
|
1010
1065
|
|
1011
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1066
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1012
1067
|
def uniq(*_arg0, **_arg1, &_arg2); end
|
1013
1068
|
|
1014
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1069
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1015
1070
|
def uniq!(*_arg0, **_arg1, &_arg2); end
|
1016
1071
|
|
1017
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1072
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1018
1073
|
def unshift(*_arg0, **_arg1, &_arg2); end
|
1019
1074
|
|
1020
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1075
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1021
1076
|
def values_at(*_arg0, **_arg1, &_arg2); end
|
1022
1077
|
|
1023
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1078
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1024
1079
|
def zip(*_arg0, **_arg1, &_arg2); end
|
1025
1080
|
|
1026
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
1081
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
1027
1082
|
def |(*_arg0, **_arg1, &_arg2); end
|
1028
1083
|
end
|
1029
1084
|
|
@@ -1213,7 +1268,7 @@ class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node
|
|
1213
1268
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
1214
1269
|
include ::RuboCop::AST::MethodDispatchNode
|
1215
1270
|
|
1216
|
-
# source://ast/2.4.
|
1271
|
+
# source://ast/2.4.3/lib/ast/node.rb#56
|
1217
1272
|
def arguments; end
|
1218
1273
|
|
1219
1274
|
# source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#12
|
@@ -1310,20 +1365,38 @@ end
|
|
1310
1365
|
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
1311
1366
|
# Returns the body of the `ensure` clause.
|
1312
1367
|
#
|
1368
|
+
# @deprecated Use `EnsureNode#branch`
|
1313
1369
|
# @return [Node, nil] The body of the `ensure`.
|
1314
1370
|
#
|
1315
|
-
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#
|
1371
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#16
|
1316
1372
|
def body; end
|
1317
1373
|
|
1374
|
+
# Returns an the ensure branch in the exception handling statement.
|
1375
|
+
#
|
1376
|
+
# @return [Node, nil] the body of the ensure branch.
|
1377
|
+
#
|
1378
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#33
|
1379
|
+
def branch; end
|
1380
|
+
|
1381
|
+
# Returns the `rescue` node of the `ensure`, if present.
|
1382
|
+
#
|
1383
|
+
# @return [Node, nil] The `rescue` node.
|
1384
|
+
#
|
1385
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#40
|
1386
|
+
def rescue_node; end
|
1387
|
+
|
1318
1388
|
# Checks whether this node body is a void context.
|
1319
1389
|
# Always `true` for `ensure`.
|
1320
1390
|
#
|
1321
1391
|
# @return [true] whether the `ensure` node body is a void context
|
1322
1392
|
#
|
1323
|
-
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#
|
1393
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#48
|
1324
1394
|
def void_context?; end
|
1325
1395
|
end
|
1326
1396
|
|
1397
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#9
|
1398
|
+
RuboCop::AST::EnsureNode::DEPRECATION_WARNING_LOCATION_CACHE = T.let(T.unsafe(nil), Array)
|
1399
|
+
|
1327
1400
|
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5
|
1328
1401
|
module RuboCop::AST::Ext; end
|
1329
1402
|
|
@@ -1518,7 +1591,7 @@ class RuboCop::AST::HashElementNode::HashElementDelta
|
|
1518
1591
|
|
1519
1592
|
private
|
1520
1593
|
|
1521
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#
|
1594
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#108
|
1522
1595
|
def delta(first, second, alignment = T.unsafe(nil)); end
|
1523
1596
|
|
1524
1597
|
# Returns the value of attribute first.
|
@@ -1528,7 +1601,7 @@ class RuboCop::AST::HashElementNode::HashElementDelta
|
|
1528
1601
|
|
1529
1602
|
# @return [Boolean]
|
1530
1603
|
#
|
1531
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#
|
1604
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#119
|
1532
1605
|
def keyword_splat?; end
|
1533
1606
|
|
1534
1607
|
# Returns the value of attribute second.
|
@@ -1654,12 +1727,12 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1654
1727
|
#
|
1655
1728
|
# @return [Array<Node>] an array of branch nodes
|
1656
1729
|
#
|
1657
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1730
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#154
|
1658
1731
|
def branches; end
|
1659
1732
|
|
1660
1733
|
# @deprecated Use `branches.each`
|
1661
1734
|
#
|
1662
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1735
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#171
|
1663
1736
|
def each_branch(&block); end
|
1664
1737
|
|
1665
1738
|
# Checks whether the `if` node has an `else` clause.
|
@@ -1668,7 +1741,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1668
1741
|
# This is legacy behavior, and many cops rely on it.
|
1669
1742
|
# @return [Boolean] whether the node has an `else` clause
|
1670
1743
|
#
|
1671
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1744
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49
|
1672
1745
|
def else?; end
|
1673
1746
|
|
1674
1747
|
# Returns the branch of the `if` node that gets evaluated when its
|
@@ -1678,7 +1751,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1678
1751
|
# @return [Node] the falsey branch node of the `if` node
|
1679
1752
|
# @return [nil] when there is no else branch
|
1680
1753
|
#
|
1681
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1754
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#133
|
1682
1755
|
def else_branch; end
|
1683
1756
|
|
1684
1757
|
# Checks whether the `if` is an `elsif`. Parser handles these by nesting
|
@@ -1686,7 +1759,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1686
1759
|
#
|
1687
1760
|
# @return [Boolean] whether the node is an `elsif`
|
1688
1761
|
#
|
1689
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1762
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#39
|
1690
1763
|
def elsif?; end
|
1691
1764
|
|
1692
1765
|
# Checks whether the `if` node has at least one `elsif` branch. Returns
|
@@ -1694,7 +1767,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1694
1767
|
#
|
1695
1768
|
# @return [Boolean] whether the `if` node has at least one `elsif` branch
|
1696
1769
|
#
|
1697
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1770
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#111
|
1698
1771
|
def elsif_conditional?; end
|
1699
1772
|
|
1700
1773
|
# Checks whether this node is an `if` statement. (This is not true of
|
@@ -1712,7 +1785,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1712
1785
|
# @return [Node] the truthy branch node of the `if` node
|
1713
1786
|
# @return [nil] if the truthy branch is empty
|
1714
1787
|
#
|
1715
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1788
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#122
|
1716
1789
|
def if_branch; end
|
1717
1790
|
|
1718
1791
|
# Returns the inverse keyword of the `if` node as a string. Returns `if`
|
@@ -1721,7 +1794,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1721
1794
|
#
|
1722
1795
|
# @return [String] the inverse keyword of the `if` statement
|
1723
1796
|
#
|
1724
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1797
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#73
|
1725
1798
|
def inverse_keyword; end
|
1726
1799
|
|
1727
1800
|
# Returns the keyword of the `if` statement as a string. Returns an empty
|
@@ -1729,7 +1802,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1729
1802
|
#
|
1730
1803
|
# @return [String] the keyword of the `if` statement
|
1731
1804
|
#
|
1732
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1805
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#64
|
1733
1806
|
def keyword; end
|
1734
1807
|
|
1735
1808
|
# Checks whether the `if` node is in a modifier form, i.e. a condition
|
@@ -1738,7 +1811,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1738
1811
|
#
|
1739
1812
|
# @return [Boolean] whether the `if` node is a modifier
|
1740
1813
|
#
|
1741
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1814
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#87
|
1742
1815
|
def modifier_form?; end
|
1743
1816
|
|
1744
1817
|
# Checks whether the `if` node has nested `if` nodes in any of its
|
@@ -1747,7 +1820,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1747
1820
|
# @note This performs a shallow search.
|
1748
1821
|
# @return [Boolean] whether the `if` node contains nested conditionals
|
1749
1822
|
#
|
1750
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1823
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#97
|
1751
1824
|
def nested_conditional?; end
|
1752
1825
|
|
1753
1826
|
# Custom destructuring method. This is used to normalize the branches
|
@@ -1755,16 +1828,23 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1755
1828
|
#
|
1756
1829
|
# @return [Array<Node>] the different parts of the `if` statement
|
1757
1830
|
#
|
1758
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1831
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#141
|
1759
1832
|
def node_parts; end
|
1760
1833
|
|
1761
1834
|
# Checks whether the `if` node is a ternary operator.
|
1762
1835
|
#
|
1763
1836
|
# @return [Boolean] whether the `if` node is a ternary operator
|
1764
1837
|
#
|
1765
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1838
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#56
|
1766
1839
|
def ternary?; end
|
1767
1840
|
|
1841
|
+
# Checks whether the `if` node has an `then` clause.
|
1842
|
+
#
|
1843
|
+
# @return [Boolean] whether the node has an `then` clause
|
1844
|
+
#
|
1845
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#31
|
1846
|
+
def then?; end
|
1847
|
+
|
1768
1848
|
# Checks whether this node is an `unless` statement. (This is not true
|
1769
1849
|
# of ternary operators and `if` statements.)
|
1770
1850
|
#
|
@@ -1923,6 +2003,35 @@ class RuboCop::AST::IntNode < ::RuboCop::AST::Node
|
|
1923
2003
|
include ::RuboCop::AST::NumericNode
|
1924
2004
|
end
|
1925
2005
|
|
2006
|
+
# A node extension for `kwbegin` nodes. This will be used in place of a plain
|
2007
|
+
# node when the builder constructs the AST, making its methods available
|
2008
|
+
# to all `kwbegin` nodes within RuboCop.
|
2009
|
+
#
|
2010
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#8
|
2011
|
+
class RuboCop::AST::KeywordBeginNode < ::RuboCop::AST::Node
|
2012
|
+
# Returns the body of the `kwbegin` block. Returns `self` if the `kwbegin` contains
|
2013
|
+
# multiple nodes.
|
2014
|
+
#
|
2015
|
+
# @return [Node, nil] The body of the `kwbegin`.
|
2016
|
+
#
|
2017
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#13
|
2018
|
+
def body; end
|
2019
|
+
|
2020
|
+
# Returns the `rescue` node of the `kwbegin` block, if one is present.
|
2021
|
+
#
|
2022
|
+
# @return [Node, nil] The `rescue` node within `kwbegin`.
|
2023
|
+
#
|
2024
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#30
|
2025
|
+
def ensure_node; end
|
2026
|
+
|
2027
|
+
# Returns the `rescue` node of the `kwbegin` block, if one is present.
|
2028
|
+
#
|
2029
|
+
# @return [Node, nil] The `rescue` node within `kwbegin`.
|
2030
|
+
#
|
2031
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#37
|
2032
|
+
def rescue_node; end
|
2033
|
+
end
|
2034
|
+
|
1926
2035
|
# A node extension for `kwsplat` and `forwarded_kwrestarg` nodes. This will be used in
|
1927
2036
|
# place of a plain node when the builder constructs the AST, making its methods available to
|
1928
2037
|
# all `kwsplat` and `forwarded_kwrestarg` nodes within RuboCop.
|
@@ -2126,7 +2235,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2126
2235
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#64
|
2127
2236
|
def access_modifier?; end
|
2128
2237
|
|
2129
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2238
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#272
|
2130
2239
|
def adjacent_def_modifier?(param0 = T.unsafe(nil)); end
|
2131
2240
|
|
2132
2241
|
# Checks whether this node is an arithmetic operation
|
@@ -2153,7 +2262,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2153
2262
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#73
|
2154
2263
|
def bare_access_modifier?; end
|
2155
2264
|
|
2156
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2265
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#277
|
2157
2266
|
def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
|
2158
2267
|
|
2159
2268
|
# Checks whether this is a binary operation.
|
@@ -2163,7 +2272,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2163
2272
|
# foo + bar
|
2164
2273
|
# @return [Boolean] whether this method is a binary operation
|
2165
2274
|
#
|
2166
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2275
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#247
|
2167
2276
|
def binary_operation?; end
|
2168
2277
|
|
2169
2278
|
# Whether this method dispatch has an explicit block.
|
@@ -2173,10 +2282,10 @@ module RuboCop::AST::MethodDispatchNode
|
|
2173
2282
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#167
|
2174
2283
|
def block_literal?; end
|
2175
2284
|
|
2176
|
-
# The `block` or `
|
2285
|
+
# The `block`, `numblock`, or `itblock` node associated with this method dispatch, if any.
|
2177
2286
|
#
|
2178
|
-
# @return [BlockNode, nil] the `block` or `
|
2179
|
-
# call or `nil`
|
2287
|
+
# @return [BlockNode, nil] the `block`, `numblock`, or `itblock` node associated with this
|
2288
|
+
# method call or `nil`
|
2180
2289
|
#
|
2181
2290
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46
|
2182
2291
|
def block_node; end
|
@@ -2250,7 +2359,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2250
2359
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#160
|
2251
2360
|
def implicit_call?; end
|
2252
2361
|
|
2253
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2362
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#256
|
2254
2363
|
def in_macro_scope?(param0 = T.unsafe(nil)); end
|
2255
2364
|
|
2256
2365
|
# Checks whether this is a lambda. Some versions of parser parses
|
@@ -2258,7 +2367,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2258
2367
|
#
|
2259
2368
|
# @return [Boolean] whether this method is a lambda
|
2260
2369
|
#
|
2261
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2370
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#212
|
2262
2371
|
def lambda?; end
|
2263
2372
|
|
2264
2373
|
# Checks whether this is a lambda literal (stabby lambda.)
|
@@ -2268,7 +2377,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2268
2377
|
# -> (foo) { bar }
|
2269
2378
|
# @return [Boolean] whether this method is a lambda literal
|
2270
2379
|
#
|
2271
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2380
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#223
|
2272
2381
|
def lambda_literal?; end
|
2273
2382
|
|
2274
2383
|
# Checks whether the dispatched method is a macro method. A macro method
|
@@ -2297,7 +2406,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2297
2406
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#82
|
2298
2407
|
def non_bare_access_modifier?; end
|
2299
2408
|
|
2300
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2409
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#282
|
2301
2410
|
def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
|
2302
2411
|
|
2303
2412
|
# The receiving node of the method dispatch.
|
@@ -2353,7 +2462,7 @@ module RuboCop::AST::MethodDispatchNode
|
|
2353
2462
|
# -foo
|
2354
2463
|
# @return [Boolean] whether this method is a unary operation
|
2355
2464
|
#
|
2356
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#
|
2465
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#234
|
2357
2466
|
def unary_operation?; end
|
2358
2467
|
end
|
2359
2468
|
|
@@ -2550,11 +2659,12 @@ RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil)
|
|
2550
2659
|
class RuboCop::AST::MlhsNode < ::RuboCop::AST::Node
|
2551
2660
|
# Returns all the assignment nodes on the left hand side (LHS) of a multiple assignment.
|
2552
2661
|
# These are generally assignment nodes (`lvasgn`, `ivasgn`, `cvasgn`, `gvasgn`, `casgn`)
|
2553
|
-
# but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ...
|
2662
|
+
# but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ... =`,
|
2663
|
+
# or a `splat` node for `*, ... =`.
|
2554
2664
|
#
|
2555
2665
|
# @return [Array<Node>] the assignment nodes of the multiple assignment LHS
|
2556
2666
|
#
|
2557
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#
|
2667
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#15
|
2558
2668
|
def assignments; end
|
2559
2669
|
end
|
2560
2670
|
|
@@ -2628,19 +2738,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2628
2738
|
# @return [Node] a new instance of Node
|
2629
2739
|
# @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
|
2630
2740
|
#
|
2631
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2741
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#148
|
2632
2742
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
2633
2743
|
|
2634
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2744
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2635
2745
|
def __ENCODING___type?; end
|
2636
2746
|
|
2637
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2747
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2638
2748
|
def __FILE___type?; end
|
2639
2749
|
|
2640
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2750
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2641
2751
|
def __LINE___type?; end
|
2642
2752
|
|
2643
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2753
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2644
2754
|
def alias_type?; end
|
2645
2755
|
|
2646
2756
|
# Returns an array of ancestor nodes.
|
@@ -2648,173 +2758,188 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2648
2758
|
#
|
2649
2759
|
# @return [Array<Node>] an array of ancestor nodes
|
2650
2760
|
#
|
2651
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2761
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#313
|
2652
2762
|
def ancestors; end
|
2653
2763
|
|
2654
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2764
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2655
2765
|
def and_asgn_type?; end
|
2656
2766
|
|
2657
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2767
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2658
2768
|
def and_type?; end
|
2659
2769
|
|
2660
|
-
#
|
2770
|
+
# @return [Boolean]
|
2771
|
+
#
|
2772
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#542
|
2773
|
+
def any_block_type?; end
|
2774
|
+
|
2775
|
+
# @return [Boolean]
|
2776
|
+
#
|
2777
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#522
|
2778
|
+
def any_def_type?; end
|
2779
|
+
|
2780
|
+
# @return [Boolean]
|
2781
|
+
#
|
2782
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#546
|
2783
|
+
def any_match_pattern_type?; end
|
2784
|
+
|
2785
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2661
2786
|
def arg_expr_type?; end
|
2662
2787
|
|
2663
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2788
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2664
2789
|
def arg_type?; end
|
2665
2790
|
|
2666
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2791
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2667
2792
|
def args_type?; end
|
2668
2793
|
|
2669
2794
|
# @return [Boolean]
|
2670
2795
|
#
|
2671
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2796
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#518
|
2672
2797
|
def argument?; end
|
2673
2798
|
|
2674
2799
|
# @return [Boolean]
|
2675
2800
|
#
|
2676
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2801
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#526
|
2677
2802
|
def argument_type?; end
|
2678
2803
|
|
2679
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2804
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2680
2805
|
def array_pattern_type?; end
|
2681
2806
|
|
2682
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2807
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2683
2808
|
def array_pattern_with_tail_type?; end
|
2684
2809
|
|
2685
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2810
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2686
2811
|
def array_type?; end
|
2687
2812
|
|
2688
2813
|
# @return [Boolean]
|
2689
2814
|
#
|
2690
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2815
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#470
|
2691
2816
|
def assignment?; end
|
2692
2817
|
|
2693
2818
|
# Some cops treat the shovel operator as a kind of assignment.
|
2694
2819
|
#
|
2695
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2820
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#420
|
2696
2821
|
def assignment_or_similar?(param0 = T.unsafe(nil)); end
|
2697
2822
|
|
2698
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2823
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2699
2824
|
def back_ref_type?; end
|
2700
2825
|
|
2701
2826
|
# @return [Boolean]
|
2702
2827
|
#
|
2703
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2828
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#474
|
2704
2829
|
def basic_conditional?; end
|
2705
2830
|
|
2706
2831
|
# @return [Boolean]
|
2707
2832
|
#
|
2708
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2833
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#428
|
2709
2834
|
def basic_literal?; end
|
2710
2835
|
|
2711
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2836
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2712
2837
|
def begin_type?; end
|
2713
2838
|
|
2714
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2839
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2715
2840
|
def block_pass_type?; end
|
2716
2841
|
|
2717
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2842
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2718
2843
|
def block_type?; end
|
2719
2844
|
|
2720
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2845
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2721
2846
|
def blockarg_expr_type?; end
|
2722
2847
|
|
2723
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2848
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2724
2849
|
def blockarg_type?; end
|
2725
2850
|
|
2726
2851
|
# @return [Boolean]
|
2727
2852
|
#
|
2728
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2853
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#530
|
2729
2854
|
def boolean_type?; end
|
2730
2855
|
|
2731
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2856
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2732
2857
|
def break_type?; end
|
2733
2858
|
|
2734
2859
|
# @return [Boolean]
|
2735
2860
|
#
|
2736
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2861
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#510
|
2737
2862
|
def call_type?; end
|
2738
2863
|
|
2739
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2864
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2740
2865
|
def case_match_type?; end
|
2741
2866
|
|
2742
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2867
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2743
2868
|
def case_type?; end
|
2744
2869
|
|
2745
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2870
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2746
2871
|
def casgn_type?; end
|
2747
2872
|
|
2748
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2873
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2749
2874
|
def cbase_type?; end
|
2750
2875
|
|
2751
2876
|
# @return [Boolean]
|
2752
2877
|
#
|
2753
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2878
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#514
|
2754
2879
|
def chained?; end
|
2755
2880
|
|
2756
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2881
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#594
|
2757
2882
|
def class_constructor?(param0 = T.unsafe(nil)); end
|
2758
2883
|
|
2759
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2884
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#612
|
2760
2885
|
def class_definition?(param0 = T.unsafe(nil)); end
|
2761
2886
|
|
2762
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2887
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2763
2888
|
def class_type?; end
|
2764
2889
|
|
2765
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2890
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#210
|
2766
2891
|
def complete!; end
|
2767
2892
|
|
2768
2893
|
# @return [Boolean]
|
2769
2894
|
#
|
2770
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2895
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#215
|
2771
2896
|
def complete?; end
|
2772
2897
|
|
2773
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2898
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2774
2899
|
def complex_type?; end
|
2775
2900
|
|
2776
2901
|
# @return [Boolean]
|
2777
2902
|
#
|
2778
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2903
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#478
|
2779
2904
|
def conditional?; end
|
2780
2905
|
|
2781
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2906
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#359
|
2782
2907
|
def const_name; end
|
2783
2908
|
|
2784
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2909
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2785
2910
|
def const_pattern_type?; end
|
2786
2911
|
|
2787
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2912
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2788
2913
|
def const_type?; end
|
2789
2914
|
|
2790
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2915
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2791
2916
|
def csend_type?; end
|
2792
2917
|
|
2793
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2918
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2794
2919
|
def cvar_type?; end
|
2795
2920
|
|
2796
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2921
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2797
2922
|
def cvasgn_type?; end
|
2798
2923
|
|
2799
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2924
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2800
2925
|
def def_type?; end
|
2801
2926
|
|
2802
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2927
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#379
|
2803
2928
|
def defined_module; end
|
2804
2929
|
|
2805
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2930
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#384
|
2806
2931
|
def defined_module_name; end
|
2807
2932
|
|
2808
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2933
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2809
2934
|
def defined_type?; end
|
2810
2935
|
|
2811
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2936
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2812
2937
|
def defs_type?; end
|
2813
2938
|
|
2814
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2939
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2815
2940
|
def dstr_type?; end
|
2816
2941
|
|
2817
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2942
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2818
2943
|
def dsym_type?; end
|
2819
2944
|
|
2820
2945
|
# Calls the given block for each ancestor node from parent to root.
|
@@ -2827,163 +2952,169 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2827
2952
|
# @return [Enumerator] if no block is given
|
2828
2953
|
# @yieldparam node [Node] each ancestor node
|
2829
2954
|
#
|
2830
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2955
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#301
|
2831
2956
|
def each_ancestor(*types, &block); end
|
2832
2957
|
|
2833
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2958
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2834
2959
|
def eflipflop_type?; end
|
2835
2960
|
|
2836
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2961
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2837
2962
|
def empty_else_type?; end
|
2838
2963
|
|
2839
2964
|
# @return [Boolean]
|
2840
2965
|
#
|
2841
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2966
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#414
|
2842
2967
|
def empty_source?; end
|
2843
2968
|
|
2844
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2969
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2845
2970
|
def ensure_type?; end
|
2846
2971
|
|
2847
2972
|
# @return [Boolean]
|
2848
2973
|
#
|
2849
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2974
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#462
|
2850
2975
|
def equals_asgn?; end
|
2851
2976
|
|
2852
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2977
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2853
2978
|
def erange_type?; end
|
2854
2979
|
|
2855
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2980
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2856
2981
|
def false_type?; end
|
2857
2982
|
|
2858
2983
|
# @return [Boolean]
|
2859
2984
|
#
|
2860
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2985
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#436
|
2861
2986
|
def falsey_literal?; end
|
2862
2987
|
|
2863
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2988
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2864
2989
|
def find_pattern_type?; end
|
2865
2990
|
|
2866
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2991
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#327
|
2867
2992
|
def first_line; end
|
2868
2993
|
|
2869
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2994
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2870
2995
|
def float_type?; end
|
2871
2996
|
|
2872
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2997
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2873
2998
|
def for_type?; end
|
2874
2999
|
|
2875
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3000
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2876
3001
|
def forward_arg_type?; end
|
2877
3002
|
|
2878
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3003
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2879
3004
|
def forward_args_type?; end
|
2880
3005
|
|
2881
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3006
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2882
3007
|
def forwarded_args_type?; end
|
2883
3008
|
|
2884
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3009
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2885
3010
|
def forwarded_kwrestarg_type?; end
|
2886
3011
|
|
2887
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3012
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2888
3013
|
def forwarded_restarg_type?; end
|
2889
3014
|
|
2890
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3015
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#591
|
2891
3016
|
def global_const?(param0 = T.unsafe(nil), param1); end
|
2892
3017
|
|
2893
3018
|
# @return [Boolean]
|
2894
3019
|
#
|
2895
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3020
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#550
|
2896
3021
|
def guard_clause?; end
|
2897
3022
|
|
2898
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3023
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2899
3024
|
def gvar_type?; end
|
2900
3025
|
|
2901
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3026
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2902
3027
|
def gvasgn_type?; end
|
2903
3028
|
|
2904
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3029
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2905
3030
|
def hash_pattern_type?; end
|
2906
3031
|
|
2907
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3032
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2908
3033
|
def hash_type?; end
|
2909
3034
|
|
2910
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3035
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2911
3036
|
def ident_type?; end
|
2912
3037
|
|
2913
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3038
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2914
3039
|
def if_guard_type?; end
|
2915
3040
|
|
2916
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3041
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2917
3042
|
def if_type?; end
|
2918
3043
|
|
2919
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3044
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2920
3045
|
def iflipflop_type?; end
|
2921
3046
|
|
2922
3047
|
# @return [Boolean]
|
2923
3048
|
#
|
2924
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3049
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#444
|
2925
3050
|
def immutable_literal?; end
|
2926
3051
|
|
2927
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3052
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2928
3053
|
def in_match_type?; end
|
2929
3054
|
|
2930
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3055
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2931
3056
|
def in_pattern_type?; end
|
2932
3057
|
|
2933
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3058
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2934
3059
|
def index_type?; end
|
2935
3060
|
|
2936
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3061
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2937
3062
|
def indexasgn_type?; end
|
2938
3063
|
|
2939
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3064
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2940
3065
|
def int_type?; end
|
2941
3066
|
|
2942
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3067
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2943
3068
|
def irange_type?; end
|
2944
3069
|
|
2945
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3070
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3071
|
+
def itarg_type?; end
|
3072
|
+
|
3073
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3074
|
+
def itblock_type?; end
|
3075
|
+
|
3076
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2946
3077
|
def ivar_type?; end
|
2947
3078
|
|
2948
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3079
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2949
3080
|
def ivasgn_type?; end
|
2950
3081
|
|
2951
3082
|
# @return [Boolean]
|
2952
3083
|
#
|
2953
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3084
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#491
|
2954
3085
|
def keyword?; end
|
2955
3086
|
|
2956
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3087
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2957
3088
|
def kwarg_type?; end
|
2958
3089
|
|
2959
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3090
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2960
3091
|
def kwargs_type?; end
|
2961
3092
|
|
2962
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3093
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2963
3094
|
def kwbegin_type?; end
|
2964
3095
|
|
2965
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3096
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2966
3097
|
def kwnilarg_type?; end
|
2967
3098
|
|
2968
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3099
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2969
3100
|
def kwoptarg_type?; end
|
2970
3101
|
|
2971
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3102
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2972
3103
|
def kwrestarg_type?; end
|
2973
3104
|
|
2974
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3105
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2975
3106
|
def kwsplat_type?; end
|
2976
3107
|
|
2977
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3108
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#585
|
2978
3109
|
def lambda?(param0 = T.unsafe(nil)); end
|
2979
3110
|
|
2980
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3111
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#588
|
2981
3112
|
def lambda_or_proc?(param0 = T.unsafe(nil)); end
|
2982
3113
|
|
2983
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3114
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
2984
3115
|
def lambda_type?; end
|
2985
3116
|
|
2986
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3117
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#331
|
2987
3118
|
def last_line; end
|
2988
3119
|
|
2989
3120
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2991,7 +3122,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2991
3122
|
#
|
2992
3123
|
# @return [Node, nil] the left (aka previous) sibling
|
2993
3124
|
#
|
2994
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3125
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#253
|
2995
3126
|
def left_sibling; end
|
2996
3127
|
|
2997
3128
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2999,94 +3130,109 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2999
3130
|
#
|
3000
3131
|
# @return [Array<Node>] the left (aka previous) siblings
|
3001
3132
|
#
|
3002
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3133
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#263
|
3003
3134
|
def left_siblings; end
|
3004
3135
|
|
3005
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3136
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#335
|
3006
3137
|
def line_count; end
|
3007
3138
|
|
3008
3139
|
# @return [Boolean]
|
3009
3140
|
#
|
3010
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3141
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#424
|
3011
3142
|
def literal?; end
|
3012
3143
|
|
3144
|
+
# Shortcut to safely check if a location is present
|
3145
|
+
#
|
3146
|
+
# @return [Boolean]
|
3147
|
+
#
|
3148
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#558
|
3149
|
+
def loc?(which_loc); end
|
3150
|
+
|
3151
|
+
# Shortcut to safely test a particular location, even if
|
3152
|
+
# this location does not exist or is `nil`
|
3153
|
+
#
|
3154
|
+
# @return [Boolean]
|
3155
|
+
#
|
3156
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#566
|
3157
|
+
def loc_is?(which_loc, str); end
|
3158
|
+
|
3013
3159
|
# NOTE: `loop { }` is a normal method call and thus not a loop keyword.
|
3014
3160
|
#
|
3015
3161
|
# @return [Boolean]
|
3016
3162
|
#
|
3017
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3163
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#487
|
3018
3164
|
def loop_keyword?; end
|
3019
3165
|
|
3020
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3166
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3021
3167
|
def lvar_type?; end
|
3022
3168
|
|
3023
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3169
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3024
3170
|
def lvasgn_type?; end
|
3025
3171
|
|
3026
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3172
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3027
3173
|
def masgn_type?; end
|
3028
3174
|
|
3029
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3175
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3030
3176
|
def match_alt_type?; end
|
3031
3177
|
|
3032
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3178
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3033
3179
|
def match_as_type?; end
|
3034
3180
|
|
3035
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3181
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3036
3182
|
def match_current_line_type?; end
|
3037
3183
|
|
3038
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3184
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#573
|
3039
3185
|
def match_guard_clause?(param0 = T.unsafe(nil)); end
|
3040
3186
|
|
3041
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3187
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3042
3188
|
def match_nil_pattern_type?; end
|
3043
3189
|
|
3044
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3190
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3045
3191
|
def match_pattern_p_type?; end
|
3046
3192
|
|
3047
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3193
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3048
3194
|
def match_pattern_type?; end
|
3049
3195
|
|
3050
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3196
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3051
3197
|
def match_rest_type?; end
|
3052
3198
|
|
3053
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3199
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3054
3200
|
def match_var_type?; end
|
3055
3201
|
|
3056
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3202
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3057
3203
|
def match_with_lvasgn_type?; end
|
3058
3204
|
|
3059
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3205
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3060
3206
|
def match_with_trailing_comma_type?; end
|
3061
3207
|
|
3062
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3208
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3063
3209
|
def mlhs_type?; end
|
3064
3210
|
|
3065
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3211
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#619
|
3066
3212
|
def module_definition?(param0 = T.unsafe(nil)); end
|
3067
3213
|
|
3068
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3214
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3069
3215
|
def module_type?; end
|
3070
3216
|
|
3071
3217
|
# Predicates
|
3072
3218
|
#
|
3073
3219
|
# @return [Boolean]
|
3074
3220
|
#
|
3075
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3221
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#406
|
3076
3222
|
def multiline?; end
|
3077
3223
|
|
3078
3224
|
# @return [Boolean]
|
3079
3225
|
#
|
3080
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3226
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#440
|
3081
3227
|
def mutable_literal?; end
|
3082
3228
|
|
3083
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3229
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#750
|
3084
3230
|
def new_class_or_module_block?(param0 = T.unsafe(nil)); end
|
3085
3231
|
|
3086
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3232
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3087
3233
|
def next_type?; end
|
3088
3234
|
|
3089
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3235
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3090
3236
|
def nil_type?; end
|
3091
3237
|
|
3092
3238
|
# Common destructuring method. This can be used to normalize
|
@@ -3096,98 +3242,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3096
3242
|
#
|
3097
3243
|
# @return [Array<Node>] the different parts of the ndde
|
3098
3244
|
#
|
3099
|
-
# source://ast/2.4.
|
3245
|
+
# source://ast/2.4.3/lib/ast/node.rb#56
|
3100
3246
|
def node_parts; end
|
3101
3247
|
|
3102
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3248
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#341
|
3103
3249
|
def nonempty_line_count; end
|
3104
3250
|
|
3105
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3251
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3106
3252
|
def not_type?; end
|
3107
3253
|
|
3108
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3254
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3109
3255
|
def nth_ref_type?; end
|
3110
3256
|
|
3111
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3257
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3112
3258
|
def numargs_type?; end
|
3113
3259
|
|
3114
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3260
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3115
3261
|
def numblock_type?; end
|
3116
3262
|
|
3117
3263
|
# @return [Boolean]
|
3118
3264
|
#
|
3119
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3265
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#534
|
3120
3266
|
def numeric_type?; end
|
3121
3267
|
|
3122
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3268
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3123
3269
|
def objc_kwarg_type?; end
|
3124
3270
|
|
3125
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3271
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3126
3272
|
def objc_restarg_type?; end
|
3127
3273
|
|
3128
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3274
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3129
3275
|
def objc_varargs_type?; end
|
3130
3276
|
|
3131
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3277
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3132
3278
|
def op_asgn_type?; end
|
3133
3279
|
|
3134
3280
|
# @return [Boolean]
|
3135
3281
|
#
|
3136
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3282
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#502
|
3137
3283
|
def operator_keyword?; end
|
3138
3284
|
|
3139
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3285
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3140
3286
|
def optarg_type?; end
|
3141
3287
|
|
3142
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3288
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3143
3289
|
def or_asgn_type?; end
|
3144
3290
|
|
3145
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3291
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3146
3292
|
def or_type?; end
|
3147
3293
|
|
3148
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3294
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3149
3295
|
def pair_type?; end
|
3150
3296
|
|
3151
3297
|
# Returns the parent node, or `nil` if the receiver is a root node.
|
3152
3298
|
#
|
3153
3299
|
# @return [Node, nil] the parent node or `nil`
|
3154
3300
|
#
|
3155
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3301
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#192
|
3156
3302
|
def parent; end
|
3157
3303
|
|
3158
3304
|
# @return [Boolean]
|
3159
3305
|
#
|
3160
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3306
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#201
|
3161
3307
|
def parent?; end
|
3162
3308
|
|
3163
3309
|
# Searching the AST
|
3164
3310
|
#
|
3165
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3311
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#390
|
3166
3312
|
def parent_module_name; end
|
3167
3313
|
|
3168
3314
|
# @return [Boolean]
|
3169
3315
|
#
|
3170
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3316
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#506
|
3171
3317
|
def parenthesized_call?; end
|
3172
3318
|
|
3173
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3319
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3174
3320
|
def pin_type?; end
|
3175
3321
|
|
3176
3322
|
# @return [Boolean]
|
3177
3323
|
#
|
3178
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3324
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#482
|
3179
3325
|
def post_condition_loop?; end
|
3180
3326
|
|
3181
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3327
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3182
3328
|
def postexe_type?; end
|
3183
3329
|
|
3184
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3330
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3185
3331
|
def preexe_type?; end
|
3186
3332
|
|
3187
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3333
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#578
|
3188
3334
|
def proc?(param0 = T.unsafe(nil)); end
|
3189
3335
|
|
3190
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3336
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3191
3337
|
def procarg0_type?; end
|
3192
3338
|
|
3193
3339
|
# Some expressions are evaluated for their value, some for their side
|
@@ -3200,60 +3346,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3200
3346
|
#
|
3201
3347
|
# @return [Boolean]
|
3202
3348
|
#
|
3203
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3349
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#662
|
3204
3350
|
def pure?; end
|
3205
3351
|
|
3206
3352
|
# @return [Boolean]
|
3207
3353
|
#
|
3208
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3354
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#538
|
3209
3355
|
def range_type?; end
|
3210
3356
|
|
3211
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3357
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3212
3358
|
def rational_type?; end
|
3213
3359
|
|
3214
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3360
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#352
|
3215
3361
|
def receiver(param0 = T.unsafe(nil)); end
|
3216
3362
|
|
3217
3363
|
# @return [Boolean]
|
3218
3364
|
#
|
3219
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3365
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#132
|
3220
3366
|
def recursive_basic_literal?; end
|
3221
3367
|
|
3222
3368
|
# @return [Boolean]
|
3223
3369
|
#
|
3224
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3370
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#132
|
3225
3371
|
def recursive_literal?; end
|
3226
3372
|
|
3227
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3373
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3228
3374
|
def redo_type?; end
|
3229
3375
|
|
3230
3376
|
# @return [Boolean]
|
3231
3377
|
#
|
3232
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3378
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#458
|
3233
3379
|
def reference?; end
|
3234
3380
|
|
3235
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3381
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3236
3382
|
def regexp_type?; end
|
3237
3383
|
|
3238
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3384
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3239
3385
|
def regopt_type?; end
|
3240
3386
|
|
3241
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3387
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3242
3388
|
def resbody_type?; end
|
3243
3389
|
|
3244
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3390
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3245
3391
|
def rescue_type?; end
|
3246
3392
|
|
3247
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3393
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3248
3394
|
def restarg_expr_type?; end
|
3249
3395
|
|
3250
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3396
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3251
3397
|
def restarg_type?; end
|
3252
3398
|
|
3253
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3399
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3254
3400
|
def retry_type?; end
|
3255
3401
|
|
3256
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3402
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3257
3403
|
def return_type?; end
|
3258
3404
|
|
3259
3405
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3261,7 +3407,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3261
3407
|
#
|
3262
3408
|
# @return [Node, nil] the right (aka next) sibling
|
3263
3409
|
#
|
3264
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3410
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#244
|
3265
3411
|
def right_sibling; end
|
3266
3412
|
|
3267
3413
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3269,18 +3415,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3269
3415
|
#
|
3270
3416
|
# @return [Array<Node>] the right (aka next) siblings
|
3271
3417
|
#
|
3272
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3418
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#272
|
3273
3419
|
def right_siblings; end
|
3274
3420
|
|
3275
3421
|
# @return [Boolean]
|
3276
3422
|
#
|
3277
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3423
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#206
|
3278
3424
|
def root?; end
|
3279
3425
|
|
3280
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3426
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3281
3427
|
def sclass_type?; end
|
3282
3428
|
|
3283
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3429
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3284
3430
|
def self_type?; end
|
3285
3431
|
|
3286
3432
|
# Most nodes are of 'send' type, so this method is defined
|
@@ -3288,15 +3434,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3288
3434
|
#
|
3289
3435
|
# @return [Boolean]
|
3290
3436
|
#
|
3291
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3437
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#185
|
3292
3438
|
def send_type?; end
|
3293
3439
|
|
3294
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3440
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3295
3441
|
def shadowarg_type?; end
|
3296
3442
|
|
3297
3443
|
# @return [Boolean]
|
3298
3444
|
#
|
3299
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3445
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#466
|
3300
3446
|
def shorthand_asgn?; end
|
3301
3447
|
|
3302
3448
|
# Returns the index of the receiver node in its siblings. (Sibling index
|
@@ -3305,70 +3451,79 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3305
3451
|
#
|
3306
3452
|
# @return [Integer, nil] the index of the receiver node in its siblings
|
3307
3453
|
#
|
3308
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3454
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#237
|
3309
3455
|
def sibling_index; end
|
3310
3456
|
|
3311
3457
|
# @return [Boolean]
|
3312
3458
|
#
|
3313
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3459
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#410
|
3314
3460
|
def single_line?; end
|
3315
3461
|
|
3316
3462
|
# NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
|
3317
3463
|
#
|
3318
3464
|
# @return [String, nil]
|
3319
3465
|
#
|
3320
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3466
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#319
|
3321
3467
|
def source; end
|
3322
3468
|
|
3323
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3469
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#345
|
3324
3470
|
def source_length; end
|
3325
3471
|
|
3326
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3472
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#323
|
3327
3473
|
def source_range; end
|
3328
3474
|
|
3329
3475
|
# @return [Boolean]
|
3330
3476
|
#
|
3331
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3477
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#498
|
3332
3478
|
def special_keyword?; end
|
3333
3479
|
|
3334
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3480
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3335
3481
|
def splat_type?; end
|
3336
3482
|
|
3337
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3483
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#357
|
3338
3484
|
def str_content(param0 = T.unsafe(nil)); end
|
3339
3485
|
|
3340
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3486
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3341
3487
|
def str_type?; end
|
3342
3488
|
|
3343
3489
|
# @deprecated Use `:class_constructor?`
|
3344
3490
|
#
|
3345
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3491
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#607
|
3346
3492
|
def struct_constructor?(param0 = T.unsafe(nil)); end
|
3347
3493
|
|
3348
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3494
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3349
3495
|
def super_type?; end
|
3350
3496
|
|
3351
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3497
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3352
3498
|
def sym_type?; end
|
3353
3499
|
|
3354
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3500
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3355
3501
|
def true_type?; end
|
3356
3502
|
|
3357
3503
|
# @return [Boolean]
|
3358
3504
|
#
|
3359
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3505
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#432
|
3360
3506
|
def truthy_literal?; end
|
3361
3507
|
|
3362
|
-
#
|
3508
|
+
# Determine if the node is one of several node types in a single query
|
3509
|
+
# Allows specific single node types, as well as "grouped" types
|
3510
|
+
# (e.g. `:boolean` for `:true` or `:false`)
|
3511
|
+
#
|
3512
|
+
# @return [Boolean]
|
3513
|
+
#
|
3514
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#167
|
3515
|
+
def type?(*types); end
|
3516
|
+
|
3517
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3363
3518
|
def undef_type?; end
|
3364
3519
|
|
3365
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3520
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3366
3521
|
def unless_guard_type?; end
|
3367
3522
|
|
3368
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3523
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3369
3524
|
def until_post_type?; end
|
3370
3525
|
|
3371
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3526
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3372
3527
|
def until_type?; end
|
3373
3528
|
|
3374
3529
|
# Override `AST::Node#updated` so that `AST::Processor` does not try to
|
@@ -3377,7 +3532,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3377
3532
|
# identical subtrees. Rather, the entire AST must be copied any time any
|
3378
3533
|
# part of it is changed.
|
3379
3534
|
#
|
3380
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3535
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#226
|
3381
3536
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
3382
3537
|
|
3383
3538
|
# Some expressions are evaluated for their value, some for their side
|
@@ -3390,87 +3545,82 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3390
3545
|
#
|
3391
3546
|
# @return [Boolean]
|
3392
3547
|
#
|
3393
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3548
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#632
|
3394
3549
|
def value_used?; end
|
3395
3550
|
|
3396
3551
|
# @return [Boolean]
|
3397
3552
|
#
|
3398
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3553
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#454
|
3399
3554
|
def variable?; end
|
3400
3555
|
|
3401
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3556
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3402
3557
|
def when_type?; end
|
3403
3558
|
|
3404
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3559
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3405
3560
|
def while_post_type?; end
|
3406
3561
|
|
3407
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3562
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3408
3563
|
def while_type?; end
|
3409
3564
|
|
3410
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3565
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3411
3566
|
def xstr_type?; end
|
3412
3567
|
|
3413
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3568
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3414
3569
|
def yield_type?; end
|
3415
3570
|
|
3416
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3571
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#177
|
3417
3572
|
def zsuper_type?; end
|
3418
3573
|
|
3419
3574
|
protected
|
3420
3575
|
|
3421
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3576
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#196
|
3422
3577
|
def parent=(node); end
|
3423
3578
|
|
3424
3579
|
private
|
3425
3580
|
|
3426
3581
|
# @return [Boolean]
|
3427
3582
|
#
|
3428
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3583
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#689
|
3429
3584
|
def begin_value_used?; end
|
3430
3585
|
|
3431
3586
|
# @return [Boolean]
|
3432
3587
|
#
|
3433
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3588
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#700
|
3434
3589
|
def case_if_value_used?; end
|
3435
3590
|
|
3436
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3591
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#370
|
3437
3592
|
def defined_module0(param0 = T.unsafe(nil)); end
|
3438
3593
|
|
3439
3594
|
# @return [Boolean]
|
3440
3595
|
#
|
3441
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3596
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#694
|
3442
3597
|
def for_value_used?; end
|
3443
3598
|
|
3444
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3599
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#736
|
3445
3600
|
def parent_module_name_for_block(ancestor); end
|
3446
3601
|
|
3447
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3602
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#724
|
3448
3603
|
def parent_module_name_for_sclass(sclass_node); end
|
3449
3604
|
|
3450
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3605
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#711
|
3451
3606
|
def parent_module_name_part(node); end
|
3452
3607
|
|
3453
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3608
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#680
|
3454
3609
|
def visit_ancestors(types); end
|
3455
3610
|
|
3456
3611
|
# @return [Boolean]
|
3457
3612
|
#
|
3458
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3613
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#706
|
3459
3614
|
def while_until_value_used?; end
|
3460
3615
|
|
3461
3616
|
class << self
|
3462
3617
|
private
|
3463
3618
|
|
3464
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3619
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#127
|
3465
3620
|
def def_recursive_literal_predicate(kind); end
|
3466
3621
|
end
|
3467
3622
|
end
|
3468
3623
|
|
3469
|
-
# @api private
|
3470
|
-
#
|
3471
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#80
|
3472
|
-
RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set)
|
3473
|
-
|
3474
3624
|
# @api private
|
3475
3625
|
#
|
3476
3626
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#55
|
@@ -3503,10 +3653,10 @@ RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
|
|
3503
3653
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#60
|
3504
3654
|
RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
|
3505
3655
|
|
3506
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3656
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#84
|
3507
3657
|
RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array)
|
3508
3658
|
|
3509
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3659
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#85
|
3510
3660
|
RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash)
|
3511
3661
|
|
3512
3662
|
# @api private
|
@@ -3519,6 +3669,11 @@ RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
|
|
3519
3669
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#35
|
3520
3670
|
RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set)
|
3521
3671
|
|
3672
|
+
# @api private
|
3673
|
+
#
|
3674
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#89
|
3675
|
+
RuboCop::AST::Node::GROUP_FOR_TYPE = T.let(T.unsafe(nil), Hash)
|
3676
|
+
|
3522
3677
|
# @api private
|
3523
3678
|
#
|
3524
3679
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#47
|
@@ -3534,10 +3689,10 @@ RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set)
|
|
3534
3689
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#37
|
3535
3690
|
RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set)
|
3536
3691
|
|
3537
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3692
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#80
|
3538
3693
|
RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set)
|
3539
3694
|
|
3540
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3695
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#81
|
3541
3696
|
RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set)
|
3542
3697
|
|
3543
3698
|
# @api private
|
@@ -3625,7 +3780,7 @@ class RuboCop::AST::NodePattern
|
|
3625
3780
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3626
3781
|
def ast; end
|
3627
3782
|
|
3628
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
3783
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
3629
3784
|
def captures(*_arg0, **_arg1, &_arg2); end
|
3630
3785
|
|
3631
3786
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
|
@@ -3654,7 +3809,7 @@ class RuboCop::AST::NodePattern
|
|
3654
3809
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3655
3810
|
def match_code; end
|
3656
3811
|
|
3657
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
3812
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
3658
3813
|
def named_parameters(*_arg0, **_arg1, &_arg2); end
|
3659
3814
|
|
3660
3815
|
# Returns the value of attribute pattern.
|
@@ -3662,7 +3817,7 @@ class RuboCop::AST::NodePattern
|
|
3662
3817
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3663
3818
|
def pattern; end
|
3664
3819
|
|
3665
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
3820
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
3666
3821
|
def positional_parameters(*_arg0, **_arg1, &_arg2); end
|
3667
3822
|
|
3668
3823
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
|
@@ -3775,7 +3930,7 @@ class RuboCop::AST::NodePattern::Compiler
|
|
3775
3930
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
|
3776
3931
|
def initialize; end
|
3777
3932
|
|
3778
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
3933
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
3779
3934
|
def bind(*_arg0, **_arg1, &_arg2); end
|
3780
3935
|
|
3781
3936
|
# Returns the value of attribute binding.
|
@@ -3919,79 +4074,74 @@ end
|
|
3919
4074
|
class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler
|
3920
4075
|
# @return [Debug] a new instance of Debug
|
3921
4076
|
#
|
3922
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4077
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#118
|
3923
4078
|
def initialize; end
|
3924
4079
|
|
3925
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
4080
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
3926
4081
|
def comments(*_arg0, **_arg1, &_arg2); end
|
3927
4082
|
|
3928
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4083
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
|
3929
4084
|
def named_parameters; end
|
3930
4085
|
|
3931
4086
|
# Returns the value of attribute node_ids.
|
3932
4087
|
#
|
3933
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4088
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#35
|
3934
4089
|
def node_ids; end
|
3935
4090
|
|
3936
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4091
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#127
|
3937
4092
|
def parser; end
|
3938
4093
|
|
3939
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
4094
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
3940
4095
|
def tokens(*_arg0, **_arg1, &_arg2); end
|
3941
4096
|
end
|
3942
4097
|
|
3943
4098
|
# @api private
|
3944
4099
|
#
|
3945
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4100
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#38
|
3946
4101
|
class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer
|
3947
4102
|
# @api private
|
3948
4103
|
# @return [Colorizer] a new instance of Colorizer
|
3949
4104
|
#
|
3950
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4105
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#98
|
3951
4106
|
def initialize(pattern, compiler: T.unsafe(nil)); end
|
3952
4107
|
|
3953
4108
|
# @api private
|
3954
4109
|
#
|
3955
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4110
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96
|
3956
4111
|
def compiler; end
|
3957
4112
|
|
3958
4113
|
# @api private
|
3959
4114
|
#
|
3960
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4115
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96
|
3961
4116
|
def node_pattern; end
|
3962
4117
|
|
3963
4118
|
# @api private
|
3964
4119
|
#
|
3965
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4120
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96
|
3966
4121
|
def pattern; end
|
3967
4122
|
|
3968
4123
|
# @api private
|
3969
4124
|
# @return [Node] the Ruby AST
|
3970
4125
|
#
|
3971
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4126
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#105
|
3972
4127
|
def test(ruby, trace: T.unsafe(nil)); end
|
3973
4128
|
|
3974
4129
|
private
|
3975
4130
|
|
3976
4131
|
# @api private
|
3977
4132
|
#
|
3978
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4133
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#113
|
3979
4134
|
def ruby_ast(ruby); end
|
3980
|
-
|
3981
|
-
# @api private
|
3982
|
-
#
|
3983
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#116
|
3984
|
-
def ruby_parser; end
|
3985
4135
|
end
|
3986
4136
|
|
3987
4137
|
# @api private
|
3988
4138
|
#
|
3989
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4139
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#39
|
3990
4140
|
RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash)
|
3991
4141
|
|
3992
4142
|
# @api private
|
3993
4143
|
#
|
3994
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4144
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94
|
3995
4145
|
RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug
|
3996
4146
|
|
3997
4147
|
# Result of a NodePattern run against a particular AST
|
@@ -3999,18 +4149,18 @@ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::
|
|
3999
4149
|
#
|
4000
4150
|
# @api private
|
4001
4151
|
#
|
4002
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4152
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48
|
4003
4153
|
class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
|
4004
4154
|
# @api private
|
4005
4155
|
# @return [Hash] a map for {character_position => color}
|
4006
4156
|
#
|
4007
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4157
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#58
|
4008
4158
|
def color_map(color_scheme = T.unsafe(nil)); end
|
4009
4159
|
|
4010
4160
|
# @api private
|
4011
4161
|
# @return [String] a Rainbow colorized version of ruby
|
4012
4162
|
#
|
4013
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4163
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#50
|
4014
4164
|
def colorize(color_scheme = T.unsafe(nil)); end
|
4015
4165
|
|
4016
4166
|
# Returns the value of attribute colorizer
|
@@ -4027,13 +4177,13 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
|
|
4027
4177
|
# @api private
|
4028
4178
|
# @return [Hash] a map for {node => matched?}, depth-first
|
4029
4179
|
#
|
4030
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4180
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#68
|
4031
4181
|
def match_map; end
|
4032
4182
|
|
4033
4183
|
# @api private
|
4034
4184
|
# @return [Boolean] a value of `Trace#matched?` or `:not_visitable`
|
4035
4185
|
#
|
4036
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4186
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#76
|
4037
4187
|
def matched?(node); end
|
4038
4188
|
|
4039
4189
|
# Returns the value of attribute returned
|
@@ -4073,12 +4223,12 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
|
|
4073
4223
|
|
4074
4224
|
# @api private
|
4075
4225
|
#
|
4076
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4226
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#89
|
4077
4227
|
def ast; end
|
4078
4228
|
|
4079
4229
|
# @api private
|
4080
4230
|
#
|
4081
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4231
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#83
|
4082
4232
|
def color_map_for(node, color); end
|
4083
4233
|
|
4084
4234
|
class << self
|
@@ -4092,36 +4242,36 @@ end
|
|
4092
4242
|
|
4093
4243
|
# @api private
|
4094
4244
|
#
|
4095
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4245
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#134
|
4096
4246
|
module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
4097
4247
|
# @api private
|
4098
4248
|
#
|
4099
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4249
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#135
|
4100
4250
|
def do_compile; end
|
4101
4251
|
|
4102
4252
|
private
|
4103
4253
|
|
4104
4254
|
# @api private
|
4105
4255
|
#
|
4106
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4256
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#145
|
4107
4257
|
def node_id; end
|
4108
4258
|
|
4109
4259
|
# @api private
|
4110
4260
|
#
|
4111
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4261
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#141
|
4112
4262
|
def tracer(kind); end
|
4113
4263
|
end
|
4114
4264
|
|
4115
4265
|
# @api private
|
4116
4266
|
#
|
4117
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4267
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#151
|
4118
4268
|
class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler
|
4119
4269
|
include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
4120
4270
|
end
|
4121
4271
|
|
4122
4272
|
# @api private
|
4123
4273
|
#
|
4124
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4274
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156
|
4125
4275
|
class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler
|
4126
4276
|
include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
4127
4277
|
end
|
@@ -4136,17 +4286,17 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Trace
|
|
4136
4286
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#14
|
4137
4287
|
def initialize; end
|
4138
4288
|
|
4139
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4289
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#19
|
4140
4290
|
def enter(node_id); end
|
4141
4291
|
|
4142
4292
|
# return nil (not visited), false (not matched) or true (matched)
|
4143
4293
|
#
|
4144
4294
|
# @return [Boolean]
|
4145
4295
|
#
|
4146
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4296
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#30
|
4147
4297
|
def matched?(node_id); end
|
4148
4298
|
|
4149
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
4299
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#25
|
4150
4300
|
def success(node_id); end
|
4151
4301
|
end
|
4152
4302
|
|
@@ -4754,7 +4904,7 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
|
4754
4904
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#63
|
4755
4905
|
def matches_within_set?; end
|
4756
4906
|
|
4757
|
-
# @return [Integer] nb of captures
|
4907
|
+
# @return [Integer] nb of captures that this node will emit
|
4758
4908
|
#
|
4759
4909
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#52
|
4760
4910
|
def nb_captures; end
|
@@ -4806,7 +4956,7 @@ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
|
|
4806
4956
|
#
|
4807
4957
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96
|
4808
4958
|
class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
|
4809
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
4959
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
4810
4960
|
def arity(*_arg0, **_arg1, &_arg2); end
|
4811
4961
|
|
4812
4962
|
# @return [Boolean]
|
@@ -4820,7 +4970,7 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No
|
|
4820
4970
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104
|
4821
4971
|
def nb_captures; end
|
4822
4972
|
|
4823
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
4973
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
4824
4974
|
def rest?(*_arg0, **_arg1, &_arg2); end
|
4825
4975
|
end
|
4826
4976
|
|
@@ -4840,7 +4990,7 @@ RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
|
|
4840
4990
|
|
4841
4991
|
# Registry
|
4842
4992
|
#
|
4843
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4993
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#255
|
4844
4994
|
RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
|
4845
4995
|
|
4846
4996
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#11
|
@@ -4926,6 +5076,12 @@ class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
|
|
4926
5076
|
|
4927
5077
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#231
|
4928
5078
|
def in_sequence_head; end
|
5079
|
+
|
5080
|
+
# Each child in a union must contain the same number
|
5081
|
+
# of captures. Only one branch ends up capturing.
|
5082
|
+
#
|
5083
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#249
|
5084
|
+
def nb_captures; end
|
4929
5085
|
end
|
4930
5086
|
|
4931
5087
|
# Parser for NodePattern
|
@@ -5055,28 +5211,28 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
|
5055
5211
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
|
5056
5212
|
def _reduce_none(val, _values); end
|
5057
5213
|
|
5058
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
5214
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
5059
5215
|
def emit_atom(*_arg0, **_arg1, &_arg2); end
|
5060
5216
|
|
5061
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
5217
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
5062
5218
|
def emit_call(*_arg0, **_arg1, &_arg2); end
|
5063
5219
|
|
5064
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
5220
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
5065
5221
|
def emit_capture(*_arg0, **_arg1, &_arg2); end
|
5066
5222
|
|
5067
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
5223
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
5068
5224
|
def emit_list(*_arg0, **_arg1, &_arg2); end
|
5069
5225
|
|
5070
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
5226
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
5071
5227
|
def emit_unary_op(*_arg0, **_arg1, &_arg2); end
|
5072
5228
|
|
5073
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
5229
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
5074
5230
|
def emit_union(*_arg0, **_arg1, &_arg2); end
|
5075
5231
|
|
5076
5232
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
|
5077
5233
|
def inspect; end
|
5078
5234
|
|
5079
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
5235
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
5080
5236
|
def next_token(*_arg0, **_arg1, &_arg2); end
|
5081
5237
|
|
5082
5238
|
# (Similar API to `parser` gem)
|
@@ -5228,10 +5384,10 @@ RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set)
|
|
5228
5384
|
RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
|
5229
5385
|
|
5230
5386
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5231
|
-
RuboCop::AST::NodePattern::Sets::
|
5387
|
+
RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set)
|
5232
5388
|
|
5233
5389
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5234
|
-
RuboCop::AST::NodePattern::Sets::
|
5390
|
+
RuboCop::AST::NodePattern::Sets::SET_ARRAY_HASH = T.let(T.unsafe(nil), Set)
|
5235
5391
|
|
5236
5392
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5237
5393
|
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
|
@@ -5317,6 +5473,9 @@ RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.le
|
|
5317
5473
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5318
5474
|
RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set)
|
5319
5475
|
|
5476
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5477
|
+
RuboCop::AST::NodePattern::Sets::SET_INTEGER_BIGDECIMAL_COMPLEX_RATIONAL = T.let(T.unsafe(nil), Set)
|
5478
|
+
|
5320
5479
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5321
5480
|
RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set)
|
5322
5481
|
|
@@ -5356,9 +5515,6 @@ RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
|
|
5356
5515
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5357
5516
|
RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
|
5358
5517
|
|
5359
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5360
|
-
RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_EMPTY = T.let(T.unsafe(nil), Set)
|
5361
|
-
|
5362
5518
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5363
5519
|
RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T.let(T.unsafe(nil), Set)
|
5364
5520
|
|
@@ -5384,7 +5540,7 @@ RuboCop::AST::NodePattern::Sets::SET_READ_BINREAD = T.let(T.unsafe(nil), Set)
|
|
5384
5540
|
RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
|
5385
5541
|
|
5386
5542
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5387
|
-
RuboCop::AST::NodePattern::Sets::
|
5543
|
+
RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
|
5388
5544
|
|
5389
5545
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5390
5546
|
RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
|
@@ -5393,11 +5549,14 @@ RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(n
|
|
5393
5549
|
RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set)
|
5394
5550
|
|
5395
5551
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5396
|
-
RuboCop::AST::NodePattern::Sets::
|
5552
|
+
RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT_FILTER_FILTER = T.let(T.unsafe(nil), Set)
|
5397
5553
|
|
5398
5554
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5399
5555
|
RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
|
5400
5556
|
|
5557
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5558
|
+
RuboCop::AST::NodePattern::Sets::SET_SET_SORTEDSET = T.let(T.unsafe(nil), Set)
|
5559
|
+
|
5401
5560
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5402
5561
|
RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set)
|
5403
5562
|
|
@@ -5470,12 +5629,6 @@ RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set)
|
|
5470
5629
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5471
5630
|
RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set)
|
5472
5631
|
|
5473
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5474
|
-
RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set)
|
5475
|
-
|
5476
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5477
|
-
RuboCop::AST::NodePattern::Sets::SET___EQL_INCLUDE = T.let(T.unsafe(nil), Set)
|
5478
|
-
|
5479
5632
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5480
5633
|
RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set)
|
5481
5634
|
|
@@ -5536,22 +5689,34 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
|
|
5536
5689
|
#
|
5537
5690
|
# @return [Node] the expression being assigned.
|
5538
5691
|
#
|
5539
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5692
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
|
5540
5693
|
def expression; end
|
5541
5694
|
|
5695
|
+
# @return [AsgnNode] the assignment node
|
5696
|
+
#
|
5697
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10
|
5698
|
+
def lhs; end
|
5699
|
+
|
5542
5700
|
# The name of the variable being assigned as a symbol.
|
5543
5701
|
#
|
5544
5702
|
# @return [Symbol] the name of the variable being assigned
|
5545
5703
|
#
|
5546
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5704
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#18
|
5547
5705
|
def name; end
|
5548
5706
|
|
5549
5707
|
# The operator being used for assignment as a symbol.
|
5550
5708
|
#
|
5551
5709
|
# @return [Symbol] the assignment operator
|
5552
5710
|
#
|
5553
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5711
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#25
|
5554
5712
|
def operator; end
|
5713
|
+
|
5714
|
+
# The expression being assigned to the variable.
|
5715
|
+
#
|
5716
|
+
# @return [Node] the expression being assigned.
|
5717
|
+
#
|
5718
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
|
5719
|
+
def rhs; end
|
5555
5720
|
end
|
5556
5721
|
|
5557
5722
|
# A node extension for `op_asgn` nodes.
|
@@ -5792,36 +5957,59 @@ module RuboCop::AST::PredicateOperatorNode
|
|
5792
5957
|
#
|
5793
5958
|
# @return [Boolean] whether this is a logical operator
|
5794
5959
|
#
|
5795
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#
|
5960
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#32
|
5796
5961
|
def logical_operator?; end
|
5797
5962
|
|
5798
5963
|
# Returns the operator as a string.
|
5799
5964
|
#
|
5800
5965
|
# @return [String] the operator
|
5801
5966
|
#
|
5802
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#
|
5967
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#25
|
5803
5968
|
def operator; end
|
5804
5969
|
|
5805
5970
|
# Checks whether this is a semantic operator.
|
5806
5971
|
#
|
5807
5972
|
# @return [Boolean] whether this is a semantic operator
|
5808
5973
|
#
|
5809
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#
|
5974
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#39
|
5810
5975
|
def semantic_operator?; end
|
5811
5976
|
end
|
5812
5977
|
|
5813
5978
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#8
|
5814
5979
|
RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String)
|
5815
5980
|
|
5981
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#17
|
5982
|
+
RuboCop::AST::PredicateOperatorNode::LOGICAL_OPERATORS = T.let(T.unsafe(nil), Array)
|
5983
|
+
|
5816
5984
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#12
|
5817
5985
|
RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String)
|
5818
5986
|
|
5819
5987
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#10
|
5820
5988
|
RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String)
|
5821
5989
|
|
5990
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#19
|
5991
|
+
RuboCop::AST::PredicateOperatorNode::SEMANTIC_OPERATORS = T.let(T.unsafe(nil), Array)
|
5992
|
+
|
5822
5993
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#14
|
5823
5994
|
RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String)
|
5824
5995
|
|
5996
|
+
# A `Prism` interface's class that provides a fixed `Prism::ParseLexResult` instead of parsing.
|
5997
|
+
#
|
5998
|
+
# This class implements the `parse_lex` method to return a preparsed `Prism::ParseLexResult`
|
5999
|
+
# rather than parsing the source code. When the parse result is already available externally,
|
6000
|
+
# such as in Ruby LSP, the Prism parsing process can be bypassed.
|
6001
|
+
#
|
6002
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#12
|
6003
|
+
class RuboCop::AST::PrismPreparsed
|
6004
|
+
# @return [PrismPreparsed] a new instance of PrismPreparsed
|
6005
|
+
#
|
6006
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13
|
6007
|
+
def initialize(prism_result); end
|
6008
|
+
|
6009
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#23
|
6010
|
+
def parse_lex(_source, **_prism_options); end
|
6011
|
+
end
|
6012
|
+
|
5825
6013
|
# A node extension for `procarg0` nodes.
|
5826
6014
|
# This will be used in place of a plain node when the builder constructs
|
5827
6015
|
# the AST, making its methods available to all `arg` nodes within RuboCop.
|
@@ -5840,42 +6028,42 @@ end
|
|
5840
6028
|
# and other information such as disabled lines for cops.
|
5841
6029
|
# It also provides a convenient way to access source lines.
|
5842
6030
|
#
|
5843
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6031
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#31
|
5844
6032
|
class RuboCop::AST::ProcessedSource
|
5845
6033
|
# @return [ProcessedSource] a new instance of ProcessedSource
|
5846
6034
|
#
|
5847
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5848
|
-
def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
|
6035
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#49
|
6036
|
+
def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil), prism_result: T.unsafe(nil)); end
|
5849
6037
|
|
5850
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6038
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#91
|
5851
6039
|
def [](*args); end
|
5852
6040
|
|
5853
6041
|
# Returns the value of attribute ast.
|
5854
6042
|
#
|
5855
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6043
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5856
6044
|
def ast; end
|
5857
6045
|
|
5858
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6046
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#69
|
5859
6047
|
def ast_with_comments; end
|
5860
6048
|
|
5861
6049
|
# @return [Boolean]
|
5862
6050
|
#
|
5863
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6051
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#130
|
5864
6052
|
def blank?; end
|
5865
6053
|
|
5866
6054
|
# Returns the value of attribute buffer.
|
5867
6055
|
#
|
5868
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6056
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5869
6057
|
def buffer; end
|
5870
6058
|
|
5871
6059
|
# Raw source checksum for tracking infinite loops.
|
5872
6060
|
#
|
5873
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6061
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#102
|
5874
6062
|
def checksum; end
|
5875
6063
|
|
5876
6064
|
# @return [Comment, nil] the comment at that line, if any.
|
5877
6065
|
#
|
5878
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6066
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#135
|
5879
6067
|
def comment_at_line(line); end
|
5880
6068
|
|
5881
6069
|
# Consider using `each_comment_in_lines` instead
|
@@ -5883,181 +6071,194 @@ class RuboCop::AST::ProcessedSource
|
|
5883
6071
|
# @deprecated use contains_comment?
|
5884
6072
|
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
|
5885
6073
|
#
|
5886
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6074
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
|
5887
6075
|
def commented?(source_range); end
|
5888
6076
|
|
5889
6077
|
# Returns the value of attribute comments.
|
5890
6078
|
#
|
5891
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6079
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5892
6080
|
def comments; end
|
5893
6081
|
|
5894
6082
|
# Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
|
5895
6083
|
#
|
5896
6084
|
# @deprecated Use `each_comment_in_lines`
|
5897
6085
|
#
|
5898
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6086
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#165
|
5899
6087
|
def comments_before_line(line); end
|
5900
6088
|
|
5901
6089
|
# Consider using `each_comment_in_lines` instead
|
5902
6090
|
#
|
5903
6091
|
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
|
5904
6092
|
#
|
5905
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6093
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
|
5906
6094
|
def contains_comment?(source_range); end
|
5907
6095
|
|
5908
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6096
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#179
|
5909
6097
|
def current_line(token); end
|
5910
6098
|
|
5911
6099
|
# Returns the value of attribute diagnostics.
|
5912
6100
|
#
|
5913
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6101
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5914
6102
|
def diagnostics; end
|
5915
6103
|
|
5916
6104
|
# @deprecated Use `comments.each`
|
5917
6105
|
#
|
5918
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6106
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107
|
5919
6107
|
def each_comment(&block); end
|
5920
6108
|
|
5921
6109
|
# Enumerates on the comments contained with the given `line_range`
|
5922
6110
|
#
|
5923
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6111
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#145
|
5924
6112
|
def each_comment_in_lines(line_range); end
|
5925
6113
|
|
5926
6114
|
# @deprecated Use `tokens.each`
|
5927
6115
|
#
|
5928
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6116
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
|
5929
6117
|
def each_token(&block); end
|
5930
6118
|
|
5931
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6119
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#126
|
5932
6120
|
def file_path; end
|
5933
6121
|
|
5934
6122
|
# @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
|
5935
6123
|
#
|
5936
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6124
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
|
5937
6125
|
def find_comment(&block); end
|
5938
6126
|
|
5939
6127
|
# @deprecated Use `tokens.find`
|
5940
6128
|
#
|
5941
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6129
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#122
|
5942
6130
|
def find_token(&block); end
|
5943
6131
|
|
5944
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6132
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#200
|
5945
6133
|
def first_token_of(range_or_node); end
|
5946
6134
|
|
5947
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6135
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#183
|
5948
6136
|
def following_line(token); end
|
5949
6137
|
|
5950
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6138
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#204
|
5951
6139
|
def last_token_of(range_or_node); end
|
5952
6140
|
|
5953
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6141
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#187
|
5954
6142
|
def line_indentation(line_number); end
|
5955
6143
|
|
5956
6144
|
# @return [Boolean] if the given line number has a comment.
|
5957
6145
|
#
|
5958
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6146
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#140
|
5959
6147
|
def line_with_comment?(line); end
|
5960
6148
|
|
5961
6149
|
# Returns the source lines, line break characters removed, excluding a
|
5962
6150
|
# possible __END__ and everything that comes after.
|
5963
6151
|
#
|
5964
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6152
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77
|
5965
6153
|
def lines; end
|
5966
6154
|
|
5967
6155
|
# Returns the value of attribute parser_engine.
|
5968
6156
|
#
|
5969
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6157
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5970
6158
|
def parser_engine; end
|
5971
6159
|
|
5972
6160
|
# Returns the value of attribute parser_error.
|
5973
6161
|
#
|
5974
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6162
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5975
6163
|
def parser_error; end
|
5976
6164
|
|
5977
6165
|
# Returns the value of attribute path.
|
5978
6166
|
#
|
5979
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6167
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5980
6168
|
def path; end
|
5981
6169
|
|
5982
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6170
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#175
|
5983
6171
|
def preceding_line(token); end
|
5984
6172
|
|
5985
6173
|
# Returns the value of attribute raw_source.
|
5986
6174
|
#
|
5987
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6175
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5988
6176
|
def raw_source; end
|
5989
6177
|
|
5990
6178
|
# Returns the value of attribute ruby_version.
|
5991
6179
|
#
|
5992
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6180
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
5993
6181
|
def ruby_version; end
|
5994
6182
|
|
5995
6183
|
# The tokens list is always sorted by token position, except for cases when heredoc
|
5996
6184
|
# is passed as a method argument. In this case tokens are interleaved by
|
5997
6185
|
# heredoc contents' tokens.
|
5998
6186
|
#
|
5999
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6187
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#211
|
6000
6188
|
def sorted_tokens; end
|
6001
6189
|
|
6002
6190
|
# @return [Boolean]
|
6003
6191
|
#
|
6004
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6192
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#169
|
6005
6193
|
def start_with?(string); end
|
6006
6194
|
|
6007
6195
|
# Returns the value of attribute tokens.
|
6008
6196
|
#
|
6009
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6197
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
6010
6198
|
def tokens; end
|
6011
6199
|
|
6012
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6200
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#194
|
6013
6201
|
def tokens_within(range_or_node); end
|
6014
6202
|
|
6015
6203
|
# @return [Boolean]
|
6016
6204
|
#
|
6017
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6205
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#95
|
6018
6206
|
def valid_syntax?; end
|
6019
6207
|
|
6020
6208
|
private
|
6021
6209
|
|
6022
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6210
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#329
|
6211
|
+
def builder_class(parser_engine); end
|
6212
|
+
|
6213
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#218
|
6023
6214
|
def comment_index; end
|
6024
6215
|
|
6025
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6026
|
-
def create_parser(ruby_version, parser_engine); end
|
6216
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#339
|
6217
|
+
def create_parser(ruby_version, parser_engine, prism_result); end
|
6218
|
+
|
6219
|
+
# The Parser gem does not support Ruby 3.5 or later.
|
6220
|
+
# It is also not fully compatible with Ruby 3.4 but for
|
6221
|
+
# now respects using parser for backwards compatibility.
|
6222
|
+
#
|
6223
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#385
|
6224
|
+
def default_parser_engine(ruby_version); end
|
6027
6225
|
|
6028
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6226
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#393
|
6029
6227
|
def first_token_index(range_or_node); end
|
6030
6228
|
|
6031
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6229
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#398
|
6032
6230
|
def last_token_index(range_or_node); end
|
6033
6231
|
|
6034
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6035
|
-
def
|
6232
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#368
|
6233
|
+
def normalize_parser_engine(parser_engine, ruby_version); end
|
6234
|
+
|
6235
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#224
|
6236
|
+
def parse(source, ruby_version, parser_engine, prism_result); end
|
6036
6237
|
|
6037
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6238
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#260
|
6038
6239
|
def parser_class(ruby_version, parser_engine); end
|
6039
6240
|
|
6040
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6241
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#403
|
6041
6242
|
def source_range(range_or_node); end
|
6042
6243
|
|
6043
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6244
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#243
|
6044
6245
|
def tokenize(parser); end
|
6045
6246
|
|
6046
6247
|
class << self
|
6047
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6248
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#44
|
6048
6249
|
def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
|
6049
6250
|
end
|
6050
6251
|
end
|
6051
6252
|
|
6052
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6253
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#35
|
6053
6254
|
RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
|
6054
6255
|
|
6055
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6256
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#38
|
6056
6257
|
RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
|
6057
6258
|
|
6058
6259
|
# @api private
|
6059
6260
|
#
|
6060
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6261
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#33
|
6061
6262
|
RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String)
|
6062
6263
|
|
6063
6264
|
# A node extension for `irange` and `erange` nodes. This will be used in
|
@@ -6353,15 +6554,38 @@ class RuboCop::AST::StrNode < ::RuboCop::AST::Node
|
|
6353
6554
|
|
6354
6555
|
# @return [Boolean]
|
6355
6556
|
#
|
6356
|
-
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#
|
6557
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#26
|
6357
6558
|
def character_literal?; end
|
6358
6559
|
|
6359
6560
|
# @return [Boolean]
|
6360
6561
|
#
|
6361
|
-
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#
|
6562
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#22
|
6563
|
+
def double_quoted?; end
|
6564
|
+
|
6565
|
+
# @return [Boolean]
|
6566
|
+
#
|
6567
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#30
|
6362
6568
|
def heredoc?; end
|
6569
|
+
|
6570
|
+
# Checks whether the string literal is delimited by percent brackets.
|
6571
|
+
#
|
6572
|
+
# @overload percent_literal?
|
6573
|
+
# @overload percent_literal?
|
6574
|
+
# @param type [Symbol] an optional percent literal type
|
6575
|
+
# @return [Boolean] whether the string is enclosed in percent brackets
|
6576
|
+
#
|
6577
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#45
|
6578
|
+
def percent_literal?(type = T.unsafe(nil)); end
|
6579
|
+
|
6580
|
+
# @return [Boolean]
|
6581
|
+
#
|
6582
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#18
|
6583
|
+
def single_quoted?; end
|
6363
6584
|
end
|
6364
6585
|
|
6586
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11
|
6587
|
+
RuboCop::AST::StrNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
|
6588
|
+
|
6365
6589
|
# A node extension for `super`- and `zsuper` nodes. This will be used in
|
6366
6590
|
# place of a plain node when the builder constructs the AST, making its
|
6367
6591
|
# methods available to all `super`- and `zsuper` nodes within RuboCop.
|
@@ -6372,7 +6596,7 @@ class RuboCop::AST::SuperNode < ::RuboCop::AST::Node
|
|
6372
6596
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
6373
6597
|
include ::RuboCop::AST::MethodDispatchNode
|
6374
6598
|
|
6375
|
-
# source://ast/2.4.
|
6599
|
+
# source://ast/2.4.3/lib/ast/node.rb#56
|
6376
6600
|
def arguments; end
|
6377
6601
|
|
6378
6602
|
# Custom destructuring method. This can be used to normalize
|
@@ -6399,151 +6623,154 @@ end
|
|
6399
6623
|
class RuboCop::AST::Token
|
6400
6624
|
# @return [Token] a new instance of Token
|
6401
6625
|
#
|
6402
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6626
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#18
|
6403
6627
|
def initialize(pos, type, text); end
|
6404
6628
|
|
6405
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6629
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#33
|
6406
6630
|
def begin_pos; end
|
6407
6631
|
|
6408
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6632
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#29
|
6409
6633
|
def column; end
|
6410
6634
|
|
6411
6635
|
# @return [Boolean]
|
6412
6636
|
#
|
6413
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6637
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#102
|
6414
6638
|
def comma?; end
|
6415
6639
|
|
6416
6640
|
# Type Predicates
|
6417
6641
|
#
|
6418
6642
|
# @return [Boolean]
|
6419
6643
|
#
|
6420
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6644
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#58
|
6421
6645
|
def comment?; end
|
6422
6646
|
|
6423
6647
|
# @return [Boolean]
|
6424
6648
|
#
|
6425
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6649
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#106
|
6426
6650
|
def dot?; end
|
6427
6651
|
|
6428
6652
|
# @return [Boolean]
|
6429
6653
|
#
|
6430
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6654
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#118
|
6431
6655
|
def end?; end
|
6432
6656
|
|
6433
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6657
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#37
|
6434
6658
|
def end_pos; end
|
6435
6659
|
|
6436
6660
|
# @return [Boolean]
|
6437
6661
|
#
|
6438
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6662
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#122
|
6439
6663
|
def equal_sign?; end
|
6440
6664
|
|
6441
6665
|
# @return [Boolean]
|
6442
6666
|
#
|
6443
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6667
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#66
|
6444
6668
|
def left_array_bracket?; end
|
6445
6669
|
|
6446
6670
|
# @return [Boolean]
|
6447
6671
|
#
|
6448
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6672
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#82
|
6449
6673
|
def left_brace?; end
|
6450
6674
|
|
6451
6675
|
# @return [Boolean]
|
6452
6676
|
#
|
6453
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6677
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#74
|
6454
6678
|
def left_bracket?; end
|
6455
6679
|
|
6456
6680
|
# @return [Boolean]
|
6457
6681
|
#
|
6458
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6682
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#86
|
6459
6683
|
def left_curly_brace?; end
|
6460
6684
|
|
6461
6685
|
# @return [Boolean]
|
6462
6686
|
#
|
6463
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6687
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#94
|
6464
6688
|
def left_parens?; end
|
6465
6689
|
|
6466
6690
|
# @return [Boolean]
|
6467
6691
|
#
|
6468
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6692
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#70
|
6469
6693
|
def left_ref_bracket?; end
|
6470
6694
|
|
6471
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6695
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#25
|
6472
6696
|
def line; end
|
6473
6697
|
|
6474
6698
|
# @return [Boolean]
|
6475
6699
|
#
|
6476
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6700
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#126
|
6477
6701
|
def new_line?; end
|
6478
6702
|
|
6479
6703
|
# Returns the value of attribute pos.
|
6480
6704
|
#
|
6481
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6705
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#10
|
6482
6706
|
def pos; end
|
6483
6707
|
|
6484
6708
|
# @return [Boolean]
|
6485
6709
|
#
|
6486
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6710
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#110
|
6487
6711
|
def regexp_dots?; end
|
6488
6712
|
|
6489
6713
|
# @return [Boolean]
|
6490
6714
|
#
|
6491
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6715
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#114
|
6492
6716
|
def rescue_modifier?; end
|
6493
6717
|
|
6494
6718
|
# @return [Boolean]
|
6495
6719
|
#
|
6496
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6720
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#78
|
6497
6721
|
def right_bracket?; end
|
6498
6722
|
|
6499
6723
|
# @return [Boolean]
|
6500
6724
|
#
|
6501
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6725
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#90
|
6502
6726
|
def right_curly_brace?; end
|
6503
6727
|
|
6504
6728
|
# @return [Boolean]
|
6505
6729
|
#
|
6506
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6730
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#98
|
6507
6731
|
def right_parens?; end
|
6508
6732
|
|
6509
6733
|
# @return [Boolean]
|
6510
6734
|
#
|
6511
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6735
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#62
|
6512
6736
|
def semicolon?; end
|
6513
6737
|
|
6514
6738
|
# Checks if there is whitespace after token
|
6515
6739
|
#
|
6516
6740
|
# @return [Boolean]
|
6517
6741
|
#
|
6518
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6742
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#46
|
6519
6743
|
def space_after?; end
|
6520
6744
|
|
6521
6745
|
# Checks if there is whitespace before token
|
6522
6746
|
#
|
6523
6747
|
# @return [Boolean]
|
6524
6748
|
#
|
6525
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6749
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#51
|
6526
6750
|
def space_before?; end
|
6527
6751
|
|
6528
6752
|
# Returns the value of attribute text.
|
6529
6753
|
#
|
6530
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6754
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#10
|
6531
6755
|
def text; end
|
6532
6756
|
|
6533
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6757
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#41
|
6534
6758
|
def to_s; end
|
6535
6759
|
|
6536
6760
|
# Returns the value of attribute type.
|
6537
6761
|
#
|
6538
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6762
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#10
|
6539
6763
|
def type; end
|
6540
6764
|
|
6541
6765
|
class << self
|
6542
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6766
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#12
|
6543
6767
|
def from_parser_token(parser_token); end
|
6544
6768
|
end
|
6545
6769
|
end
|
6546
6770
|
|
6771
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#8
|
6772
|
+
RuboCop::AST::Token::LEFT_CURLY_TYPES = T.let(T.unsafe(nil), Array)
|
6773
|
+
|
6547
6774
|
# source://rubocop-ast//lib/rubocop/ast/token.rb#7
|
6548
6775
|
RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array)
|
6549
6776
|
|
@@ -6556,394 +6783,397 @@ RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array)
|
|
6556
6783
|
module RuboCop::AST::Traversal
|
6557
6784
|
extend ::RuboCop::AST::Traversal::CallbackCompiler
|
6558
6785
|
|
6559
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6786
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#183
|
6560
6787
|
def on_(node); end
|
6561
6788
|
|
6562
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6789
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6563
6790
|
def on___ENCODING__(node); end
|
6564
6791
|
|
6565
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6792
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6566
6793
|
def on___FILE__(node); end
|
6567
6794
|
|
6568
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6795
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6569
6796
|
def on___LINE__(node); end
|
6570
6797
|
|
6571
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6798
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6572
6799
|
def on_alias(node); end
|
6573
6800
|
|
6574
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6801
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6575
6802
|
def on_and(node); end
|
6576
6803
|
|
6577
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6804
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6578
6805
|
def on_and_asgn(node); end
|
6579
6806
|
|
6580
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6807
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6581
6808
|
def on_arg(node); end
|
6582
6809
|
|
6583
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6810
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6584
6811
|
def on_arg_expr(node); end
|
6585
6812
|
|
6586
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6813
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6587
6814
|
def on_args(node); end
|
6588
6815
|
|
6589
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6816
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6590
6817
|
def on_array(node); end
|
6591
6818
|
|
6592
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6819
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6593
6820
|
def on_array_pattern(node); end
|
6594
6821
|
|
6595
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6822
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6596
6823
|
def on_array_pattern_with_tail(node); end
|
6597
6824
|
|
6598
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6825
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6599
6826
|
def on_back_ref(node); end
|
6600
6827
|
|
6601
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6828
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6602
6829
|
def on_begin(node); end
|
6603
6830
|
|
6604
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6831
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#160
|
6605
6832
|
def on_block(node); end
|
6606
6833
|
|
6607
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6834
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
|
6608
6835
|
def on_block_pass(node); end
|
6609
6836
|
|
6610
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6837
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6611
6838
|
def on_blockarg(node); end
|
6612
6839
|
|
6613
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6840
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6614
6841
|
def on_break(node); end
|
6615
6842
|
|
6616
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6843
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6617
6844
|
def on_case(node); end
|
6618
6845
|
|
6619
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6846
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6620
6847
|
def on_case_match(node); end
|
6621
6848
|
|
6622
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6849
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#155
|
6623
6850
|
def on_casgn(node); end
|
6624
6851
|
|
6625
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6852
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6626
6853
|
def on_cbase(node); end
|
6627
6854
|
|
6628
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6855
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#156
|
6629
6856
|
def on_class(node); end
|
6630
6857
|
|
6631
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6858
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6632
6859
|
def on_complex(node); end
|
6633
6860
|
|
6634
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6861
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#154
|
6635
6862
|
def on_const(node); end
|
6636
6863
|
|
6637
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6864
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6638
6865
|
def on_const_pattern(node); end
|
6639
6866
|
|
6640
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6867
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#165
|
6641
6868
|
def on_csend(node); end
|
6642
6869
|
|
6643
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6870
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6644
6871
|
def on_cvar(node); end
|
6645
6872
|
|
6646
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6873
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
|
6647
6874
|
def on_cvasgn(node); end
|
6648
6875
|
|
6649
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6876
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#157
|
6650
6877
|
def on_def(node); end
|
6651
6878
|
|
6652
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6879
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6653
6880
|
def on_defined?(node); end
|
6654
6881
|
|
6655
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6882
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#163
|
6656
6883
|
def on_defs(node); end
|
6657
6884
|
|
6658
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6885
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6659
6886
|
def on_dstr(node); end
|
6660
6887
|
|
6661
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6888
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6662
6889
|
def on_dsym(node); end
|
6663
6890
|
|
6664
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6891
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6665
6892
|
def on_eflipflop(node); end
|
6666
6893
|
|
6667
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6894
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6668
6895
|
def on_empty_else(node); end
|
6669
6896
|
|
6670
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6897
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6671
6898
|
def on_ensure(node); end
|
6672
6899
|
|
6673
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6900
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6674
6901
|
def on_erange(node); end
|
6675
6902
|
|
6676
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6903
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6677
6904
|
def on_false(node); end
|
6678
6905
|
|
6679
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6906
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6680
6907
|
def on_find_pattern(node); end
|
6681
6908
|
|
6682
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6909
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6683
6910
|
def on_float(node); end
|
6684
6911
|
|
6685
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6912
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6686
6913
|
def on_for(node); end
|
6687
6914
|
|
6688
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6915
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6689
6916
|
def on_forward_arg(node); end
|
6690
6917
|
|
6691
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6918
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6692
6919
|
def on_forward_args(node); end
|
6693
6920
|
|
6694
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6921
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6695
6922
|
def on_forwarded_args(node); end
|
6696
6923
|
|
6697
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6924
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6698
6925
|
def on_forwarded_kwrestarg(node); end
|
6699
6926
|
|
6700
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6927
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6701
6928
|
def on_forwarded_restarg(node); end
|
6702
6929
|
|
6703
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6930
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6704
6931
|
def on_gvar(node); end
|
6705
6932
|
|
6706
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6933
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
|
6707
6934
|
def on_gvasgn(node); end
|
6708
6935
|
|
6709
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6936
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6710
6937
|
def on_hash(node); end
|
6711
6938
|
|
6712
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6939
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6713
6940
|
def on_hash_pattern(node); end
|
6714
6941
|
|
6715
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6942
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#159
|
6716
6943
|
def on_if(node); end
|
6717
6944
|
|
6718
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6945
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6719
6946
|
def on_if_guard(node); end
|
6720
6947
|
|
6721
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6948
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6722
6949
|
def on_iflipflop(node); end
|
6723
6950
|
|
6724
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6951
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6725
6952
|
def on_in_match(node); end
|
6726
6953
|
|
6727
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6954
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6728
6955
|
def on_in_pattern(node); end
|
6729
6956
|
|
6730
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6957
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6731
6958
|
def on_index(node); end
|
6732
6959
|
|
6733
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6960
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6734
6961
|
def on_indexasgn(node); end
|
6735
6962
|
|
6736
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6963
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6737
6964
|
def on_int(node); end
|
6738
6965
|
|
6739
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6966
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6740
6967
|
def on_irange(node); end
|
6741
6968
|
|
6742
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6969
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#162
|
6970
|
+
def on_itblock(node); end
|
6971
|
+
|
6972
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6743
6973
|
def on_ivar(node); end
|
6744
6974
|
|
6745
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6975
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
|
6746
6976
|
def on_ivasgn(node); end
|
6747
6977
|
|
6748
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6978
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6749
6979
|
def on_kwarg(node); end
|
6750
6980
|
|
6751
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6981
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6752
6982
|
def on_kwargs(node); end
|
6753
6983
|
|
6754
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6984
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6755
6985
|
def on_kwbegin(node); end
|
6756
6986
|
|
6757
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6987
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6758
6988
|
def on_kwnilarg(node); end
|
6759
6989
|
|
6760
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6990
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#141
|
6761
6991
|
def on_kwoptarg(node); end
|
6762
6992
|
|
6763
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6993
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
|
6764
6994
|
def on_kwrestarg(node); end
|
6765
6995
|
|
6766
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6996
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#134
|
6767
6997
|
def on_kwsplat(node); end
|
6768
6998
|
|
6769
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6999
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6770
7000
|
def on_lambda(node); end
|
6771
7001
|
|
6772
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7002
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6773
7003
|
def on_lvar(node); end
|
6774
7004
|
|
6775
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7005
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#140
|
6776
7006
|
def on_lvasgn(node); end
|
6777
7007
|
|
6778
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7008
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6779
7009
|
def on_masgn(node); end
|
6780
7010
|
|
6781
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7011
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6782
7012
|
def on_match_alt(node); end
|
6783
7013
|
|
6784
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7014
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6785
7015
|
def on_match_as(node); end
|
6786
7016
|
|
6787
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7017
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6788
7018
|
def on_match_current_line(node); end
|
6789
7019
|
|
6790
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7020
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6791
7021
|
def on_match_nil_pattern(node); end
|
6792
7022
|
|
6793
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7023
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6794
7024
|
def on_match_pattern(node); end
|
6795
7025
|
|
6796
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7026
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6797
7027
|
def on_match_pattern_p(node); end
|
6798
7028
|
|
6799
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7029
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#134
|
6800
7030
|
def on_match_rest(node); end
|
6801
7031
|
|
6802
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7032
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6803
7033
|
def on_match_var(node); end
|
6804
7034
|
|
6805
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7035
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6806
7036
|
def on_match_with_lvasgn(node); end
|
6807
7037
|
|
6808
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7038
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6809
7039
|
def on_match_with_trailing_comma(node); end
|
6810
7040
|
|
6811
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7041
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6812
7042
|
def on_mlhs(node); end
|
6813
7043
|
|
6814
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7044
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
|
6815
7045
|
def on_module(node); end
|
6816
7046
|
|
6817
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7047
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6818
7048
|
def on_mrasgn(node); end
|
6819
7049
|
|
6820
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7050
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6821
7051
|
def on_next(node); end
|
6822
7052
|
|
6823
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7053
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6824
7054
|
def on_nil(node); end
|
6825
7055
|
|
6826
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7056
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6827
7057
|
def on_not(node); end
|
6828
7058
|
|
6829
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7059
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6830
7060
|
def on_nth_ref(node); end
|
6831
7061
|
|
6832
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7062
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#161
|
6833
7063
|
def on_numblock(node); end
|
6834
7064
|
|
6835
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7065
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#158
|
6836
7066
|
def on_op_asgn(node); end
|
6837
7067
|
|
6838
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7068
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#141
|
6839
7069
|
def on_optarg(node); end
|
6840
7070
|
|
6841
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7071
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6842
7072
|
def on_or(node); end
|
6843
7073
|
|
6844
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7074
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6845
7075
|
def on_or_asgn(node); end
|
6846
7076
|
|
6847
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7077
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6848
7078
|
def on_pair(node); end
|
6849
7079
|
|
6850
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7080
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6851
7081
|
def on_pin(node); end
|
6852
7082
|
|
6853
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7083
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
|
6854
7084
|
def on_postexe(node); end
|
6855
7085
|
|
6856
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7086
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#138
|
6857
7087
|
def on_preexe(node); end
|
6858
7088
|
|
6859
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7089
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6860
7090
|
def on_procarg0(node); end
|
6861
7091
|
|
6862
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7092
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6863
7093
|
def on_rasgn(node); end
|
6864
7094
|
|
6865
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7095
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6866
7096
|
def on_rational(node); end
|
6867
7097
|
|
6868
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7098
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6869
7099
|
def on_redo(node); end
|
6870
7100
|
|
6871
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7101
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6872
7102
|
def on_regexp(node); end
|
6873
7103
|
|
6874
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7104
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#144
|
6875
7105
|
def on_regopt(node); end
|
6876
7106
|
|
6877
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7107
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6878
7108
|
def on_resbody(node); end
|
6879
7109
|
|
6880
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7110
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6881
7111
|
def on_rescue(node); end
|
6882
7112
|
|
6883
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7113
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#133
|
6884
7114
|
def on_restarg(node); end
|
6885
7115
|
|
6886
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7116
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6887
7117
|
def on_retry(node); end
|
6888
7118
|
|
6889
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7119
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6890
7120
|
def on_return(node); end
|
6891
7121
|
|
6892
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7122
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
|
6893
7123
|
def on_sclass(node); end
|
6894
7124
|
|
6895
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7125
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6896
7126
|
def on_self(node); end
|
6897
7127
|
|
6898
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7128
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#165
|
6899
7129
|
def on_send(node); end
|
6900
7130
|
|
6901
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7131
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6902
7132
|
def on_shadowarg(node); end
|
6903
7133
|
|
6904
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7134
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#134
|
6905
7135
|
def on_splat(node); end
|
6906
7136
|
|
6907
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7137
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6908
7138
|
def on_str(node); end
|
6909
7139
|
|
6910
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7140
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6911
7141
|
def on_super(node); end
|
6912
7142
|
|
6913
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7143
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#136
|
6914
7144
|
def on_sym(node); end
|
6915
7145
|
|
6916
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7146
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6917
7147
|
def on_true(node); end
|
6918
7148
|
|
6919
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7149
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6920
7150
|
def on_undef(node); end
|
6921
7151
|
|
6922
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7152
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#137
|
6923
7153
|
def on_unless_guard(node); end
|
6924
7154
|
|
6925
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7155
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
|
6926
7156
|
def on_until(node); end
|
6927
7157
|
|
6928
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7158
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6929
7159
|
def on_until_post(node); end
|
6930
7160
|
|
6931
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7161
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#148
|
6932
7162
|
def on_when(node); end
|
6933
7163
|
|
6934
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7164
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#142
|
6935
7165
|
def on_while(node); end
|
6936
7166
|
|
6937
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7167
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6938
7168
|
def on_while_post(node); end
|
6939
7169
|
|
6940
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7170
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6941
7171
|
def on_xstr(node); end
|
6942
7172
|
|
6943
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7173
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#145
|
6944
7174
|
def on_yield(node); end
|
6945
7175
|
|
6946
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7176
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#132
|
6947
7177
|
def on_zsuper(node); end
|
6948
7178
|
|
6949
7179
|
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#17
|
@@ -6956,18 +7186,18 @@ end
|
|
6956
7186
|
module RuboCop::AST::Traversal::CallbackCompiler
|
6957
7187
|
# @api private
|
6958
7188
|
#
|
6959
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6960
|
-
def
|
7189
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#54
|
7190
|
+
def body(child_node_types, expected_children_count); end
|
6961
7191
|
|
6962
7192
|
# @api private
|
6963
7193
|
#
|
6964
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6965
|
-
def
|
7194
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#68
|
7195
|
+
def children_count_check_code(range); end
|
6966
7196
|
|
6967
7197
|
# @api private
|
6968
7198
|
#
|
6969
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
6970
|
-
def def_callback(type, *
|
7199
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#38
|
7200
|
+
def def_callback(type, *child_node_types, expected_children_count: T.unsafe(nil), body: T.unsafe(nil)); end
|
6971
7201
|
end
|
6972
7202
|
|
6973
7203
|
# @api private
|
@@ -6975,9 +7205,13 @@ end
|
|
6975
7205
|
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#26
|
6976
7206
|
RuboCop::AST::Traversal::CallbackCompiler::SEND = T.let(T.unsafe(nil), String)
|
6977
7207
|
|
7208
|
+
# How a particular child node should be visited. For example, if a child node
|
7209
|
+
# can be nil it should be guarded behind a nil check. Or, if a child node is a literal
|
7210
|
+
# (like a symbol) then the literal itself should not be visited.
|
7211
|
+
#
|
6978
7212
|
# @api private
|
6979
7213
|
#
|
6980
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7214
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#32
|
6981
7215
|
RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash)
|
6982
7216
|
|
6983
7217
|
# Only for debugging.
|
@@ -6987,7 +7221,7 @@ RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash)
|
|
6987
7221
|
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#12
|
6988
7222
|
class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end
|
6989
7223
|
|
6990
|
-
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#
|
7224
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#109
|
6991
7225
|
RuboCop::AST::Traversal::NO_CHILD_NODES = T.let(T.unsafe(nil), Set)
|
6992
7226
|
|
6993
7227
|
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#15
|
@@ -7125,7 +7359,7 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
|
|
7125
7359
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
7126
7360
|
include ::RuboCop::AST::MethodDispatchNode
|
7127
7361
|
|
7128
|
-
# source://ast/2.4.
|
7362
|
+
# source://ast/2.4.3/lib/ast/node.rb#56
|
7129
7363
|
def arguments; end
|
7130
7364
|
|
7131
7365
|
# Custom destructuring method. This can be used to normalize
|
@@ -7138,334 +7372,343 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
|
|
7138
7372
|
end
|
7139
7373
|
|
7140
7374
|
class RuboCop::CommentConfig
|
7141
|
-
# source://standard/1.
|
7375
|
+
# source://standard/1.50.0/lib/standard/rubocop/ext.rb#20
|
7142
7376
|
def initialize(processed_source); end
|
7143
7377
|
|
7144
|
-
# source://rubocop/1.
|
7378
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#63
|
7145
7379
|
def comment_only_line?(line_number); end
|
7146
7380
|
|
7147
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7381
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7148
7382
|
def config(*_arg0, **_arg1, &_arg2); end
|
7149
7383
|
|
7150
|
-
# source://rubocop/1.
|
7384
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#51
|
7151
7385
|
def cop_disabled_line_ranges; end
|
7152
7386
|
|
7153
|
-
# source://rubocop/1.
|
7387
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#39
|
7154
7388
|
def cop_enabled_at_line?(cop, line_number); end
|
7155
7389
|
|
7156
|
-
# source://rubocop/1.
|
7390
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#47
|
7157
7391
|
def cop_opted_in?(cop); end
|
7158
7392
|
|
7159
|
-
# source://rubocop/1.
|
7393
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#55
|
7160
7394
|
def extra_enabled_comments; end
|
7161
7395
|
|
7162
|
-
# source://rubocop/1.
|
7396
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#30
|
7163
7397
|
def processed_source; end
|
7164
7398
|
|
7165
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7399
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7166
7400
|
def registry(*_arg0, **_arg1, &_arg2); end
|
7167
7401
|
|
7168
7402
|
private
|
7169
7403
|
|
7170
|
-
# source://rubocop/1.
|
7404
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#96
|
7171
7405
|
def analyze; end
|
7172
7406
|
|
7173
|
-
# source://rubocop/1.
|
7407
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#124
|
7174
7408
|
def analyze_cop(analysis, directive); end
|
7175
7409
|
|
7176
|
-
# source://rubocop/1.
|
7410
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#144
|
7177
7411
|
def analyze_disabled(analysis, directive); end
|
7178
7412
|
|
7179
|
-
# source://rubocop/1.
|
7413
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#155
|
7180
7414
|
def analyze_rest(analysis, directive); end
|
7181
7415
|
|
7182
|
-
# source://rubocop/1.
|
7416
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#135
|
7183
7417
|
def analyze_single_line(analysis, directive); end
|
7184
7418
|
|
7185
|
-
# source://rubocop/1.
|
7419
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#164
|
7186
7420
|
def cop_line_ranges(analysis); end
|
7187
7421
|
|
7188
|
-
# source://rubocop/1.
|
7422
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#170
|
7189
7423
|
def each_directive; end
|
7190
7424
|
|
7191
|
-
# source://rubocop/1.
|
7425
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#69
|
7192
7426
|
def extra_enabled_comments_with_names(extras:, names:); end
|
7193
7427
|
|
7194
|
-
# source://rubocop/1.
|
7428
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#190
|
7195
7429
|
def handle_enable_all(directive, names, extras); end
|
7196
7430
|
|
7197
|
-
# source://rubocop/1.
|
7431
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#204
|
7198
7432
|
def handle_switch(directive, names, extras); end
|
7199
7433
|
|
7200
|
-
# source://rubocop/1.
|
7434
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#115
|
7201
7435
|
def inject_disabled_cops_directives(analyses); end
|
7202
7436
|
|
7203
|
-
# source://rubocop/1.
|
7437
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#183
|
7204
7438
|
def non_comment_token_line_numbers; end
|
7205
7439
|
|
7206
|
-
# source://rubocop/1.
|
7440
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#34
|
7207
7441
|
def old_initialize(processed_source); end
|
7208
7442
|
|
7209
|
-
# source://rubocop/1.
|
7443
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#83
|
7210
7444
|
def opt_in_cops; end
|
7211
7445
|
|
7212
|
-
# source://rubocop/1.
|
7446
|
+
# source://rubocop/1.75.8/lib/rubocop/comment_config.rb#179
|
7213
7447
|
def qualified_cop_name(cop_name); end
|
7214
7448
|
end
|
7215
7449
|
|
7216
7450
|
class RuboCop::Config
|
7217
|
-
# source://rubocop/1.
|
7451
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#31
|
7218
7452
|
def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
|
7219
7453
|
|
7220
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7454
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7221
7455
|
def [](*_arg0, **_arg1, &_arg2); end
|
7222
7456
|
|
7223
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7457
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7224
7458
|
def []=(*_arg0, **_arg1, &_arg2); end
|
7225
7459
|
|
7226
|
-
# source://rubocop/1.
|
7460
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#212
|
7227
7461
|
def active_support_extensions_enabled?; end
|
7228
7462
|
|
7229
|
-
# source://rubocop/1.
|
7463
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#127
|
7230
7464
|
def add_excludes_from_higher_level(highest_config); end
|
7231
7465
|
|
7232
|
-
# source://rubocop/1.
|
7466
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#239
|
7233
7467
|
def allowed_camel_case_file?(file); end
|
7234
7468
|
|
7235
|
-
# source://rubocop/1.
|
7469
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#283
|
7236
7470
|
def base_dir_for_path_parameters; end
|
7237
7471
|
|
7238
|
-
# source://rubocop/1.
|
7472
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#313
|
7239
7473
|
def bundler_lock_file_path; end
|
7240
7474
|
|
7241
|
-
# source://rubocop/1.
|
7475
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#85
|
7242
7476
|
def check; end
|
7243
7477
|
|
7244
|
-
# source://rubocop/1.
|
7478
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#180
|
7245
7479
|
def clusivity_config_for_badge?(badge); end
|
7246
7480
|
|
7247
|
-
# source://rubocop
|
7481
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#200
|
7482
|
+
def cop_enabled?(name); end
|
7483
|
+
|
7484
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7248
7485
|
def delete(*_arg0, **_arg1, &_arg2); end
|
7249
7486
|
|
7250
|
-
# source://rubocop/1.
|
7487
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#139
|
7251
7488
|
def deprecation_check; end
|
7252
7489
|
|
7253
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7490
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7254
7491
|
def dig(*_arg0, **_arg1, &_arg2); end
|
7255
7492
|
|
7256
|
-
# source://rubocop/1.
|
7493
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#204
|
7257
7494
|
def disabled_new_cops?; end
|
7258
7495
|
|
7259
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7496
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7260
7497
|
def each(*_arg0, **_arg1, &_arg2); end
|
7261
7498
|
|
7262
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7499
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7263
7500
|
def each_key(*_arg0, **_arg1, &_arg2); end
|
7264
7501
|
|
7265
|
-
# source://rubocop/1.
|
7502
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#208
|
7266
7503
|
def enabled_new_cops?; end
|
7267
7504
|
|
7268
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7505
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7269
7506
|
def fetch(*_arg0, **_arg1, &_arg2); end
|
7270
7507
|
|
7271
|
-
# source://rubocop/1.
|
7508
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#261
|
7272
7509
|
def file_to_exclude?(file); end
|
7273
7510
|
|
7274
|
-
# source://rubocop/1.
|
7511
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#220
|
7275
7512
|
def file_to_include?(file); end
|
7276
7513
|
|
7277
|
-
# source://rubocop/1.
|
7514
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#196
|
7278
7515
|
def for_all_cops; end
|
7279
7516
|
|
7280
|
-
# source://rubocop/1.
|
7517
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#166
|
7281
7518
|
def for_badge(badge); end
|
7282
7519
|
|
7283
|
-
# source://rubocop/1.
|
7520
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#153
|
7284
7521
|
def for_cop(cop); end
|
7285
7522
|
|
7286
|
-
# source://rubocop/1.
|
7523
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#191
|
7287
7524
|
def for_department(department_name); end
|
7288
7525
|
|
7289
|
-
# source://rubocop/1.
|
7526
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#160
|
7527
|
+
def for_enabled_cop(cop); end
|
7528
|
+
|
7529
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#338
|
7290
7530
|
def gem_versions_in_target; end
|
7291
7531
|
|
7292
|
-
# source://rubocop/1.
|
7532
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#342
|
7293
7533
|
def inspect; end
|
7294
7534
|
|
7295
|
-
# source://rubocop/1.
|
7535
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#110
|
7296
7536
|
def internal?; end
|
7297
7537
|
|
7298
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7538
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7299
7539
|
def key?(*_arg0, **_arg1, &_arg2); end
|
7300
7540
|
|
7301
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7541
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7302
7542
|
def keys(*_arg0, **_arg1, &_arg2); end
|
7303
7543
|
|
7304
|
-
# source://rubocop/1.
|
7544
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#81
|
7305
7545
|
def loaded_features; end
|
7306
7546
|
|
7307
|
-
# source://rubocop/1.
|
7547
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#21
|
7308
7548
|
def loaded_path; end
|
7309
7549
|
|
7310
|
-
# source://rubocop/1.
|
7550
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#77
|
7551
|
+
def loaded_plugins; end
|
7552
|
+
|
7553
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#115
|
7311
7554
|
def make_excludes_absolute; end
|
7312
7555
|
|
7313
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7556
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7314
7557
|
def map(*_arg0, **_arg1, &_arg2); end
|
7315
7558
|
|
7316
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7559
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7317
7560
|
def merge(*_arg0, **_arg1, &_arg2); end
|
7318
7561
|
|
7319
|
-
# source://rubocop/1.
|
7562
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#293
|
7320
7563
|
def parser_engine; end
|
7321
7564
|
|
7322
|
-
# source://rubocop/1.
|
7565
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#274
|
7323
7566
|
def path_relative_to_config(path); end
|
7324
7567
|
|
7325
|
-
# source://rubocop/1.
|
7568
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#270
|
7326
7569
|
def patterns_to_exclude; end
|
7327
7570
|
|
7328
|
-
# source://rubocop/1.
|
7571
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#266
|
7329
7572
|
def patterns_to_include; end
|
7330
7573
|
|
7331
|
-
# source://rubocop/1.
|
7574
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#324
|
7332
7575
|
def pending_cops; end
|
7333
7576
|
|
7334
|
-
# source://rubocop/1.
|
7577
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#253
|
7335
7578
|
def possibly_include_hidden?; end
|
7336
7579
|
|
7337
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7580
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7338
7581
|
def replace(*_arg0, **_arg1, &_arg2); end
|
7339
7582
|
|
7340
|
-
# source://rubocop/1.
|
7583
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#105
|
7341
7584
|
def signature; end
|
7342
7585
|
|
7343
|
-
# source://rubocop/1.
|
7586
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#308
|
7344
7587
|
def smart_loaded_path; end
|
7345
7588
|
|
7346
|
-
# source://rubocop/1.
|
7589
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#216
|
7347
7590
|
def string_literals_frozen_by_default?; end
|
7348
7591
|
|
7349
|
-
# source://rubocop/1.
|
7592
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#297
|
7350
7593
|
def target_rails_version; end
|
7351
7594
|
|
7352
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7595
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7353
7596
|
def target_ruby_version(*_arg0, **_arg1, &_arg2); end
|
7354
7597
|
|
7355
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7598
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7356
7599
|
def to_h(*_arg0, **_arg1, &_arg2); end
|
7357
7600
|
|
7358
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7601
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7359
7602
|
def to_hash(*_arg0, **_arg1, &_arg2); end
|
7360
7603
|
|
7361
|
-
# source://rubocop/1.
|
7604
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#101
|
7362
7605
|
def to_s; end
|
7363
7606
|
|
7364
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7607
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7365
7608
|
def transform_values(*_arg0, **_arg1, &_arg2); end
|
7366
7609
|
|
7367
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7610
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7368
7611
|
def validate(*_arg0, **_arg1, &_arg2); end
|
7369
7612
|
|
7370
|
-
# source://rubocop/1.
|
7613
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#92
|
7371
7614
|
def validate_after_resolution; end
|
7372
7615
|
|
7373
7616
|
private
|
7374
7617
|
|
7375
|
-
# source://rubocop/1.
|
7618
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#392
|
7376
7619
|
def department_of(qualified_cop_name); end
|
7377
7620
|
|
7378
|
-
# source://rubocop/1.
|
7621
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#380
|
7379
7622
|
def enable_cop?(qualified_cop_name, cop_options); end
|
7380
7623
|
|
7381
|
-
# source://rubocop/1.
|
7624
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#367
|
7382
7625
|
def gem_version_to_major_minor_float(gem_version); end
|
7383
7626
|
|
7384
|
-
# source://rubocop/1.
|
7627
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#373
|
7385
7628
|
def read_gem_versions_from_target_lockfile; end
|
7386
7629
|
|
7387
|
-
# source://rubocop/1.
|
7630
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#354
|
7388
7631
|
def read_rails_version_from_bundler_lock_file; end
|
7389
7632
|
|
7390
|
-
# source://rubocop/1.
|
7633
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#349
|
7391
7634
|
def target_rails_version_from_bundler_lock_file; end
|
7392
7635
|
|
7393
7636
|
class << self
|
7394
|
-
# source://rubocop/1.
|
7637
|
+
# source://rubocop/1.75.8/lib/rubocop/config.rb#23
|
7395
7638
|
def create(hash, path, check: T.unsafe(nil)); end
|
7396
7639
|
end
|
7397
7640
|
end
|
7398
7641
|
|
7399
7642
|
class RuboCop::ConfigValidator
|
7400
|
-
# source://rubocop/1.
|
7643
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#28
|
7401
7644
|
def initialize(config); end
|
7402
7645
|
|
7403
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7646
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7404
7647
|
def for_all_cops(*_arg0, **_arg1, &_arg2); end
|
7405
7648
|
|
7406
|
-
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#
|
7649
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19
|
7407
7650
|
def smart_loaded_path(*_arg0, **_arg1, &_arg2); end
|
7408
7651
|
|
7409
|
-
# source://rubocop/1.
|
7652
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#65
|
7410
7653
|
def target_ruby_version; end
|
7411
7654
|
|
7412
|
-
# source://rubocop/1.
|
7655
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#34
|
7413
7656
|
def validate; end
|
7414
7657
|
|
7415
|
-
# source://rubocop/1.
|
7658
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#61
|
7416
7659
|
def validate_after_resolution; end
|
7417
7660
|
|
7418
|
-
# source://rubocop/1.66.1/lib/rubocop/config_validator.rb#66
|
7419
|
-
def validate_section_presence(name); end
|
7420
|
-
|
7421
7661
|
private
|
7422
7662
|
|
7423
|
-
# source://rubocop/1.
|
7663
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#100
|
7424
7664
|
def alert_about_unrecognized_cops(invalid_cop_names); end
|
7425
7665
|
|
7426
|
-
# source://rubocop/1.
|
7666
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#263
|
7427
7667
|
def check_cop_config_value(hash, parent = T.unsafe(nil)); end
|
7428
7668
|
|
7429
|
-
# source://rubocop/1.
|
7669
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#73
|
7430
7670
|
def check_obsoletions; end
|
7431
7671
|
|
7432
|
-
# source://rubocop/1.
|
7672
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#80
|
7433
7673
|
def check_target_ruby; end
|
7434
7674
|
|
7435
|
-
# source://rubocop/1.
|
7675
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#205
|
7436
7676
|
def each_invalid_parameter(cop_name); end
|
7437
7677
|
|
7438
|
-
# source://rubocop/1.
|
7678
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#116
|
7439
7679
|
def list_unknown_cops(invalid_cop_names); end
|
7440
7680
|
|
7441
|
-
# source://rubocop/1.
|
7681
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#284
|
7442
7682
|
def param_error_message(parent, key, value, supposed_values); end
|
7443
7683
|
|
7444
|
-
# source://rubocop/1.
|
7684
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#252
|
7445
7685
|
def reject_conflicting_safe_settings; end
|
7446
7686
|
|
7447
|
-
# source://rubocop/1.
|
7687
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#243
|
7448
7688
|
def reject_mutually_exclusive_defaults; end
|
7449
7689
|
|
7450
|
-
# source://rubocop/1.
|
7690
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#139
|
7451
7691
|
def suggestion(name); end
|
7452
7692
|
|
7453
|
-
# source://rubocop/1.
|
7693
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#71
|
7454
7694
|
def target_ruby; end
|
7455
7695
|
|
7456
|
-
# source://rubocop/1.
|
7696
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#217
|
7457
7697
|
def validate_enforced_styles(valid_cop_names); end
|
7458
7698
|
|
7459
|
-
# source://rubocop/1.
|
7699
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#166
|
7460
7700
|
def validate_new_cops_parameter; end
|
7461
7701
|
|
7462
|
-
# source://rubocop/1.
|
7702
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#191
|
7463
7703
|
def validate_parameter_names(valid_cop_names); end
|
7464
7704
|
|
7465
|
-
# source://rubocop/1.
|
7705
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#177
|
7706
|
+
def validate_parameter_shape(valid_cop_names); end
|
7707
|
+
|
7708
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#237
|
7466
7709
|
def validate_support_and_has_list(name, formats, valid); end
|
7467
7710
|
|
7468
|
-
# source://rubocop/1.
|
7711
|
+
# source://rubocop/1.75.8/lib/rubocop/config_validator.rb#155
|
7469
7712
|
def validate_syntax_cop; end
|
7470
7713
|
end
|
7471
7714
|
|