mangrove 0.31.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +107 -43
- data/lib/mangrove/result.rb +50 -0
- data/lib/mangrove/version.rb +1 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
- data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
- data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
- data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
- data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
- data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
- data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
- data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
- data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
- data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
- data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
- data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
- data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
- 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
- data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
- metadata +39 -42
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -160,12 +160,16 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
|
|
160
160
|
#
|
161
161
|
# @return [Boolean] whether the array is enclosed in percent or square
|
162
162
|
#
|
163
|
-
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#
|
163
|
+
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#64
|
164
164
|
def bracketed?; end
|
165
165
|
|
166
|
-
#
|
166
|
+
# Calls the given block for each `value` node in the `array` literal.
|
167
|
+
# If no block is given, an `Enumerator` is returned.
|
168
|
+
#
|
169
|
+
# @return [self] if a block is given
|
170
|
+
# @return [Enumerator] if no block is given
|
167
171
|
#
|
168
|
-
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#
|
172
|
+
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#25
|
169
173
|
def each_value(&block); end
|
170
174
|
|
171
175
|
# Checks whether the `array` literal is delimited by percent brackets.
|
@@ -174,14 +178,14 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
|
|
174
178
|
# @overload percent_literal?
|
175
179
|
# @return [Boolean] whether the array is enclosed in percent brackets
|
176
180
|
#
|
177
|
-
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#
|
181
|
+
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#51
|
178
182
|
def percent_literal?(type = T.unsafe(nil)); end
|
179
183
|
|
180
184
|
# Checks whether the `array` literal is delimited by square brackets.
|
181
185
|
#
|
182
186
|
# @return [Boolean] whether the array is enclosed in square brackets
|
183
187
|
#
|
184
|
-
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#
|
188
|
+
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#36
|
185
189
|
def square_brackets?; end
|
186
190
|
|
187
191
|
# Returns an array of all value nodes in the `array` literal.
|
@@ -205,19 +209,33 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
|
|
205
209
|
#
|
206
210
|
# @return [Node] the expression being assigned.
|
207
211
|
#
|
208
|
-
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#
|
212
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
|
209
213
|
def expression; end
|
210
214
|
|
215
|
+
# The name of the variable being assigned as a symbol.
|
216
|
+
#
|
217
|
+
# @return [Symbol] the name of the variable being assigned
|
218
|
+
#
|
219
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
|
220
|
+
def lhs; end
|
221
|
+
|
211
222
|
# The name of the variable being assigned as a symbol.
|
212
223
|
#
|
213
224
|
# @return [Symbol] the name of the variable being assigned
|
214
225
|
#
|
215
226
|
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
|
216
227
|
def name; end
|
228
|
+
|
229
|
+
# The expression being assigned to the variable.
|
230
|
+
#
|
231
|
+
# @return [Node] the expression being assigned.
|
232
|
+
#
|
233
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
|
234
|
+
def rhs; end
|
217
235
|
end
|
218
236
|
|
219
237
|
# Common functionality for primitive literal nodes: `sym`, `str`,
|
220
|
-
# `int`, `float`,
|
238
|
+
# `int`, `float`, `rational`...
|
221
239
|
#
|
222
240
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7
|
223
241
|
module RuboCop::AST::BasicLiteralNode
|
@@ -439,18 +457,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default
|
|
439
457
|
#
|
440
458
|
# @return [Node] the generated node
|
441
459
|
#
|
442
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
460
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#106
|
443
461
|
def n(type, children, source_map); end
|
444
462
|
|
445
463
|
# TODO: Figure out what to do about literal encoding handling...
|
446
464
|
# More details here https://github.com/whitequark/parser/issues/283
|
447
465
|
#
|
448
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
466
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#112
|
449
467
|
def string_value(token); end
|
450
468
|
|
451
469
|
private
|
452
470
|
|
453
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
471
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#118
|
454
472
|
def node_klass(type); end
|
455
473
|
end
|
456
474
|
|
@@ -570,26 +588,27 @@ end
|
|
570
588
|
#
|
571
589
|
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8
|
572
590
|
class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
|
591
|
+
include ::RuboCop::AST::ConstantNode
|
592
|
+
|
573
593
|
# The expression being assigned to the variable.
|
574
594
|
#
|
575
595
|
# @return [Node] the expression being assigned.
|
576
596
|
#
|
577
|
-
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#
|
597
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
|
578
598
|
def expression; end
|
579
599
|
|
580
|
-
#
|
581
|
-
|
582
|
-
|
583
|
-
#
|
584
|
-
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#19
|
600
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
|
601
|
+
def lhs; end
|
602
|
+
|
603
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
|
585
604
|
def name; end
|
586
605
|
|
587
|
-
# The
|
606
|
+
# The expression being assigned to the variable.
|
588
607
|
#
|
589
|
-
# @return [Node
|
608
|
+
# @return [Node] the expression being assigned.
|
590
609
|
#
|
591
|
-
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#
|
592
|
-
def
|
610
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
|
611
|
+
def rhs; end
|
593
612
|
end
|
594
613
|
|
595
614
|
# A node extension for `class` nodes. This will be used in place of a plain
|
@@ -624,412 +643,415 @@ end
|
|
624
643
|
#
|
625
644
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#6
|
626
645
|
module RuboCop::AST::CollectionNode
|
627
|
-
extend ::
|
646
|
+
extend ::RuboCop::SimpleForwardable
|
647
|
+
|
648
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
649
|
+
def &(*_arg0, **_arg1, &_arg2); end
|
628
650
|
|
629
|
-
# source://
|
630
|
-
def
|
651
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
652
|
+
def *(*_arg0, **_arg1, &_arg2); end
|
631
653
|
|
632
|
-
# source://
|
633
|
-
def
|
654
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
655
|
+
def +(*_arg0, **_arg1, &_arg2); end
|
634
656
|
|
635
|
-
# source://
|
636
|
-
def
|
657
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
658
|
+
def -(*_arg0, **_arg1, &_arg2); end
|
637
659
|
|
638
|
-
# source://
|
639
|
-
def
|
660
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
661
|
+
def <<(*_arg0, **_arg1, &_arg2); end
|
640
662
|
|
641
|
-
# source://
|
642
|
-
def
|
663
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
664
|
+
def [](*_arg0, **_arg1, &_arg2); end
|
643
665
|
|
644
|
-
# source://
|
645
|
-
def [](*
|
666
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
667
|
+
def []=(*_arg0, **_arg1, &_arg2); end
|
646
668
|
|
647
|
-
# source://
|
648
|
-
def
|
669
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
670
|
+
def all?(*_arg0, **_arg1, &_arg2); end
|
649
671
|
|
650
|
-
# source://
|
651
|
-
def
|
672
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
673
|
+
def any?(*_arg0, **_arg1, &_arg2); end
|
652
674
|
|
653
|
-
# source://
|
654
|
-
def
|
675
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
676
|
+
def append(*_arg0, **_arg1, &_arg2); end
|
655
677
|
|
656
|
-
# source://
|
657
|
-
def
|
678
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
679
|
+
def assoc(*_arg0, **_arg1, &_arg2); end
|
658
680
|
|
659
|
-
# source://
|
660
|
-
def
|
681
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
682
|
+
def at(*_arg0, **_arg1, &_arg2); end
|
661
683
|
|
662
|
-
# source://
|
663
|
-
def
|
684
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
685
|
+
def bsearch(*_arg0, **_arg1, &_arg2); end
|
664
686
|
|
665
|
-
# source://
|
666
|
-
def
|
687
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
688
|
+
def bsearch_index(*_arg0, **_arg1, &_arg2); end
|
667
689
|
|
668
|
-
# source://
|
669
|
-
def
|
690
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
691
|
+
def chain(*_arg0, **_arg1, &_arg2); end
|
670
692
|
|
671
|
-
# source://
|
672
|
-
def
|
693
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
694
|
+
def chunk(*_arg0, **_arg1, &_arg2); end
|
673
695
|
|
674
|
-
# source://
|
675
|
-
def
|
696
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
697
|
+
def chunk_while(*_arg0, **_arg1, &_arg2); end
|
676
698
|
|
677
|
-
# source://
|
678
|
-
def
|
699
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
700
|
+
def clear(*_arg0, **_arg1, &_arg2); end
|
679
701
|
|
680
|
-
# source://
|
681
|
-
def
|
702
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
703
|
+
def collect(*_arg0, **_arg1, &_arg2); end
|
682
704
|
|
683
|
-
# source://
|
684
|
-
def collect(*
|
705
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
706
|
+
def collect!(*_arg0, **_arg1, &_arg2); end
|
685
707
|
|
686
|
-
# source://
|
687
|
-
def
|
708
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
709
|
+
def collect_concat(*_arg0, **_arg1, &_arg2); end
|
688
710
|
|
689
|
-
# source://
|
690
|
-
def
|
711
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
712
|
+
def combination(*_arg0, **_arg1, &_arg2); end
|
691
713
|
|
692
|
-
# source://
|
693
|
-
def
|
714
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
715
|
+
def compact(*_arg0, **_arg1, &_arg2); end
|
694
716
|
|
695
|
-
# source://
|
696
|
-
def compact(*
|
717
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
718
|
+
def compact!(*_arg0, **_arg1, &_arg2); end
|
697
719
|
|
698
|
-
# source://
|
699
|
-
def
|
720
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
721
|
+
def concat(*_arg0, **_arg1, &_arg2); end
|
700
722
|
|
701
|
-
# source://
|
702
|
-
def
|
723
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
724
|
+
def count(*_arg0, **_arg1, &_arg2); end
|
703
725
|
|
704
|
-
# source://
|
705
|
-
def
|
726
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
727
|
+
def cycle(*_arg0, **_arg1, &_arg2); end
|
706
728
|
|
707
|
-
# source://
|
708
|
-
def
|
729
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
730
|
+
def deconstruct(*_arg0, **_arg1, &_arg2); end
|
709
731
|
|
710
|
-
# source://
|
711
|
-
def
|
732
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
733
|
+
def delete(*_arg0, **_arg1, &_arg2); end
|
712
734
|
|
713
|
-
# source://
|
714
|
-
def
|
735
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
736
|
+
def delete_at(*_arg0, **_arg1, &_arg2); end
|
715
737
|
|
716
|
-
# source://
|
717
|
-
def
|
738
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
739
|
+
def delete_if(*_arg0, **_arg1, &_arg2); end
|
718
740
|
|
719
|
-
# source://
|
720
|
-
def
|
741
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
742
|
+
def detect(*_arg0, **_arg1, &_arg2); end
|
721
743
|
|
722
|
-
# source://
|
723
|
-
def
|
744
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
745
|
+
def difference(*_arg0, **_arg1, &_arg2); end
|
724
746
|
|
725
|
-
# source://
|
726
|
-
def
|
747
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
748
|
+
def dig(*_arg0, **_arg1, &_arg2); end
|
727
749
|
|
728
|
-
# source://
|
729
|
-
def
|
750
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
751
|
+
def drop(*_arg0, **_arg1, &_arg2); end
|
730
752
|
|
731
|
-
# source://
|
732
|
-
def
|
753
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
754
|
+
def drop_while(*_arg0, **_arg1, &_arg2); end
|
733
755
|
|
734
|
-
# source://
|
735
|
-
def
|
756
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
757
|
+
def each(*_arg0, **_arg1, &_arg2); end
|
736
758
|
|
737
|
-
# source://
|
738
|
-
def
|
759
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
760
|
+
def each_cons(*_arg0, **_arg1, &_arg2); end
|
739
761
|
|
740
|
-
# source://
|
741
|
-
def
|
762
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
763
|
+
def each_entry(*_arg0, **_arg1, &_arg2); end
|
742
764
|
|
743
|
-
# source://
|
744
|
-
def
|
765
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
766
|
+
def each_index(*_arg0, **_arg1, &_arg2); end
|
745
767
|
|
746
|
-
# source://
|
747
|
-
def
|
768
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
769
|
+
def each_slice(*_arg0, **_arg1, &_arg2); end
|
748
770
|
|
749
|
-
# source://
|
750
|
-
def
|
771
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
772
|
+
def each_with_index(*_arg0, **_arg1, &_arg2); end
|
751
773
|
|
752
|
-
# source://
|
753
|
-
def
|
774
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
775
|
+
def each_with_object(*_arg0, **_arg1, &_arg2); end
|
754
776
|
|
755
|
-
# source://
|
756
|
-
def
|
777
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
778
|
+
def empty?(*_arg0, **_arg1, &_arg2); end
|
757
779
|
|
758
|
-
# source://
|
759
|
-
def
|
780
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
781
|
+
def entries(*_arg0, **_arg1, &_arg2); end
|
760
782
|
|
761
|
-
# source://
|
762
|
-
def
|
783
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
784
|
+
def fetch(*_arg0, **_arg1, &_arg2); end
|
763
785
|
|
764
|
-
# source://
|
765
|
-
def
|
786
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
787
|
+
def fetch_values(*_arg0, **_arg1, &_arg2); end
|
766
788
|
|
767
|
-
# source://
|
768
|
-
def fill(*
|
789
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
790
|
+
def fill(*_arg0, **_arg1, &_arg2); end
|
769
791
|
|
770
|
-
# source://
|
771
|
-
def filter(*
|
792
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
793
|
+
def filter(*_arg0, **_arg1, &_arg2); end
|
772
794
|
|
773
|
-
# source://
|
774
|
-
def filter!(*
|
795
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
796
|
+
def filter!(*_arg0, **_arg1, &_arg2); end
|
775
797
|
|
776
|
-
# source://
|
777
|
-
def filter_map(*
|
798
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
799
|
+
def filter_map(*_arg0, **_arg1, &_arg2); end
|
778
800
|
|
779
|
-
# source://
|
780
|
-
def find(*
|
801
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
802
|
+
def find(*_arg0, **_arg1, &_arg2); end
|
781
803
|
|
782
|
-
# source://
|
783
|
-
def find_all(*
|
804
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
805
|
+
def find_all(*_arg0, **_arg1, &_arg2); end
|
784
806
|
|
785
|
-
# source://
|
786
|
-
def find_index(*
|
807
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
808
|
+
def find_index(*_arg0, **_arg1, &_arg2); end
|
787
809
|
|
788
|
-
# source://
|
789
|
-
def first(*
|
810
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
811
|
+
def first(*_arg0, **_arg1, &_arg2); end
|
790
812
|
|
791
|
-
# source://
|
792
|
-
def flat_map(*
|
813
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
814
|
+
def flat_map(*_arg0, **_arg1, &_arg2); end
|
793
815
|
|
794
|
-
# source://
|
795
|
-
def flatten(*
|
816
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
817
|
+
def flatten(*_arg0, **_arg1, &_arg2); end
|
796
818
|
|
797
|
-
# source://
|
798
|
-
def flatten!(*
|
819
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
820
|
+
def flatten!(*_arg0, **_arg1, &_arg2); end
|
799
821
|
|
800
|
-
# source://
|
801
|
-
def grep(*
|
822
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
823
|
+
def grep(*_arg0, **_arg1, &_arg2); end
|
802
824
|
|
803
|
-
# source://
|
804
|
-
def grep_v(*
|
825
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
826
|
+
def grep_v(*_arg0, **_arg1, &_arg2); end
|
805
827
|
|
806
|
-
# source://
|
807
|
-
def group_by(*
|
828
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
829
|
+
def group_by(*_arg0, **_arg1, &_arg2); end
|
808
830
|
|
809
|
-
# source://
|
810
|
-
def include?(*
|
831
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
832
|
+
def include?(*_arg0, **_arg1, &_arg2); end
|
811
833
|
|
812
|
-
# source://
|
813
|
-
def index(*
|
834
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
835
|
+
def index(*_arg0, **_arg1, &_arg2); end
|
814
836
|
|
815
|
-
# source://
|
816
|
-
def inject(*
|
837
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
838
|
+
def inject(*_arg0, **_arg1, &_arg2); end
|
817
839
|
|
818
|
-
# source://
|
819
|
-
def insert(*
|
840
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
841
|
+
def insert(*_arg0, **_arg1, &_arg2); end
|
820
842
|
|
821
|
-
# source://
|
822
|
-
def intersect?(*
|
843
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
844
|
+
def intersect?(*_arg0, **_arg1, &_arg2); end
|
823
845
|
|
824
|
-
# source://
|
825
|
-
def intersection(*
|
846
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
847
|
+
def intersection(*_arg0, **_arg1, &_arg2); end
|
826
848
|
|
827
|
-
# source://
|
828
|
-
def join(*
|
849
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
850
|
+
def join(*_arg0, **_arg1, &_arg2); end
|
829
851
|
|
830
|
-
# source://
|
831
|
-
def keep_if(*
|
852
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
853
|
+
def keep_if(*_arg0, **_arg1, &_arg2); end
|
832
854
|
|
833
|
-
# source://
|
834
|
-
def last(*
|
855
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
856
|
+
def last(*_arg0, **_arg1, &_arg2); end
|
835
857
|
|
836
|
-
# source://
|
837
|
-
def lazy(*
|
858
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
859
|
+
def lazy(*_arg0, **_arg1, &_arg2); end
|
838
860
|
|
839
|
-
# source://
|
840
|
-
def length(*
|
861
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
862
|
+
def length(*_arg0, **_arg1, &_arg2); end
|
841
863
|
|
842
|
-
# source://
|
843
|
-
def map(*
|
864
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
865
|
+
def map(*_arg0, **_arg1, &_arg2); end
|
844
866
|
|
845
|
-
# source://
|
846
|
-
def map!(*
|
867
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
868
|
+
def map!(*_arg0, **_arg1, &_arg2); end
|
847
869
|
|
848
|
-
# source://
|
849
|
-
def max(*
|
870
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
871
|
+
def max(*_arg0, **_arg1, &_arg2); end
|
850
872
|
|
851
|
-
# source://
|
852
|
-
def max_by(*
|
873
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
874
|
+
def max_by(*_arg0, **_arg1, &_arg2); end
|
853
875
|
|
854
|
-
# source://
|
855
|
-
def member?(*
|
876
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
877
|
+
def member?(*_arg0, **_arg1, &_arg2); end
|
856
878
|
|
857
|
-
# source://
|
858
|
-
def min(*
|
879
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
880
|
+
def min(*_arg0, **_arg1, &_arg2); end
|
859
881
|
|
860
|
-
# source://
|
861
|
-
def min_by(*
|
882
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
883
|
+
def min_by(*_arg0, **_arg1, &_arg2); end
|
862
884
|
|
863
|
-
# source://
|
864
|
-
def minmax(*
|
885
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
886
|
+
def minmax(*_arg0, **_arg1, &_arg2); end
|
865
887
|
|
866
|
-
# source://
|
867
|
-
def minmax_by(*
|
888
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
889
|
+
def minmax_by(*_arg0, **_arg1, &_arg2); end
|
868
890
|
|
869
|
-
# source://
|
870
|
-
def none?(*
|
891
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
892
|
+
def none?(*_arg0, **_arg1, &_arg2); end
|
871
893
|
|
872
|
-
# source://
|
873
|
-
def one?(*
|
894
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
895
|
+
def one?(*_arg0, **_arg1, &_arg2); end
|
874
896
|
|
875
|
-
# source://
|
876
|
-
def pack(*
|
897
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
898
|
+
def pack(*_arg0, **_arg1, &_arg2); end
|
877
899
|
|
878
|
-
# source://
|
879
|
-
def partition(*
|
900
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
901
|
+
def partition(*_arg0, **_arg1, &_arg2); end
|
880
902
|
|
881
|
-
# source://
|
882
|
-
def permutation(*
|
903
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
904
|
+
def permutation(*_arg0, **_arg1, &_arg2); end
|
883
905
|
|
884
|
-
# source://
|
885
|
-
def place(*
|
906
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
907
|
+
def place(*_arg0, **_arg1, &_arg2); end
|
886
908
|
|
887
|
-
# source://
|
888
|
-
def pop(*
|
909
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
910
|
+
def pop(*_arg0, **_arg1, &_arg2); end
|
889
911
|
|
890
|
-
# source://
|
891
|
-
def prepend(*
|
912
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
913
|
+
def prepend(*_arg0, **_arg1, &_arg2); end
|
892
914
|
|
893
|
-
# source://
|
894
|
-
def product(*
|
915
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
916
|
+
def product(*_arg0, **_arg1, &_arg2); end
|
895
917
|
|
896
|
-
# source://
|
897
|
-
def push(*
|
918
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
919
|
+
def push(*_arg0, **_arg1, &_arg2); end
|
898
920
|
|
899
|
-
# source://
|
900
|
-
def rassoc(*
|
921
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
922
|
+
def rassoc(*_arg0, **_arg1, &_arg2); end
|
901
923
|
|
902
|
-
# source://
|
903
|
-
def reduce(*
|
924
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
925
|
+
def reduce(*_arg0, **_arg1, &_arg2); end
|
904
926
|
|
905
|
-
# source://
|
906
|
-
def reject(*
|
927
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
928
|
+
def reject(*_arg0, **_arg1, &_arg2); end
|
907
929
|
|
908
|
-
# source://
|
909
|
-
def reject!(*
|
930
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
931
|
+
def reject!(*_arg0, **_arg1, &_arg2); end
|
910
932
|
|
911
|
-
# source://
|
912
|
-
def repeated_combination(*
|
933
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
934
|
+
def repeated_combination(*_arg0, **_arg1, &_arg2); end
|
913
935
|
|
914
|
-
# source://
|
915
|
-
def repeated_permutation(*
|
936
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
937
|
+
def repeated_permutation(*_arg0, **_arg1, &_arg2); end
|
916
938
|
|
917
|
-
# source://
|
918
|
-
def replace(*
|
939
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
940
|
+
def replace(*_arg0, **_arg1, &_arg2); end
|
919
941
|
|
920
|
-
# source://
|
921
|
-
def reverse(*
|
942
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
943
|
+
def reverse(*_arg0, **_arg1, &_arg2); end
|
922
944
|
|
923
|
-
# source://
|
924
|
-
def reverse!(*
|
945
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
946
|
+
def reverse!(*_arg0, **_arg1, &_arg2); end
|
925
947
|
|
926
|
-
# source://
|
927
|
-
def reverse_each(*
|
948
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
949
|
+
def reverse_each(*_arg0, **_arg1, &_arg2); end
|
928
950
|
|
929
|
-
# source://
|
930
|
-
def rindex(*
|
951
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
952
|
+
def rindex(*_arg0, **_arg1, &_arg2); end
|
931
953
|
|
932
|
-
# source://
|
933
|
-
def rotate(*
|
954
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
955
|
+
def rotate(*_arg0, **_arg1, &_arg2); end
|
934
956
|
|
935
|
-
# source://
|
936
|
-
def rotate!(*
|
957
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
958
|
+
def rotate!(*_arg0, **_arg1, &_arg2); end
|
937
959
|
|
938
|
-
# source://
|
939
|
-
def sample(*
|
960
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
961
|
+
def sample(*_arg0, **_arg1, &_arg2); end
|
940
962
|
|
941
|
-
# source://
|
942
|
-
def select(*
|
963
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
964
|
+
def select(*_arg0, **_arg1, &_arg2); end
|
943
965
|
|
944
|
-
# source://
|
945
|
-
def select!(*
|
966
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
967
|
+
def select!(*_arg0, **_arg1, &_arg2); end
|
946
968
|
|
947
|
-
# source://
|
948
|
-
def shelljoin(*
|
969
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
970
|
+
def shelljoin(*_arg0, **_arg1, &_arg2); end
|
949
971
|
|
950
|
-
# source://
|
951
|
-
def shift(*
|
972
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
973
|
+
def shift(*_arg0, **_arg1, &_arg2); end
|
952
974
|
|
953
|
-
# source://
|
954
|
-
def shuffle(*
|
975
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
976
|
+
def shuffle(*_arg0, **_arg1, &_arg2); end
|
955
977
|
|
956
|
-
# source://
|
957
|
-
def shuffle!(*
|
978
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
979
|
+
def shuffle!(*_arg0, **_arg1, &_arg2); end
|
958
980
|
|
959
|
-
# source://
|
960
|
-
def size(*
|
981
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
982
|
+
def size(*_arg0, **_arg1, &_arg2); end
|
961
983
|
|
962
|
-
# source://
|
963
|
-
def slice(*
|
984
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
985
|
+
def slice(*_arg0, **_arg1, &_arg2); end
|
964
986
|
|
965
|
-
# source://
|
966
|
-
def slice!(*
|
987
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
988
|
+
def slice!(*_arg0, **_arg1, &_arg2); end
|
967
989
|
|
968
|
-
# source://
|
969
|
-
def slice_after(*
|
990
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
991
|
+
def slice_after(*_arg0, **_arg1, &_arg2); end
|
970
992
|
|
971
|
-
# source://
|
972
|
-
def slice_before(*
|
993
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
994
|
+
def slice_before(*_arg0, **_arg1, &_arg2); end
|
973
995
|
|
974
|
-
# source://
|
975
|
-
def slice_when(*
|
996
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
997
|
+
def slice_when(*_arg0, **_arg1, &_arg2); end
|
976
998
|
|
977
|
-
# source://
|
978
|
-
def sort(*
|
999
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1000
|
+
def sort(*_arg0, **_arg1, &_arg2); end
|
979
1001
|
|
980
|
-
# source://
|
981
|
-
def sort!(*
|
1002
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1003
|
+
def sort!(*_arg0, **_arg1, &_arg2); end
|
982
1004
|
|
983
|
-
# source://
|
984
|
-
def sort_by(*
|
1005
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1006
|
+
def sort_by(*_arg0, **_arg1, &_arg2); end
|
985
1007
|
|
986
|
-
# source://
|
987
|
-
def sort_by!(*
|
1008
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1009
|
+
def sort_by!(*_arg0, **_arg1, &_arg2); end
|
988
1010
|
|
989
|
-
# source://
|
990
|
-
def sum(*
|
1011
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1012
|
+
def sum(*_arg0, **_arg1, &_arg2); end
|
991
1013
|
|
992
|
-
# source://
|
993
|
-
def take(*
|
1014
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1015
|
+
def take(*_arg0, **_arg1, &_arg2); end
|
994
1016
|
|
995
|
-
# source://
|
996
|
-
def take_while(*
|
1017
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1018
|
+
def take_while(*_arg0, **_arg1, &_arg2); end
|
997
1019
|
|
998
|
-
# source://
|
999
|
-
def tally(*
|
1020
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1021
|
+
def tally(*_arg0, **_arg1, &_arg2); end
|
1000
1022
|
|
1001
|
-
# source://
|
1002
|
-
def to_ary(*
|
1023
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1024
|
+
def to_ary(*_arg0, **_arg1, &_arg2); end
|
1003
1025
|
|
1004
|
-
# source://
|
1005
|
-
def to_h(*
|
1026
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1027
|
+
def to_h(*_arg0, **_arg1, &_arg2); end
|
1006
1028
|
|
1007
|
-
# source://
|
1008
|
-
def to_set(*
|
1029
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1030
|
+
def to_set(*_arg0, **_arg1, &_arg2); end
|
1009
1031
|
|
1010
|
-
# source://
|
1011
|
-
def transpose(*
|
1032
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1033
|
+
def transpose(*_arg0, **_arg1, &_arg2); end
|
1012
1034
|
|
1013
|
-
# source://
|
1014
|
-
def union(*
|
1035
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1036
|
+
def union(*_arg0, **_arg1, &_arg2); end
|
1015
1037
|
|
1016
|
-
# source://
|
1017
|
-
def uniq(*
|
1038
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1039
|
+
def uniq(*_arg0, **_arg1, &_arg2); end
|
1018
1040
|
|
1019
|
-
# source://
|
1020
|
-
def uniq!(*
|
1041
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1042
|
+
def uniq!(*_arg0, **_arg1, &_arg2); end
|
1021
1043
|
|
1022
|
-
# source://
|
1023
|
-
def unshift(*
|
1044
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1045
|
+
def unshift(*_arg0, **_arg1, &_arg2); end
|
1024
1046
|
|
1025
|
-
# source://
|
1026
|
-
def values_at(*
|
1047
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1048
|
+
def values_at(*_arg0, **_arg1, &_arg2); end
|
1027
1049
|
|
1028
|
-
# source://
|
1029
|
-
def zip(*
|
1050
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1051
|
+
def zip(*_arg0, **_arg1, &_arg2); end
|
1030
1052
|
|
1031
|
-
# source://
|
1032
|
-
def |(*
|
1053
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1054
|
+
def |(*_arg0, **_arg1, &_arg2); end
|
1033
1055
|
end
|
1034
1056
|
|
1035
1057
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9
|
@@ -1080,16 +1102,24 @@ end
|
|
1080
1102
|
#
|
1081
1103
|
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6
|
1082
1104
|
class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
1105
|
+
include ::RuboCop::AST::ConstantNode
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
# Common functionality for nodes that deal with constants:
|
1109
|
+
# `const`, `casgn`.
|
1110
|
+
#
|
1111
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#7
|
1112
|
+
module RuboCop::AST::ConstantNode
|
1083
1113
|
# @return [Boolean] if the constant starts with `::` (aka s(:cbase))
|
1084
1114
|
#
|
1085
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1115
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#27
|
1086
1116
|
def absolute?; end
|
1087
1117
|
|
1088
1118
|
# @return [Boolean] if the constant is a Module / Class, according to the standard convention.
|
1089
1119
|
# Note: some classes might have uppercase in which case this method
|
1090
1120
|
# returns false
|
1091
1121
|
#
|
1092
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1122
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
|
1093
1123
|
def class_name?; end
|
1094
1124
|
|
1095
1125
|
# Yield nodes for the namespace
|
@@ -1099,29 +1129,29 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
|
1099
1129
|
# s(:const, :Foo), then
|
1100
1130
|
# s(:const, s(:const, :Foo), :Bar)
|
1101
1131
|
#
|
1102
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1132
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#44
|
1103
1133
|
def each_path(&block); end
|
1104
1134
|
|
1105
1135
|
# @return [Boolean] if the constant is a Module / Class, according to the standard convention.
|
1106
1136
|
# Note: some classes might have uppercase in which case this method
|
1107
1137
|
# returns false
|
1108
1138
|
#
|
1109
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1139
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
|
1110
1140
|
def module_name?; end
|
1111
1141
|
|
1112
1142
|
# @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...)
|
1113
1143
|
#
|
1114
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1144
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#9
|
1115
1145
|
def namespace; end
|
1116
1146
|
|
1117
1147
|
# @return [Boolean] if the constant does not start with `::` (aka s(:cbase))
|
1118
1148
|
#
|
1119
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1149
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#34
|
1120
1150
|
def relative?; end
|
1121
1151
|
|
1122
1152
|
# @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar
|
1123
1153
|
#
|
1124
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1154
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
|
1125
1155
|
def short_name; end
|
1126
1156
|
end
|
1127
1157
|
|
@@ -1307,10 +1337,33 @@ end
|
|
1307
1337
|
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
1308
1338
|
# Returns the body of the `ensure` clause.
|
1309
1339
|
#
|
1340
|
+
# @deprecated Use `EnsureNode#branch`
|
1310
1341
|
# @return [Node, nil] The body of the `ensure`.
|
1311
1342
|
#
|
1312
|
-
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#
|
1343
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#13
|
1313
1344
|
def body; end
|
1345
|
+
|
1346
|
+
# Returns an the ensure branch in the exception handling statement.
|
1347
|
+
#
|
1348
|
+
# @return [Node, nil] the body of the ensure branch.
|
1349
|
+
#
|
1350
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#20
|
1351
|
+
def branch; end
|
1352
|
+
|
1353
|
+
# Returns the `rescue` node of the `ensure`, if present.
|
1354
|
+
#
|
1355
|
+
# @return [Node, nil] The `rescue` node.
|
1356
|
+
#
|
1357
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#27
|
1358
|
+
def rescue_node; end
|
1359
|
+
|
1360
|
+
# Checks whether this node body is a void context.
|
1361
|
+
# Always `true` for `ensure`.
|
1362
|
+
#
|
1363
|
+
# @return [true] whether the `ensure` node body is a void context
|
1364
|
+
#
|
1365
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#35
|
1366
|
+
def void_context?; end
|
1314
1367
|
end
|
1315
1368
|
|
1316
1369
|
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5
|
@@ -1338,11 +1391,6 @@ module RuboCop::AST::Ext::Range
|
|
1338
1391
|
def line_span(exclude_end: T.unsafe(nil)); end
|
1339
1392
|
end
|
1340
1393
|
|
1341
|
-
# Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6-
|
1342
|
-
#
|
1343
|
-
# source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7
|
1344
|
-
module RuboCop::AST::Ext::RangeMinMax; end
|
1345
|
-
|
1346
1394
|
# A node extension for `float` nodes. This will be used in place of a plain
|
1347
1395
|
# node when the builder constructs the AST, making its methods available to
|
1348
1396
|
# all `float` nodes within RuboCop.
|
@@ -1648,12 +1696,12 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1648
1696
|
#
|
1649
1697
|
# @return [Array<Node>] an array of branch nodes
|
1650
1698
|
#
|
1651
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1699
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#154
|
1652
1700
|
def branches; end
|
1653
1701
|
|
1654
1702
|
# @deprecated Use `branches.each`
|
1655
1703
|
#
|
1656
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1704
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#171
|
1657
1705
|
def each_branch(&block); end
|
1658
1706
|
|
1659
1707
|
# Checks whether the `if` node has an `else` clause.
|
@@ -1662,7 +1710,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1662
1710
|
# This is legacy behavior, and many cops rely on it.
|
1663
1711
|
# @return [Boolean] whether the node has an `else` clause
|
1664
1712
|
#
|
1665
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1713
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49
|
1666
1714
|
def else?; end
|
1667
1715
|
|
1668
1716
|
# Returns the branch of the `if` node that gets evaluated when its
|
@@ -1672,7 +1720,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1672
1720
|
# @return [Node] the falsey branch node of the `if` node
|
1673
1721
|
# @return [nil] when there is no else branch
|
1674
1722
|
#
|
1675
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1723
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#133
|
1676
1724
|
def else_branch; end
|
1677
1725
|
|
1678
1726
|
# Checks whether the `if` is an `elsif`. Parser handles these by nesting
|
@@ -1680,7 +1728,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1680
1728
|
#
|
1681
1729
|
# @return [Boolean] whether the node is an `elsif`
|
1682
1730
|
#
|
1683
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1731
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#39
|
1684
1732
|
def elsif?; end
|
1685
1733
|
|
1686
1734
|
# Checks whether the `if` node has at least one `elsif` branch. Returns
|
@@ -1688,7 +1736,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1688
1736
|
#
|
1689
1737
|
# @return [Boolean] whether the `if` node has at least one `elsif` branch
|
1690
1738
|
#
|
1691
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1739
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#111
|
1692
1740
|
def elsif_conditional?; end
|
1693
1741
|
|
1694
1742
|
# Checks whether this node is an `if` statement. (This is not true of
|
@@ -1706,7 +1754,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1706
1754
|
# @return [Node] the truthy branch node of the `if` node
|
1707
1755
|
# @return [nil] if the truthy branch is empty
|
1708
1756
|
#
|
1709
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1757
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#122
|
1710
1758
|
def if_branch; end
|
1711
1759
|
|
1712
1760
|
# Returns the inverse keyword of the `if` node as a string. Returns `if`
|
@@ -1715,7 +1763,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1715
1763
|
#
|
1716
1764
|
# @return [String] the inverse keyword of the `if` statement
|
1717
1765
|
#
|
1718
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1766
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#73
|
1719
1767
|
def inverse_keyword; end
|
1720
1768
|
|
1721
1769
|
# Returns the keyword of the `if` statement as a string. Returns an empty
|
@@ -1723,7 +1771,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1723
1771
|
#
|
1724
1772
|
# @return [String] the keyword of the `if` statement
|
1725
1773
|
#
|
1726
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1774
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#64
|
1727
1775
|
def keyword; end
|
1728
1776
|
|
1729
1777
|
# Checks whether the `if` node is in a modifier form, i.e. a condition
|
@@ -1732,7 +1780,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1732
1780
|
#
|
1733
1781
|
# @return [Boolean] whether the `if` node is a modifier
|
1734
1782
|
#
|
1735
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1783
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#87
|
1736
1784
|
def modifier_form?; end
|
1737
1785
|
|
1738
1786
|
# Checks whether the `if` node has nested `if` nodes in any of its
|
@@ -1741,7 +1789,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1741
1789
|
# @note This performs a shallow search.
|
1742
1790
|
# @return [Boolean] whether the `if` node contains nested conditionals
|
1743
1791
|
#
|
1744
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1792
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#97
|
1745
1793
|
def nested_conditional?; end
|
1746
1794
|
|
1747
1795
|
# Custom destructuring method. This is used to normalize the branches
|
@@ -1749,16 +1797,23 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1749
1797
|
#
|
1750
1798
|
# @return [Array<Node>] the different parts of the `if` statement
|
1751
1799
|
#
|
1752
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1800
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#141
|
1753
1801
|
def node_parts; end
|
1754
1802
|
|
1755
1803
|
# Checks whether the `if` node is a ternary operator.
|
1756
1804
|
#
|
1757
1805
|
# @return [Boolean] whether the `if` node is a ternary operator
|
1758
1806
|
#
|
1759
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1807
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#56
|
1760
1808
|
def ternary?; end
|
1761
1809
|
|
1810
|
+
# Checks whether the `if` node has an `then` clause.
|
1811
|
+
#
|
1812
|
+
# @return [Boolean] whether the node has an `then` clause
|
1813
|
+
#
|
1814
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#31
|
1815
|
+
def then?; end
|
1816
|
+
|
1762
1817
|
# Checks whether this node is an `unless` statement. (This is not true
|
1763
1818
|
# of ternary operators and `if` statements.)
|
1764
1819
|
#
|
@@ -1917,6 +1972,35 @@ class RuboCop::AST::IntNode < ::RuboCop::AST::Node
|
|
1917
1972
|
include ::RuboCop::AST::NumericNode
|
1918
1973
|
end
|
1919
1974
|
|
1975
|
+
# A node extension for `kwbegin` nodes. This will be used in place of a plain
|
1976
|
+
# node when the builder constructs the AST, making its methods available
|
1977
|
+
# to all `kwbegin` nodes within RuboCop.
|
1978
|
+
#
|
1979
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#8
|
1980
|
+
class RuboCop::AST::KeywordBeginNode < ::RuboCop::AST::Node
|
1981
|
+
# Returns the body of the `kwbegin` block. Returns `self` if the `kwbegin` contains
|
1982
|
+
# multiple nodes.
|
1983
|
+
#
|
1984
|
+
# @return [Node, nil] The body of the `kwbegin`.
|
1985
|
+
#
|
1986
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#13
|
1987
|
+
def body; end
|
1988
|
+
|
1989
|
+
# Returns the `rescue` node of the `kwbegin` block, if one is present.
|
1990
|
+
#
|
1991
|
+
# @return [Node, nil] The `rescue` node within `kwbegin`.
|
1992
|
+
#
|
1993
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#30
|
1994
|
+
def ensure_node; end
|
1995
|
+
|
1996
|
+
# Returns the `rescue` node of the `kwbegin` block, if one is present.
|
1997
|
+
#
|
1998
|
+
# @return [Node, nil] The `rescue` node within `kwbegin`.
|
1999
|
+
#
|
2000
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#37
|
2001
|
+
def rescue_node; end
|
2002
|
+
end
|
2003
|
+
|
1920
2004
|
# A node extension for `kwsplat` and `forwarded_kwrestarg` nodes. This will be used in
|
1921
2005
|
# place of a plain node when the builder constructs the AST, making its methods available to
|
1922
2006
|
# all `kwsplat` and `forwarded_kwrestarg` nodes within RuboCop.
|
@@ -2039,6 +2123,71 @@ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
|
|
2039
2123
|
def first_argument_index; end
|
2040
2124
|
end
|
2041
2125
|
|
2126
|
+
# A node extension for `masgn` nodes.
|
2127
|
+
# This will be used in place of a plain node when the builder constructs
|
2128
|
+
# the AST, making its methods available to all assignment nodes within RuboCop.
|
2129
|
+
#
|
2130
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#8
|
2131
|
+
class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node
|
2132
|
+
# @return [Array<Node>] the assignment nodes of the multiple assignment
|
2133
|
+
#
|
2134
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#16
|
2135
|
+
def assignments; end
|
2136
|
+
|
2137
|
+
# The RHS (right hand side) of the multiple assignment. This returns
|
2138
|
+
# the nodes as parsed: either a single node if the RHS has a single value,
|
2139
|
+
# or an `array` node containing multiple nodes.
|
2140
|
+
#
|
2141
|
+
# NOTE: Due to how parsing works, `expression` will return the same for
|
2142
|
+
# `a, b = x, y` and `a, b = [x, y]`.
|
2143
|
+
#
|
2144
|
+
# @return [Node] the right hand side of a multiple assignment.
|
2145
|
+
#
|
2146
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
|
2147
|
+
def expression; end
|
2148
|
+
|
2149
|
+
# @return [MlhsNode] the `mlhs` node
|
2150
|
+
#
|
2151
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#10
|
2152
|
+
def lhs; end
|
2153
|
+
|
2154
|
+
# @return [Array<Symbol>] names of all the variables being assigned
|
2155
|
+
#
|
2156
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#21
|
2157
|
+
def names; end
|
2158
|
+
|
2159
|
+
# The RHS (right hand side) of the multiple assignment. This returns
|
2160
|
+
# the nodes as parsed: either a single node if the RHS has a single value,
|
2161
|
+
# or an `array` node containing multiple nodes.
|
2162
|
+
#
|
2163
|
+
# NOTE: Due to how parsing works, `expression` will return the same for
|
2164
|
+
# `a, b = x, y` and `a, b = [x, y]`.
|
2165
|
+
#
|
2166
|
+
# @return [Node] the right hand side of a multiple assignment.
|
2167
|
+
#
|
2168
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
|
2169
|
+
def rhs; end
|
2170
|
+
|
2171
|
+
# In contrast to `expression`, `values` always returns a Ruby array
|
2172
|
+
# containing all the nodes being assigned on the RHS.
|
2173
|
+
#
|
2174
|
+
# Literal arrays are considered a singular value; but unlike `expression`,
|
2175
|
+
# implied `array` nodes from assigning multiple values on the RHS are treated
|
2176
|
+
# as separate.
|
2177
|
+
#
|
2178
|
+
# @return [Array<Node>] individual values being assigned on the RHS of the multiple assignment
|
2179
|
+
#
|
2180
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#52
|
2181
|
+
def values; end
|
2182
|
+
|
2183
|
+
private
|
2184
|
+
|
2185
|
+
# @return [Boolean]
|
2186
|
+
#
|
2187
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#58
|
2188
|
+
def multiple_rhs?; end
|
2189
|
+
end
|
2190
|
+
|
2042
2191
|
# Common functionality for nodes that are a kind of method dispatch:
|
2043
2192
|
# `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`,
|
2044
2193
|
# and (modern only): `index`, `indexasgn`, `lambda`
|
@@ -2471,6 +2620,23 @@ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T
|
|
2471
2620
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20
|
2472
2621
|
RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
|
2473
2622
|
|
2623
|
+
# A node extension for `mlhs` nodes.
|
2624
|
+
# This will be used in place of a plain node when the builder constructs
|
2625
|
+
# the AST, making its methods available to all assignment nodes within RuboCop.
|
2626
|
+
#
|
2627
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#8
|
2628
|
+
class RuboCop::AST::MlhsNode < ::RuboCop::AST::Node
|
2629
|
+
# Returns all the assignment nodes on the left hand side (LHS) of a multiple assignment.
|
2630
|
+
# These are generally assignment nodes (`lvasgn`, `ivasgn`, `cvasgn`, `gvasgn`, `casgn`)
|
2631
|
+
# but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ... =`,
|
2632
|
+
# or a `splat` node for `*, ... =`.
|
2633
|
+
#
|
2634
|
+
# @return [Array<Node>] the assignment nodes of the multiple assignment LHS
|
2635
|
+
#
|
2636
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#15
|
2637
|
+
def assignments; end
|
2638
|
+
end
|
2639
|
+
|
2474
2640
|
# Common functionality for nodes that can be used as modifiers:
|
2475
2641
|
# `if`, `while`, `until`
|
2476
2642
|
#
|
@@ -2541,19 +2707,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2541
2707
|
# @return [Node] a new instance of Node
|
2542
2708
|
# @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
|
2543
2709
|
#
|
2544
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2710
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#141
|
2545
2711
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
2546
2712
|
|
2547
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2713
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2548
2714
|
def __ENCODING___type?; end
|
2549
2715
|
|
2550
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2716
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2551
2717
|
def __FILE___type?; end
|
2552
2718
|
|
2553
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2719
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2554
2720
|
def __LINE___type?; end
|
2555
2721
|
|
2556
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2722
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2557
2723
|
def alias_type?; end
|
2558
2724
|
|
2559
2725
|
# Returns an array of ancestor nodes.
|
@@ -2561,173 +2727,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2561
2727
|
#
|
2562
2728
|
# @return [Array<Node>] an array of ancestor nodes
|
2563
2729
|
#
|
2564
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2730
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#306
|
2565
2731
|
def ancestors; end
|
2566
2732
|
|
2567
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2733
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2568
2734
|
def and_asgn_type?; end
|
2569
2735
|
|
2570
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2736
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2571
2737
|
def and_type?; end
|
2572
2738
|
|
2573
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2739
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2574
2740
|
def arg_expr_type?; end
|
2575
2741
|
|
2576
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2742
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2577
2743
|
def arg_type?; end
|
2578
2744
|
|
2579
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2745
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2580
2746
|
def args_type?; end
|
2581
2747
|
|
2582
2748
|
# @return [Boolean]
|
2583
2749
|
#
|
2584
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2750
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#511
|
2585
2751
|
def argument?; end
|
2586
2752
|
|
2587
2753
|
# @return [Boolean]
|
2588
2754
|
#
|
2589
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2755
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#515
|
2590
2756
|
def argument_type?; end
|
2591
2757
|
|
2592
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2758
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2593
2759
|
def array_pattern_type?; end
|
2594
2760
|
|
2595
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2761
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2596
2762
|
def array_pattern_with_tail_type?; end
|
2597
2763
|
|
2598
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2764
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2599
2765
|
def array_type?; end
|
2600
2766
|
|
2601
2767
|
# @return [Boolean]
|
2602
2768
|
#
|
2603
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2769
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#463
|
2604
2770
|
def assignment?; end
|
2605
2771
|
|
2606
2772
|
# Some cops treat the shovel operator as a kind of assignment.
|
2607
2773
|
#
|
2608
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2774
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#413
|
2609
2775
|
def assignment_or_similar?(param0 = T.unsafe(nil)); end
|
2610
2776
|
|
2611
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2777
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2612
2778
|
def back_ref_type?; end
|
2613
2779
|
|
2614
2780
|
# @return [Boolean]
|
2615
2781
|
#
|
2616
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2782
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#467
|
2617
2783
|
def basic_conditional?; end
|
2618
2784
|
|
2619
2785
|
# @return [Boolean]
|
2620
2786
|
#
|
2621
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2787
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#421
|
2622
2788
|
def basic_literal?; end
|
2623
2789
|
|
2624
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2790
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2625
2791
|
def begin_type?; end
|
2626
2792
|
|
2627
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2793
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2628
2794
|
def block_pass_type?; end
|
2629
2795
|
|
2630
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2796
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2631
2797
|
def block_type?; end
|
2632
2798
|
|
2633
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2799
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2634
2800
|
def blockarg_expr_type?; end
|
2635
2801
|
|
2636
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2802
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2637
2803
|
def blockarg_type?; end
|
2638
2804
|
|
2639
2805
|
# @return [Boolean]
|
2640
2806
|
#
|
2641
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2807
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#519
|
2642
2808
|
def boolean_type?; end
|
2643
2809
|
|
2644
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2810
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2645
2811
|
def break_type?; end
|
2646
2812
|
|
2647
2813
|
# @return [Boolean]
|
2648
2814
|
#
|
2649
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2815
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#503
|
2650
2816
|
def call_type?; end
|
2651
2817
|
|
2652
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2818
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2653
2819
|
def case_match_type?; end
|
2654
2820
|
|
2655
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2821
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2656
2822
|
def case_type?; end
|
2657
2823
|
|
2658
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2824
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2659
2825
|
def casgn_type?; end
|
2660
2826
|
|
2661
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2827
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2662
2828
|
def cbase_type?; end
|
2663
2829
|
|
2664
2830
|
# @return [Boolean]
|
2665
2831
|
#
|
2666
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2832
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#507
|
2667
2833
|
def chained?; end
|
2668
2834
|
|
2669
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2835
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#570
|
2670
2836
|
def class_constructor?(param0 = T.unsafe(nil)); end
|
2671
2837
|
|
2672
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2838
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#588
|
2673
2839
|
def class_definition?(param0 = T.unsafe(nil)); end
|
2674
2840
|
|
2675
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2841
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2676
2842
|
def class_type?; end
|
2677
2843
|
|
2678
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2844
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#203
|
2679
2845
|
def complete!; end
|
2680
2846
|
|
2681
2847
|
# @return [Boolean]
|
2682
2848
|
#
|
2683
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2849
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#208
|
2684
2850
|
def complete?; end
|
2685
2851
|
|
2686
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2852
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2687
2853
|
def complex_type?; end
|
2688
2854
|
|
2689
2855
|
# @return [Boolean]
|
2690
2856
|
#
|
2691
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2857
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#471
|
2692
2858
|
def conditional?; end
|
2693
2859
|
|
2694
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2860
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#352
|
2695
2861
|
def const_name; end
|
2696
2862
|
|
2697
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2863
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2698
2864
|
def const_pattern_type?; end
|
2699
2865
|
|
2700
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2866
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2701
2867
|
def const_type?; end
|
2702
2868
|
|
2703
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2869
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2704
2870
|
def csend_type?; end
|
2705
2871
|
|
2706
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2872
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2707
2873
|
def cvar_type?; end
|
2708
2874
|
|
2709
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2875
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2710
2876
|
def cvasgn_type?; end
|
2711
2877
|
|
2712
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2878
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2713
2879
|
def def_type?; end
|
2714
2880
|
|
2715
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2881
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#372
|
2716
2882
|
def defined_module; end
|
2717
2883
|
|
2718
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2884
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#377
|
2719
2885
|
def defined_module_name; end
|
2720
2886
|
|
2721
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2887
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2722
2888
|
def defined_type?; end
|
2723
2889
|
|
2724
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2890
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2725
2891
|
def defs_type?; end
|
2726
2892
|
|
2727
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2893
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2728
2894
|
def dstr_type?; end
|
2729
2895
|
|
2730
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2896
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2731
2897
|
def dsym_type?; end
|
2732
2898
|
|
2733
2899
|
# Calls the given block for each ancestor node from parent to root.
|
@@ -2740,163 +2906,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2740
2906
|
# @return [Enumerator] if no block is given
|
2741
2907
|
# @yieldparam node [Node] each ancestor node
|
2742
2908
|
#
|
2743
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2909
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#294
|
2744
2910
|
def each_ancestor(*types, &block); end
|
2745
2911
|
|
2746
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2912
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2747
2913
|
def eflipflop_type?; end
|
2748
2914
|
|
2749
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2915
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2750
2916
|
def empty_else_type?; end
|
2751
2917
|
|
2752
2918
|
# @return [Boolean]
|
2753
2919
|
#
|
2754
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2920
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#407
|
2755
2921
|
def empty_source?; end
|
2756
2922
|
|
2757
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2923
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2758
2924
|
def ensure_type?; end
|
2759
2925
|
|
2760
2926
|
# @return [Boolean]
|
2761
2927
|
#
|
2762
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2928
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#455
|
2763
2929
|
def equals_asgn?; end
|
2764
2930
|
|
2765
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2931
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2766
2932
|
def erange_type?; end
|
2767
2933
|
|
2768
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2934
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2769
2935
|
def false_type?; end
|
2770
2936
|
|
2771
2937
|
# @return [Boolean]
|
2772
2938
|
#
|
2773
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2939
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#429
|
2774
2940
|
def falsey_literal?; end
|
2775
2941
|
|
2776
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2942
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2777
2943
|
def find_pattern_type?; end
|
2778
2944
|
|
2779
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2945
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#320
|
2780
2946
|
def first_line; end
|
2781
2947
|
|
2782
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2948
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2783
2949
|
def float_type?; end
|
2784
2950
|
|
2785
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2951
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2786
2952
|
def for_type?; end
|
2787
2953
|
|
2788
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2954
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2789
2955
|
def forward_arg_type?; end
|
2790
2956
|
|
2791
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2957
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2792
2958
|
def forward_args_type?; end
|
2793
2959
|
|
2794
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2960
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2795
2961
|
def forwarded_args_type?; end
|
2796
2962
|
|
2797
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2963
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2798
2964
|
def forwarded_kwrestarg_type?; end
|
2799
2965
|
|
2800
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2966
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2801
2967
|
def forwarded_restarg_type?; end
|
2802
2968
|
|
2803
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2969
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#567
|
2804
2970
|
def global_const?(param0 = T.unsafe(nil), param1); end
|
2805
2971
|
|
2806
2972
|
# @return [Boolean]
|
2807
2973
|
#
|
2808
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2974
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#531
|
2809
2975
|
def guard_clause?; end
|
2810
2976
|
|
2811
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2977
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2812
2978
|
def gvar_type?; end
|
2813
2979
|
|
2814
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2980
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2815
2981
|
def gvasgn_type?; end
|
2816
2982
|
|
2817
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2983
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2818
2984
|
def hash_pattern_type?; end
|
2819
2985
|
|
2820
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2986
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2821
2987
|
def hash_type?; end
|
2822
2988
|
|
2823
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2989
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2824
2990
|
def ident_type?; end
|
2825
2991
|
|
2826
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2992
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2827
2993
|
def if_guard_type?; end
|
2828
2994
|
|
2829
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2995
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2830
2996
|
def if_type?; end
|
2831
2997
|
|
2832
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2998
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2833
2999
|
def iflipflop_type?; end
|
2834
3000
|
|
2835
3001
|
# @return [Boolean]
|
2836
3002
|
#
|
2837
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3003
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#437
|
2838
3004
|
def immutable_literal?; end
|
2839
3005
|
|
2840
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3006
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2841
3007
|
def in_match_type?; end
|
2842
3008
|
|
2843
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3009
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2844
3010
|
def in_pattern_type?; end
|
2845
3011
|
|
2846
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3012
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2847
3013
|
def index_type?; end
|
2848
3014
|
|
2849
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3015
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2850
3016
|
def indexasgn_type?; end
|
2851
3017
|
|
2852
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3018
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2853
3019
|
def int_type?; end
|
2854
3020
|
|
2855
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3021
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2856
3022
|
def irange_type?; end
|
2857
3023
|
|
2858
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3024
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2859
3025
|
def ivar_type?; end
|
2860
3026
|
|
2861
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3027
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2862
3028
|
def ivasgn_type?; end
|
2863
3029
|
|
2864
3030
|
# @return [Boolean]
|
2865
3031
|
#
|
2866
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3032
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#484
|
2867
3033
|
def keyword?; end
|
2868
3034
|
|
2869
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3035
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2870
3036
|
def kwarg_type?; end
|
2871
3037
|
|
2872
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3038
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2873
3039
|
def kwargs_type?; end
|
2874
3040
|
|
2875
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3041
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2876
3042
|
def kwbegin_type?; end
|
2877
3043
|
|
2878
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3044
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2879
3045
|
def kwnilarg_type?; end
|
2880
3046
|
|
2881
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3047
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2882
3048
|
def kwoptarg_type?; end
|
2883
3049
|
|
2884
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3050
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2885
3051
|
def kwrestarg_type?; end
|
2886
3052
|
|
2887
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3053
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2888
3054
|
def kwsplat_type?; end
|
2889
3055
|
|
2890
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3056
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#561
|
2891
3057
|
def lambda?(param0 = T.unsafe(nil)); end
|
2892
3058
|
|
2893
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3059
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#564
|
2894
3060
|
def lambda_or_proc?(param0 = T.unsafe(nil)); end
|
2895
3061
|
|
2896
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3062
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2897
3063
|
def lambda_type?; end
|
2898
3064
|
|
2899
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3065
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#324
|
2900
3066
|
def last_line; end
|
2901
3067
|
|
2902
3068
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2904,7 +3070,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2904
3070
|
#
|
2905
3071
|
# @return [Node, nil] the left (aka previous) sibling
|
2906
3072
|
#
|
2907
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3073
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#246
|
2908
3074
|
def left_sibling; end
|
2909
3075
|
|
2910
3076
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2912,94 +3078,102 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2912
3078
|
#
|
2913
3079
|
# @return [Array<Node>] the left (aka previous) siblings
|
2914
3080
|
#
|
2915
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3081
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#256
|
2916
3082
|
def left_siblings; end
|
2917
3083
|
|
2918
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3084
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#328
|
2919
3085
|
def line_count; end
|
2920
3086
|
|
2921
3087
|
# @return [Boolean]
|
2922
3088
|
#
|
2923
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3089
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#417
|
2924
3090
|
def literal?; end
|
2925
3091
|
|
3092
|
+
# Shortcut to safely test a particular location, even if
|
3093
|
+
# this location does not exist or is `nil`
|
3094
|
+
#
|
3095
|
+
# @return [Boolean]
|
3096
|
+
#
|
3097
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#539
|
3098
|
+
def loc_is?(which_loc, str); end
|
3099
|
+
|
2926
3100
|
# NOTE: `loop { }` is a normal method call and thus not a loop keyword.
|
2927
3101
|
#
|
2928
3102
|
# @return [Boolean]
|
2929
3103
|
#
|
2930
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3104
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#480
|
2931
3105
|
def loop_keyword?; end
|
2932
3106
|
|
2933
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3107
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2934
3108
|
def lvar_type?; end
|
2935
3109
|
|
2936
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3110
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2937
3111
|
def lvasgn_type?; end
|
2938
3112
|
|
2939
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3113
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2940
3114
|
def masgn_type?; end
|
2941
3115
|
|
2942
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3116
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2943
3117
|
def match_alt_type?; end
|
2944
3118
|
|
2945
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3119
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2946
3120
|
def match_as_type?; end
|
2947
3121
|
|
2948
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3122
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2949
3123
|
def match_current_line_type?; end
|
2950
3124
|
|
2951
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3125
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#549
|
2952
3126
|
def match_guard_clause?(param0 = T.unsafe(nil)); end
|
2953
3127
|
|
2954
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3128
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2955
3129
|
def match_nil_pattern_type?; end
|
2956
3130
|
|
2957
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3131
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2958
3132
|
def match_pattern_p_type?; end
|
2959
3133
|
|
2960
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3134
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2961
3135
|
def match_pattern_type?; end
|
2962
3136
|
|
2963
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3137
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2964
3138
|
def match_rest_type?; end
|
2965
3139
|
|
2966
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3140
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2967
3141
|
def match_var_type?; end
|
2968
3142
|
|
2969
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3143
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2970
3144
|
def match_with_lvasgn_type?; end
|
2971
3145
|
|
2972
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3146
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2973
3147
|
def match_with_trailing_comma_type?; end
|
2974
3148
|
|
2975
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3149
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2976
3150
|
def mlhs_type?; end
|
2977
3151
|
|
2978
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3152
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#595
|
2979
3153
|
def module_definition?(param0 = T.unsafe(nil)); end
|
2980
3154
|
|
2981
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3155
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2982
3156
|
def module_type?; end
|
2983
3157
|
|
2984
3158
|
# Predicates
|
2985
3159
|
#
|
2986
3160
|
# @return [Boolean]
|
2987
3161
|
#
|
2988
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3162
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#399
|
2989
3163
|
def multiline?; end
|
2990
3164
|
|
2991
3165
|
# @return [Boolean]
|
2992
3166
|
#
|
2993
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3167
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#433
|
2994
3168
|
def mutable_literal?; end
|
2995
3169
|
|
2996
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3170
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#727
|
2997
3171
|
def new_class_or_module_block?(param0 = T.unsafe(nil)); end
|
2998
3172
|
|
2999
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3173
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3000
3174
|
def next_type?; end
|
3001
3175
|
|
3002
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3176
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3003
3177
|
def nil_type?; end
|
3004
3178
|
|
3005
3179
|
# Common destructuring method. This can be used to normalize
|
@@ -3012,95 +3186,95 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3012
3186
|
# source://ast/2.4.2/lib/ast/node.rb#56
|
3013
3187
|
def node_parts; end
|
3014
3188
|
|
3015
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3189
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#334
|
3016
3190
|
def nonempty_line_count; end
|
3017
3191
|
|
3018
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3192
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3019
3193
|
def not_type?; end
|
3020
3194
|
|
3021
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3195
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3022
3196
|
def nth_ref_type?; end
|
3023
3197
|
|
3024
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3198
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3025
3199
|
def numargs_type?; end
|
3026
3200
|
|
3027
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3201
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3028
3202
|
def numblock_type?; end
|
3029
3203
|
|
3030
3204
|
# @return [Boolean]
|
3031
3205
|
#
|
3032
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3206
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#523
|
3033
3207
|
def numeric_type?; end
|
3034
3208
|
|
3035
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3209
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3036
3210
|
def objc_kwarg_type?; end
|
3037
3211
|
|
3038
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3212
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3039
3213
|
def objc_restarg_type?; end
|
3040
3214
|
|
3041
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3215
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3042
3216
|
def objc_varargs_type?; end
|
3043
3217
|
|
3044
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3218
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3045
3219
|
def op_asgn_type?; end
|
3046
3220
|
|
3047
3221
|
# @return [Boolean]
|
3048
3222
|
#
|
3049
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3223
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#495
|
3050
3224
|
def operator_keyword?; end
|
3051
3225
|
|
3052
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3226
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3053
3227
|
def optarg_type?; end
|
3054
3228
|
|
3055
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3229
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3056
3230
|
def or_asgn_type?; end
|
3057
3231
|
|
3058
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3232
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3059
3233
|
def or_type?; end
|
3060
3234
|
|
3061
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3235
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3062
3236
|
def pair_type?; end
|
3063
3237
|
|
3064
3238
|
# Returns the parent node, or `nil` if the receiver is a root node.
|
3065
3239
|
#
|
3066
3240
|
# @return [Node, nil] the parent node or `nil`
|
3067
3241
|
#
|
3068
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3242
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#185
|
3069
3243
|
def parent; end
|
3070
3244
|
|
3071
3245
|
# @return [Boolean]
|
3072
3246
|
#
|
3073
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3247
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#194
|
3074
3248
|
def parent?; end
|
3075
3249
|
|
3076
3250
|
# Searching the AST
|
3077
3251
|
#
|
3078
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3252
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#383
|
3079
3253
|
def parent_module_name; end
|
3080
3254
|
|
3081
3255
|
# @return [Boolean]
|
3082
3256
|
#
|
3083
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3257
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#499
|
3084
3258
|
def parenthesized_call?; end
|
3085
3259
|
|
3086
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3260
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3087
3261
|
def pin_type?; end
|
3088
3262
|
|
3089
3263
|
# @return [Boolean]
|
3090
3264
|
#
|
3091
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3265
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#475
|
3092
3266
|
def post_condition_loop?; end
|
3093
3267
|
|
3094
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3268
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3095
3269
|
def postexe_type?; end
|
3096
3270
|
|
3097
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3271
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3098
3272
|
def preexe_type?; end
|
3099
3273
|
|
3100
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3274
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#554
|
3101
3275
|
def proc?(param0 = T.unsafe(nil)); end
|
3102
3276
|
|
3103
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3277
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3104
3278
|
def procarg0_type?; end
|
3105
3279
|
|
3106
3280
|
# Some expressions are evaluated for their value, some for their side
|
@@ -3113,56 +3287,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3113
3287
|
#
|
3114
3288
|
# @return [Boolean]
|
3115
3289
|
#
|
3116
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3290
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#638
|
3117
3291
|
def pure?; end
|
3118
3292
|
|
3119
3293
|
# @return [Boolean]
|
3120
3294
|
#
|
3121
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3295
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#527
|
3122
3296
|
def range_type?; end
|
3123
3297
|
|
3124
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3298
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3125
3299
|
def rational_type?; end
|
3126
3300
|
|
3127
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3301
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#345
|
3128
3302
|
def receiver(param0 = T.unsafe(nil)); end
|
3129
3303
|
|
3130
|
-
#
|
3304
|
+
# @return [Boolean]
|
3305
|
+
#
|
3306
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#125
|
3131
3307
|
def recursive_basic_literal?; end
|
3132
3308
|
|
3133
|
-
#
|
3309
|
+
# @return [Boolean]
|
3310
|
+
#
|
3311
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#125
|
3134
3312
|
def recursive_literal?; end
|
3135
3313
|
|
3136
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3314
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3137
3315
|
def redo_type?; end
|
3138
3316
|
|
3139
3317
|
# @return [Boolean]
|
3140
3318
|
#
|
3141
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3319
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#451
|
3142
3320
|
def reference?; end
|
3143
3321
|
|
3144
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3322
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3145
3323
|
def regexp_type?; end
|
3146
3324
|
|
3147
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3325
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3148
3326
|
def regopt_type?; end
|
3149
3327
|
|
3150
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3328
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3151
3329
|
def resbody_type?; end
|
3152
3330
|
|
3153
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3331
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3154
3332
|
def rescue_type?; end
|
3155
3333
|
|
3156
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3334
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3157
3335
|
def restarg_expr_type?; end
|
3158
3336
|
|
3159
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3337
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3160
3338
|
def restarg_type?; end
|
3161
3339
|
|
3162
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3340
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3163
3341
|
def retry_type?; end
|
3164
3342
|
|
3165
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3343
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3166
3344
|
def return_type?; end
|
3167
3345
|
|
3168
3346
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3170,7 +3348,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3170
3348
|
#
|
3171
3349
|
# @return [Node, nil] the right (aka next) sibling
|
3172
3350
|
#
|
3173
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3351
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#237
|
3174
3352
|
def right_sibling; end
|
3175
3353
|
|
3176
3354
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3178,18 +3356,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3178
3356
|
#
|
3179
3357
|
# @return [Array<Node>] the right (aka next) siblings
|
3180
3358
|
#
|
3181
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3359
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#265
|
3182
3360
|
def right_siblings; end
|
3183
3361
|
|
3184
3362
|
# @return [Boolean]
|
3185
3363
|
#
|
3186
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3364
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#199
|
3187
3365
|
def root?; end
|
3188
3366
|
|
3189
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3367
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3190
3368
|
def sclass_type?; end
|
3191
3369
|
|
3192
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3370
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3193
3371
|
def self_type?; end
|
3194
3372
|
|
3195
3373
|
# Most nodes are of 'send' type, so this method is defined
|
@@ -3197,15 +3375,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3197
3375
|
#
|
3198
3376
|
# @return [Boolean]
|
3199
3377
|
#
|
3200
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3378
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#178
|
3201
3379
|
def send_type?; end
|
3202
3380
|
|
3203
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3381
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3204
3382
|
def shadowarg_type?; end
|
3205
3383
|
|
3206
3384
|
# @return [Boolean]
|
3207
3385
|
#
|
3208
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3386
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#459
|
3209
3387
|
def shorthand_asgn?; end
|
3210
3388
|
|
3211
3389
|
# Returns the index of the receiver node in its siblings. (Sibling index
|
@@ -3214,70 +3392,79 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3214
3392
|
#
|
3215
3393
|
# @return [Integer, nil] the index of the receiver node in its siblings
|
3216
3394
|
#
|
3217
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3395
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#230
|
3218
3396
|
def sibling_index; end
|
3219
3397
|
|
3220
3398
|
# @return [Boolean]
|
3221
3399
|
#
|
3222
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3400
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#403
|
3223
3401
|
def single_line?; end
|
3224
3402
|
|
3225
3403
|
# NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
|
3226
3404
|
#
|
3227
3405
|
# @return [String, nil]
|
3228
3406
|
#
|
3229
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3407
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#312
|
3230
3408
|
def source; end
|
3231
3409
|
|
3232
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3410
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#338
|
3233
3411
|
def source_length; end
|
3234
3412
|
|
3235
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3413
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#316
|
3236
3414
|
def source_range; end
|
3237
3415
|
|
3238
3416
|
# @return [Boolean]
|
3239
3417
|
#
|
3240
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3418
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#491
|
3241
3419
|
def special_keyword?; end
|
3242
3420
|
|
3243
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3421
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3244
3422
|
def splat_type?; end
|
3245
3423
|
|
3246
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3424
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#350
|
3247
3425
|
def str_content(param0 = T.unsafe(nil)); end
|
3248
3426
|
|
3249
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3427
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3250
3428
|
def str_type?; end
|
3251
3429
|
|
3252
3430
|
# @deprecated Use `:class_constructor?`
|
3253
3431
|
#
|
3254
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3432
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#583
|
3255
3433
|
def struct_constructor?(param0 = T.unsafe(nil)); end
|
3256
3434
|
|
3257
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3435
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3258
3436
|
def super_type?; end
|
3259
3437
|
|
3260
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3438
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3261
3439
|
def sym_type?; end
|
3262
3440
|
|
3263
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3441
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3264
3442
|
def true_type?; end
|
3265
3443
|
|
3266
3444
|
# @return [Boolean]
|
3267
3445
|
#
|
3268
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3446
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#425
|
3269
3447
|
def truthy_literal?; end
|
3270
3448
|
|
3271
|
-
#
|
3449
|
+
# Determine if the node is one of several node types in a single query
|
3450
|
+
# Allows specific single node types, as well as "grouped" types
|
3451
|
+
# (e.g. `:boolean` for `:true` or `:false`)
|
3452
|
+
#
|
3453
|
+
# @return [Boolean]
|
3454
|
+
#
|
3455
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#160
|
3456
|
+
def type?(*types); end
|
3457
|
+
|
3458
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3272
3459
|
def undef_type?; end
|
3273
3460
|
|
3274
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3461
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3275
3462
|
def unless_guard_type?; end
|
3276
3463
|
|
3277
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3464
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3278
3465
|
def until_post_type?; end
|
3279
3466
|
|
3280
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3467
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3281
3468
|
def until_type?; end
|
3282
3469
|
|
3283
3470
|
# Override `AST::Node#updated` so that `AST::Processor` does not try to
|
@@ -3286,7 +3473,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3286
3473
|
# identical subtrees. Rather, the entire AST must be copied any time any
|
3287
3474
|
# part of it is changed.
|
3288
3475
|
#
|
3289
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3476
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#219
|
3290
3477
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
3291
3478
|
|
3292
3479
|
# Some expressions are evaluated for their value, some for their side
|
@@ -3297,76 +3484,82 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3297
3484
|
# So, does the return value of this node matter? If we changed it to
|
3298
3485
|
# `(...; nil)`, might that affect anything?
|
3299
3486
|
#
|
3300
|
-
#
|
3301
3487
|
# @return [Boolean]
|
3302
3488
|
#
|
3303
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3489
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#608
|
3304
3490
|
def value_used?; end
|
3305
3491
|
|
3306
3492
|
# @return [Boolean]
|
3307
3493
|
#
|
3308
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3494
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#447
|
3309
3495
|
def variable?; end
|
3310
3496
|
|
3311
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3497
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3312
3498
|
def when_type?; end
|
3313
3499
|
|
3314
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3500
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3315
3501
|
def while_post_type?; end
|
3316
3502
|
|
3317
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3503
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3318
3504
|
def while_type?; end
|
3319
3505
|
|
3320
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3506
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3321
3507
|
def xstr_type?; end
|
3322
3508
|
|
3323
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3509
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3324
3510
|
def yield_type?; end
|
3325
3511
|
|
3326
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3512
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3327
3513
|
def zsuper_type?; end
|
3328
3514
|
|
3329
3515
|
protected
|
3330
3516
|
|
3331
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3517
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#189
|
3332
3518
|
def parent=(node); end
|
3333
3519
|
|
3334
3520
|
private
|
3335
3521
|
|
3336
3522
|
# @return [Boolean]
|
3337
3523
|
#
|
3338
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3524
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#666
|
3339
3525
|
def begin_value_used?; end
|
3340
3526
|
|
3341
3527
|
# @return [Boolean]
|
3342
3528
|
#
|
3343
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3529
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#677
|
3344
3530
|
def case_if_value_used?; end
|
3345
3531
|
|
3346
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3532
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#363
|
3347
3533
|
def defined_module0(param0 = T.unsafe(nil)); end
|
3348
3534
|
|
3349
3535
|
# @return [Boolean]
|
3350
3536
|
#
|
3351
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3537
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#671
|
3352
3538
|
def for_value_used?; end
|
3353
3539
|
|
3354
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3540
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#713
|
3355
3541
|
def parent_module_name_for_block(ancestor); end
|
3356
3542
|
|
3357
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3543
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#701
|
3358
3544
|
def parent_module_name_for_sclass(sclass_node); end
|
3359
3545
|
|
3360
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3546
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#688
|
3361
3547
|
def parent_module_name_part(node); end
|
3362
3548
|
|
3363
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3549
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#656
|
3364
3550
|
def visit_ancestors(types); end
|
3365
3551
|
|
3366
3552
|
# @return [Boolean]
|
3367
3553
|
#
|
3368
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3554
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#683
|
3369
3555
|
def while_until_value_used?; end
|
3556
|
+
|
3557
|
+
class << self
|
3558
|
+
private
|
3559
|
+
|
3560
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#120
|
3561
|
+
def def_recursive_literal_predicate(kind); end
|
3562
|
+
end
|
3370
3563
|
end
|
3371
3564
|
|
3372
3565
|
# @api private
|
@@ -3422,6 +3615,11 @@ RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
|
|
3422
3615
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#35
|
3423
3616
|
RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set)
|
3424
3617
|
|
3618
|
+
# @api private
|
3619
|
+
#
|
3620
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#92
|
3621
|
+
RuboCop::AST::Node::GROUP_FOR_TYPE = T.let(T.unsafe(nil), Hash)
|
3622
|
+
|
3425
3623
|
# @api private
|
3426
3624
|
#
|
3427
3625
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#47
|
@@ -3510,7 +3708,7 @@ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set)
|
|
3510
3708
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5
|
3511
3709
|
class RuboCop::AST::NodePattern
|
3512
3710
|
include ::RuboCop::AST::NodePattern::MethodDefiner
|
3513
|
-
extend ::
|
3711
|
+
extend ::RuboCop::SimpleForwardable
|
3514
3712
|
|
3515
3713
|
# @return [NodePattern] a new instance of NodePattern
|
3516
3714
|
#
|
@@ -3528,8 +3726,8 @@ class RuboCop::AST::NodePattern
|
|
3528
3726
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3529
3727
|
def ast; end
|
3530
3728
|
|
3531
|
-
# source://
|
3532
|
-
def captures(*
|
3729
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3730
|
+
def captures(*_arg0, **_arg1, &_arg2); end
|
3533
3731
|
|
3534
3732
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
|
3535
3733
|
def encode_with(coder); end
|
@@ -3557,16 +3755,16 @@ class RuboCop::AST::NodePattern
|
|
3557
3755
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3558
3756
|
def match_code; end
|
3559
3757
|
|
3560
|
-
# source://
|
3561
|
-
def named_parameters(*
|
3758
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3759
|
+
def named_parameters(*_arg0, **_arg1, &_arg2); end
|
3562
3760
|
|
3563
3761
|
# Returns the value of attribute pattern.
|
3564
3762
|
#
|
3565
3763
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3566
3764
|
def pattern; end
|
3567
3765
|
|
3568
|
-
# source://
|
3569
|
-
def positional_parameters(*
|
3766
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3767
|
+
def positional_parameters(*_arg0, **_arg1, &_arg2); end
|
3570
3768
|
|
3571
3769
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
|
3572
3770
|
def to_s; end
|
@@ -3671,15 +3869,15 @@ end
|
|
3671
3869
|
#
|
3672
3870
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11
|
3673
3871
|
class RuboCop::AST::NodePattern::Compiler
|
3674
|
-
extend ::
|
3872
|
+
extend ::RuboCop::SimpleForwardable
|
3675
3873
|
|
3676
3874
|
# @return [Compiler] a new instance of Compiler
|
3677
3875
|
#
|
3678
3876
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
|
3679
3877
|
def initialize; end
|
3680
3878
|
|
3681
|
-
# source://
|
3682
|
-
def bind(*
|
3879
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3880
|
+
def bind(*_arg0, **_arg1, &_arg2); end
|
3683
3881
|
|
3684
3882
|
# Returns the value of attribute binding.
|
3685
3883
|
#
|
@@ -3804,7 +4002,10 @@ class RuboCop::AST::NodePattern::Compiler::Binding
|
|
3804
4002
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#16
|
3805
4003
|
def bind(name); end
|
3806
4004
|
|
3807
|
-
#
|
4005
|
+
# Yields for each branch of the given union, forbidding unification of
|
4006
|
+
# bindings which only appear in a subset of the union.
|
4007
|
+
#
|
4008
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#31
|
3808
4009
|
def union_bind(enum); end
|
3809
4010
|
|
3810
4011
|
private
|
@@ -3822,8 +4023,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
|
|
3822
4023
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
|
3823
4024
|
def initialize; end
|
3824
4025
|
|
3825
|
-
# source://
|
3826
|
-
def comments(*
|
4026
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4027
|
+
def comments(*_arg0, **_arg1, &_arg2); end
|
3827
4028
|
|
3828
4029
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128
|
3829
4030
|
def named_parameters; end
|
@@ -3836,8 +4037,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
|
|
3836
4037
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132
|
3837
4038
|
def parser; end
|
3838
4039
|
|
3839
|
-
# source://
|
3840
|
-
def tokens(*
|
4040
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4041
|
+
def tokens(*_arg0, **_arg1, &_arg2); end
|
3841
4042
|
end
|
3842
4043
|
|
3843
4044
|
# @api private
|
@@ -4152,8 +4353,7 @@ end
|
|
4152
4353
|
# Doc on how this fits in the compiling process:
|
4153
4354
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
4154
4355
|
#
|
4155
|
-
#
|
4156
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17
|
4356
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#16
|
4157
4357
|
class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
|
4158
4358
|
# Calls `compile_sequence`; the actual `compile` method
|
4159
4359
|
# will be used for the different terms of the sequence.
|
@@ -4306,6 +4506,8 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST:
|
|
4306
4506
|
def within_loop; end
|
4307
4507
|
end
|
4308
4508
|
|
4509
|
+
# Shift of 1 from standard Ruby indices
|
4510
|
+
#
|
4309
4511
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18
|
4310
4512
|
RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer)
|
4311
4513
|
|
@@ -4438,7 +4640,7 @@ class RuboCop::AST::NodePattern::LexerRex
|
|
4438
4640
|
|
4439
4641
|
# The current location in the parse.
|
4440
4642
|
#
|
4441
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#
|
4643
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103
|
4442
4644
|
def location; end
|
4443
4645
|
|
4444
4646
|
# The StringScanner for this lexer.
|
@@ -4453,22 +4655,22 @@ class RuboCop::AST::NodePattern::LexerRex
|
|
4453
4655
|
|
4454
4656
|
# Lex the next token.
|
4455
4657
|
#
|
4456
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#
|
4658
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112
|
4457
4659
|
def next_token; end
|
4458
4660
|
|
4459
4661
|
# Parse the given string.
|
4460
4662
|
#
|
4461
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#
|
4663
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#83
|
4462
4664
|
def parse(str); end
|
4463
4665
|
|
4464
4666
|
# Read in and parse the file at +path+.
|
4465
4667
|
#
|
4466
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#
|
4668
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#93
|
4467
4669
|
def parse_file(path); end
|
4468
4670
|
|
4469
4671
|
# The current scanner class. Must be overridden in subclasses.
|
4470
4672
|
#
|
4471
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#
|
4673
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#76
|
4472
4674
|
def scanner_class; end
|
4473
4675
|
|
4474
4676
|
# The StringScanner for this lexer.
|
@@ -4612,218 +4814,218 @@ end
|
|
4612
4814
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7
|
4613
4815
|
class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
4614
4816
|
include ::RuboCop::AST::Descendence
|
4615
|
-
extend ::
|
4817
|
+
extend ::RuboCop::SimpleForwardable
|
4616
4818
|
|
4617
4819
|
# Note: `arity.end` may be `Float::INFINITY`
|
4618
4820
|
#
|
4619
4821
|
# @return [Integer, Range] An Integer for fixed length terms, otherwise a Range.
|
4620
4822
|
#
|
4621
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4823
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#28
|
4622
4824
|
def arity; end
|
4623
4825
|
|
4624
4826
|
# @return [Range] arity as a Range
|
4625
4827
|
#
|
4626
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4828
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#68
|
4627
4829
|
def arity_range; end
|
4628
4830
|
|
4629
4831
|
# @return [Boolean]
|
4630
4832
|
#
|
4631
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4833
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#22
|
4632
4834
|
def capture?; end
|
4633
4835
|
|
4634
4836
|
# @return [Node] most nodes have only one child
|
4635
4837
|
#
|
4636
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4838
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#47
|
4637
4839
|
def child; end
|
4638
4840
|
|
4639
4841
|
# @return [Array<Node>]
|
4640
4842
|
#
|
4641
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4843
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#42
|
4642
4844
|
def children_nodes; end
|
4643
4845
|
|
4644
4846
|
# @return [Array<Node>, nil] replace node with result, or `nil` if no change requested.
|
4645
4847
|
#
|
4646
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4848
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#33
|
4647
4849
|
def in_sequence_head; end
|
4648
4850
|
|
4649
4851
|
# that matches within a Set (e.g. `42`, `:sym` but not `/regexp/`)
|
4650
4852
|
#
|
4651
4853
|
# @return [Boolean] returns true for nodes having a Ruby literal equivalent
|
4652
4854
|
#
|
4653
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4855
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#63
|
4654
4856
|
def matches_within_set?; end
|
4655
4857
|
|
4656
4858
|
# @return [Integer] nb of captures of that node and its descendants
|
4657
4859
|
#
|
4658
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4860
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#52
|
4659
4861
|
def nb_captures; end
|
4660
4862
|
|
4661
4863
|
# To be overridden by subclasses
|
4662
4864
|
#
|
4663
4865
|
# @return [Boolean]
|
4664
4866
|
#
|
4665
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4867
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#18
|
4666
4868
|
def rest?; end
|
4667
4869
|
|
4668
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4870
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#77
|
4669
4871
|
def source_range; end
|
4670
4872
|
|
4671
4873
|
# @return [Boolean] returns whether it matches a variable number of elements
|
4672
4874
|
#
|
4673
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4875
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#57
|
4674
4876
|
def variadic?; end
|
4675
4877
|
|
4676
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4878
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#73
|
4677
4879
|
def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end
|
4678
4880
|
end
|
4679
4881
|
|
4680
4882
|
# Node class for `<int str ...>`
|
4681
4883
|
#
|
4682
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4884
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#179
|
4683
4885
|
class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
|
4684
4886
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4685
4887
|
|
4686
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4888
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#197
|
4687
4889
|
def arity; end
|
4688
4890
|
|
4689
4891
|
# @return [Boolean]
|
4690
4892
|
#
|
4691
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4893
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#189
|
4692
4894
|
def ends_with_rest?; end
|
4693
4895
|
|
4694
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4896
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#193
|
4695
4897
|
def rest_node; end
|
4696
4898
|
|
4697
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4899
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#185
|
4698
4900
|
def term_nodes; end
|
4699
4901
|
end
|
4700
4902
|
|
4701
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4903
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#182
|
4702
4904
|
RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
|
4703
4905
|
|
4704
4906
|
# Node class for `$something`
|
4705
4907
|
#
|
4706
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4908
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96
|
4707
4909
|
class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
|
4708
|
-
# source://
|
4709
|
-
def arity(*
|
4910
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4911
|
+
def arity(*_arg0, **_arg1, &_arg2); end
|
4710
4912
|
|
4711
4913
|
# @return [Boolean]
|
4712
4914
|
#
|
4713
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4915
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#100
|
4714
4916
|
def capture?; end
|
4715
4917
|
|
4716
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4918
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#108
|
4717
4919
|
def in_sequence_head; end
|
4718
4920
|
|
4719
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4921
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104
|
4720
4922
|
def nb_captures; end
|
4721
4923
|
|
4722
|
-
# source://
|
4723
|
-
def rest?(*
|
4924
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4925
|
+
def rest?(*_arg0, **_arg1, &_arg2); end
|
4724
4926
|
end
|
4725
4927
|
|
4726
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4928
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#85
|
4727
4929
|
module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4728
4930
|
# @raise [NodePattern::Invalid]
|
4729
4931
|
#
|
4730
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4932
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86
|
4731
4933
|
def in_sequence_head; end
|
4732
4934
|
end
|
4733
4935
|
|
4734
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4936
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139
|
4735
4937
|
RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate
|
4736
4938
|
|
4737
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4939
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#81
|
4738
4940
|
RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
|
4739
4941
|
|
4740
4942
|
# Registry
|
4741
4943
|
#
|
4742
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4944
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#249
|
4743
4945
|
RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
|
4744
4946
|
|
4745
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4947
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#11
|
4746
4948
|
RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
|
4747
4949
|
|
4748
4950
|
# Node class for `predicate?(:arg, :list)`
|
4749
4951
|
#
|
4750
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4952
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#130
|
4751
4953
|
class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
|
4752
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4954
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#135
|
4753
4955
|
def arg_list; end
|
4754
4956
|
|
4755
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4957
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131
|
4756
4958
|
def method_name; end
|
4757
4959
|
end
|
4758
4960
|
|
4759
4961
|
# Node class for `int+`
|
4760
4962
|
#
|
4761
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4963
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#142
|
4762
4964
|
class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
|
4763
4965
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4764
4966
|
|
4765
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4967
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#155
|
4766
4968
|
def arity; end
|
4767
4969
|
|
4768
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4970
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#145
|
4769
4971
|
def operator; end
|
4770
4972
|
end
|
4771
4973
|
|
4772
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4974
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#149
|
4773
4975
|
RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
|
4774
4976
|
|
4775
4977
|
# Node class for `...`
|
4776
4978
|
#
|
4777
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4979
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#161
|
4778
4980
|
class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
|
4779
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4981
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#169
|
4780
4982
|
def arity; end
|
4781
4983
|
|
4782
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4984
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#173
|
4783
4985
|
def in_sequence_head; end
|
4784
4986
|
|
4785
4987
|
# @return [Boolean]
|
4786
4988
|
#
|
4787
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4989
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#165
|
4788
4990
|
def rest?; end
|
4789
4991
|
end
|
4790
4992
|
|
4791
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4993
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162
|
4792
4994
|
RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
|
4793
4995
|
|
4794
4996
|
# Node class for `(type first second ...)`
|
4795
4997
|
#
|
4796
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4998
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#117
|
4797
4999
|
class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
|
4798
5000
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4799
5001
|
|
4800
5002
|
# @return [Sequence] a new instance of Sequence
|
4801
5003
|
#
|
4802
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
5004
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#120
|
4803
5005
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
4804
5006
|
end
|
4805
5007
|
|
4806
5008
|
# A list (potentially empty) of nodes; part of a Union
|
4807
5009
|
#
|
4808
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
5010
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#205
|
4809
5011
|
class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
|
4810
5012
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4811
5013
|
|
4812
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
5014
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#208
|
4813
5015
|
def arity; end
|
4814
5016
|
|
4815
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
5017
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#213
|
4816
5018
|
def in_sequence_head; end
|
4817
5019
|
end
|
4818
5020
|
|
4819
5021
|
# Node class for `{ ... }`
|
4820
5022
|
#
|
4821
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
5023
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#223
|
4822
5024
|
class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
|
4823
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
5025
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224
|
4824
5026
|
def arity; end
|
4825
5027
|
|
4826
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
5028
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#231
|
4827
5029
|
def in_sequence_head; end
|
4828
5030
|
end
|
4829
5031
|
|
@@ -4835,7 +5037,7 @@ end
|
|
4835
5037
|
#
|
4836
5038
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12
|
4837
5039
|
class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
4838
|
-
extend ::
|
5040
|
+
extend ::RuboCop::SimpleForwardable
|
4839
5041
|
|
4840
5042
|
# @return [Parser] a new instance of Parser
|
4841
5043
|
#
|
@@ -4954,29 +5156,29 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
|
4954
5156
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
|
4955
5157
|
def _reduce_none(val, _values); end
|
4956
5158
|
|
4957
|
-
# source://
|
4958
|
-
def emit_atom(*
|
5159
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5160
|
+
def emit_atom(*_arg0, **_arg1, &_arg2); end
|
4959
5161
|
|
4960
|
-
# source://
|
4961
|
-
def emit_call(*
|
5162
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5163
|
+
def emit_call(*_arg0, **_arg1, &_arg2); end
|
4962
5164
|
|
4963
|
-
# source://
|
4964
|
-
def emit_capture(*
|
5165
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5166
|
+
def emit_capture(*_arg0, **_arg1, &_arg2); end
|
4965
5167
|
|
4966
|
-
# source://
|
4967
|
-
def emit_list(*
|
5168
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5169
|
+
def emit_list(*_arg0, **_arg1, &_arg2); end
|
4968
5170
|
|
4969
|
-
# source://
|
4970
|
-
def emit_unary_op(*
|
5171
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5172
|
+
def emit_unary_op(*_arg0, **_arg1, &_arg2); end
|
4971
5173
|
|
4972
|
-
# source://
|
4973
|
-
def emit_union(*
|
5174
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5175
|
+
def emit_union(*_arg0, **_arg1, &_arg2); end
|
4974
5176
|
|
4975
5177
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
|
4976
5178
|
def inspect; end
|
4977
5179
|
|
4978
|
-
# source://
|
4979
|
-
def next_token(*
|
5180
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5181
|
+
def next_token(*_arg0, **_arg1, &_arg2); end
|
4980
5182
|
|
4981
5183
|
# (Similar API to `parser` gem)
|
4982
5184
|
# Parses a source and returns the AST.
|
@@ -5136,50 +5338,17 @@ RuboCop::AST::NodePattern::Sets::SET_ALL_CONTEXT = T.let(T.unsafe(nil), Set)
|
|
5136
5338
|
RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let(T.unsafe(nil), Set)
|
5137
5339
|
|
5138
5340
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5139
|
-
RuboCop::AST::NodePattern::Sets::
|
5341
|
+
RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE = T.let(T.unsafe(nil), Set)
|
5140
5342
|
|
5141
5343
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5142
5344
|
RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set)
|
5143
5345
|
|
5144
5346
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5145
|
-
RuboCop::AST::NodePattern::Sets::
|
5146
|
-
|
5147
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5148
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_EQUAL_ASSERT_NOT_EQUAL_REFUTE_EQUAL = T.let(T.unsafe(nil), Set)
|
5149
|
-
|
5150
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5151
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_FALSE = T.let(T.unsafe(nil), Set)
|
5152
|
-
|
5153
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5154
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_INCLUDES_ASSERT_NOT_INCLUDES_REFUTE_INCLUDES = T.let(T.unsafe(nil), Set)
|
5155
|
-
|
5156
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5157
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_INSTANCE_OF_ASSERT_NOT_INSTANCE_OF_REFUTE_INSTANCE_OF = T.let(T.unsafe(nil), Set)
|
5158
|
-
|
5159
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5160
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_IN_DELTA_ASSERT_NOT_IN_DELTA_REFUTE_IN_DELTA = T.let(T.unsafe(nil), Set)
|
5161
|
-
|
5162
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5163
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_KIND_OF_ASSERT_NOT_KIND_OF_REFUTE_KIND_OF = T.let(T.unsafe(nil), Set)
|
5164
|
-
|
5165
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5166
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_MATCH_REFUTE_MATCH = T.let(T.unsafe(nil), Set)
|
5167
|
-
|
5168
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5169
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_NIL_ASSERT_NOT_NIL_REFUTE_NIL = T.let(T.unsafe(nil), Set)
|
5170
|
-
|
5171
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5172
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_PREDICATE_ASSERT_NOT_PREDICATE_REFUTE_PREDICATE = T.let(T.unsafe(nil), Set)
|
5173
|
-
|
5174
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5175
|
-
RuboCop::AST::NodePattern::Sets::SET_ASSERT_TRUE = T.let(T.unsafe(nil), Set)
|
5347
|
+
RuboCop::AST::NodePattern::Sets::SET_ARRAY_HASH = T.let(T.unsafe(nil), Set)
|
5176
5348
|
|
5177
5349
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5178
5350
|
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
|
5179
5351
|
|
5180
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5181
|
-
RuboCop::AST::NodePattern::Sets::SET_BACKGROUND_SCENARIO_XSCENARIO_ETC = T.let(T.unsafe(nil), Set)
|
5182
|
-
|
5183
5352
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5184
5353
|
RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set)
|
5185
5354
|
|
@@ -5222,9 +5391,6 @@ RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Se
|
|
5222
5391
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5223
5392
|
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
|
5224
5393
|
|
5225
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5226
|
-
RuboCop::AST::NodePattern::Sets::SET_DESCRIBE_CONTEXT_FEATURE_ETC = T.let(T.unsafe(nil), Set)
|
5227
|
-
|
5228
5394
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5229
5395
|
RuboCop::AST::NodePattern::Sets::SET_DOUBLE_SPY = T.let(T.unsafe(nil), Set)
|
5230
5396
|
|
@@ -5252,12 +5418,6 @@ RuboCop::AST::NodePattern::Sets::SET_EXIST_EXISTS = T.let(T.unsafe(nil), Set)
|
|
5252
5418
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5253
5419
|
RuboCop::AST::NodePattern::Sets::SET_EXPECT_ALLOW = T.let(T.unsafe(nil), Set)
|
5254
5420
|
|
5255
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5256
|
-
RuboCop::AST::NodePattern::Sets::SET_FACTORYGIRL_FACTORYBOT = T.let(T.unsafe(nil), Set)
|
5257
|
-
|
5258
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5259
|
-
RuboCop::AST::NodePattern::Sets::SET_FACTORY_TRAIT = T.let(T.unsafe(nil), Set)
|
5260
|
-
|
5261
5421
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5262
5422
|
RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set)
|
5263
5423
|
|
@@ -5318,6 +5478,9 @@ RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set)
|
|
5318
5478
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5319
5479
|
RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set)
|
5320
5480
|
|
5481
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5482
|
+
RuboCop::AST::NodePattern::Sets::SET_MAP_FILTER_MAP = T.let(T.unsafe(nil), Set)
|
5483
|
+
|
5321
5484
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5322
5485
|
RuboCop::AST::NodePattern::Sets::SET_MODULE_FUNCTION_RUBY2_KEYWORDS = T.let(T.unsafe(nil), Set)
|
5323
5486
|
|
@@ -5337,7 +5500,7 @@ RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
|
|
5337
5500
|
RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
|
5338
5501
|
|
5339
5502
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5340
|
-
RuboCop::AST::NodePattern::Sets::
|
5503
|
+
RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_ETC = T.let(T.unsafe(nil), Set)
|
5341
5504
|
|
5342
5505
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5343
5506
|
RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T.let(T.unsafe(nil), Set)
|
@@ -5354,9 +5517,6 @@ RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.
|
|
5354
5517
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5355
5518
|
RuboCop::AST::NodePattern::Sets::SET_PUBLIC_PROTECTED_PRIVATE_MODULE_FUNCTION = T.let(T.unsafe(nil), Set)
|
5356
5519
|
|
5357
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5358
|
-
RuboCop::AST::NodePattern::Sets::SET_RAISE_ERROR_RAISE_EXCEPTION = T.let(T.unsafe(nil), Set)
|
5359
|
-
|
5360
5520
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5361
5521
|
RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set)
|
5362
5522
|
|
@@ -5382,7 +5542,7 @@ RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.uns
|
|
5382
5542
|
RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
|
5383
5543
|
|
5384
5544
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5385
|
-
RuboCop::AST::NodePattern::Sets::
|
5545
|
+
RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
|
5386
5546
|
|
5387
5547
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5388
5548
|
RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
|
@@ -5391,7 +5551,7 @@ RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(n
|
|
5391
5551
|
RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set)
|
5392
5552
|
|
5393
5553
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5394
|
-
RuboCop::AST::NodePattern::Sets::
|
5554
|
+
RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT_FILTER_FILTER = T.let(T.unsafe(nil), Set)
|
5395
5555
|
|
5396
5556
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5397
5557
|
RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
|
@@ -5399,6 +5559,9 @@ RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(
|
|
5399
5559
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5400
5560
|
RuboCop::AST::NodePattern::Sets::SET_SEND___SEND__ = T.let(T.unsafe(nil), Set)
|
5401
5561
|
|
5562
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5563
|
+
RuboCop::AST::NodePattern::Sets::SET_SET_SORTEDSET = T.let(T.unsafe(nil), Set)
|
5564
|
+
|
5402
5565
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5403
5566
|
RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set)
|
5404
5567
|
|
@@ -5414,9 +5577,6 @@ RuboCop::AST::NodePattern::Sets::SET_SPAWN_SYSTEM = T.let(T.unsafe(nil), Set)
|
|
5414
5577
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5415
5578
|
RuboCop::AST::NodePattern::Sets::SET_SPRINTF_FORMAT = T.let(T.unsafe(nil), Set)
|
5416
5579
|
|
5417
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5418
|
-
RuboCop::AST::NodePattern::Sets::SET_STATUS_CODE = T.let(T.unsafe(nil), Set)
|
5419
|
-
|
5420
5580
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5421
5581
|
RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set)
|
5422
5582
|
|
@@ -5426,9 +5586,6 @@ RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set)
|
|
5426
5586
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5427
5587
|
RuboCop::AST::NodePattern::Sets::SET_TASK_NAMESPACE = T.let(T.unsafe(nil), Set)
|
5428
5588
|
|
5429
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5430
|
-
RuboCop::AST::NodePattern::Sets::SET_TEXT_EXACT_TEXT = T.let(T.unsafe(nil), Set)
|
5431
|
-
|
5432
5589
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5433
5590
|
RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set)
|
5434
5591
|
|
@@ -5438,9 +5595,6 @@ RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set)
|
|
5438
5595
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5439
5596
|
RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set)
|
5440
5597
|
|
5441
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5442
|
-
RuboCop::AST::NodePattern::Sets::SET_TO_TO_NOT_NOT_TO = T.let(T.unsafe(nil), Set)
|
5443
|
-
|
5444
5598
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5445
5599
|
RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set)
|
5446
5600
|
|
@@ -5489,12 +5643,6 @@ RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set)
|
|
5489
5643
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5490
5644
|
RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set)
|
5491
5645
|
|
5492
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5493
|
-
RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set)
|
5494
|
-
|
5495
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5496
|
-
RuboCop::AST::NodePattern::Sets::SET___EQL_INCLUDE = T.let(T.unsafe(nil), Set)
|
5497
|
-
|
5498
5646
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5499
5647
|
RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set)
|
5500
5648
|
|
@@ -5522,7 +5670,7 @@ RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set)
|
|
5522
5670
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55
|
5523
5671
|
RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String)
|
5524
5672
|
|
5525
|
-
# Common functionality for primitive numeric nodes: `int`, `float`,
|
5673
|
+
# Common functionality for primitive numeric nodes: `int`, `float`, `rational`...
|
5526
5674
|
#
|
5527
5675
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6
|
5528
5676
|
module RuboCop::AST::NumericNode
|
@@ -5555,22 +5703,34 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
|
|
5555
5703
|
#
|
5556
5704
|
# @return [Node] the expression being assigned.
|
5557
5705
|
#
|
5558
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5706
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
|
5559
5707
|
def expression; end
|
5560
5708
|
|
5709
|
+
# @return [AsgnNode] the assignment node
|
5710
|
+
#
|
5711
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10
|
5712
|
+
def lhs; end
|
5713
|
+
|
5561
5714
|
# The name of the variable being assigned as a symbol.
|
5562
5715
|
#
|
5563
5716
|
# @return [Symbol] the name of the variable being assigned
|
5564
5717
|
#
|
5565
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5718
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#18
|
5566
5719
|
def name; end
|
5567
5720
|
|
5568
5721
|
# The operator being used for assignment as a symbol.
|
5569
5722
|
#
|
5570
5723
|
# @return [Symbol] the assignment operator
|
5571
5724
|
#
|
5572
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5725
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#25
|
5573
5726
|
def operator; end
|
5727
|
+
|
5728
|
+
# The expression being assigned to the variable.
|
5729
|
+
#
|
5730
|
+
# @return [Node] the expression being assigned.
|
5731
|
+
#
|
5732
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
|
5733
|
+
def rhs; end
|
5574
5734
|
end
|
5575
5735
|
|
5576
5736
|
# A node extension for `op_asgn` nodes.
|
@@ -5859,42 +6019,42 @@ end
|
|
5859
6019
|
# and other information such as disabled lines for cops.
|
5860
6020
|
# It also provides a convenient way to access source lines.
|
5861
6021
|
#
|
5862
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6022
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#10
|
5863
6023
|
class RuboCop::AST::ProcessedSource
|
5864
6024
|
# @return [ProcessedSource] a new instance of ProcessedSource
|
5865
6025
|
#
|
5866
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6026
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#28
|
5867
6027
|
def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
|
5868
6028
|
|
5869
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6029
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#72
|
5870
6030
|
def [](*args); end
|
5871
6031
|
|
5872
6032
|
# Returns the value of attribute ast.
|
5873
6033
|
#
|
5874
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6034
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
5875
6035
|
def ast; end
|
5876
6036
|
|
5877
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6037
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#50
|
5878
6038
|
def ast_with_comments; end
|
5879
6039
|
|
5880
6040
|
# @return [Boolean]
|
5881
6041
|
#
|
5882
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6042
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#111
|
5883
6043
|
def blank?; end
|
5884
6044
|
|
5885
6045
|
# Returns the value of attribute buffer.
|
5886
6046
|
#
|
5887
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6047
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
5888
6048
|
def buffer; end
|
5889
6049
|
|
5890
6050
|
# Raw source checksum for tracking infinite loops.
|
5891
6051
|
#
|
5892
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6052
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#83
|
5893
6053
|
def checksum; end
|
5894
6054
|
|
5895
6055
|
# @return [Comment, nil] the comment at that line, if any.
|
5896
6056
|
#
|
5897
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6057
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#116
|
5898
6058
|
def comment_at_line(line); end
|
5899
6059
|
|
5900
6060
|
# Consider using `each_comment_in_lines` instead
|
@@ -5902,181 +6062,181 @@ class RuboCop::AST::ProcessedSource
|
|
5902
6062
|
# @deprecated use contains_comment?
|
5903
6063
|
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
|
5904
6064
|
#
|
5905
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6065
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
|
5906
6066
|
def commented?(source_range); end
|
5907
6067
|
|
5908
6068
|
# Returns the value of attribute comments.
|
5909
6069
|
#
|
5910
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6070
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
5911
6071
|
def comments; end
|
5912
6072
|
|
5913
6073
|
# Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
|
5914
6074
|
#
|
5915
6075
|
# @deprecated Use `each_comment_in_lines`
|
5916
6076
|
#
|
5917
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6077
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#146
|
5918
6078
|
def comments_before_line(line); end
|
5919
6079
|
|
5920
6080
|
# Consider using `each_comment_in_lines` instead
|
5921
6081
|
#
|
5922
6082
|
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
|
5923
6083
|
#
|
5924
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6084
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
|
5925
6085
|
def contains_comment?(source_range); end
|
5926
6086
|
|
5927
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6087
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#160
|
5928
6088
|
def current_line(token); end
|
5929
6089
|
|
5930
6090
|
# Returns the value of attribute diagnostics.
|
5931
6091
|
#
|
5932
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6092
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
5933
6093
|
def diagnostics; end
|
5934
6094
|
|
5935
6095
|
# @deprecated Use `comments.each`
|
5936
6096
|
#
|
5937
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6097
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#88
|
5938
6098
|
def each_comment(&block); end
|
5939
6099
|
|
5940
6100
|
# Enumerates on the comments contained with the given `line_range`
|
5941
6101
|
#
|
5942
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6102
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#126
|
5943
6103
|
def each_comment_in_lines(line_range); end
|
5944
6104
|
|
5945
6105
|
# @deprecated Use `tokens.each`
|
5946
6106
|
#
|
5947
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6107
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98
|
5948
6108
|
def each_token(&block); end
|
5949
6109
|
|
5950
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6110
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107
|
5951
6111
|
def file_path; end
|
5952
6112
|
|
5953
6113
|
# @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
|
5954
6114
|
#
|
5955
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6115
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#93
|
5956
6116
|
def find_comment(&block); end
|
5957
6117
|
|
5958
6118
|
# @deprecated Use `tokens.find`
|
5959
6119
|
#
|
5960
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6120
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#103
|
5961
6121
|
def find_token(&block); end
|
5962
6122
|
|
5963
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6123
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#181
|
5964
6124
|
def first_token_of(range_or_node); end
|
5965
6125
|
|
5966
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6126
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#164
|
5967
6127
|
def following_line(token); end
|
5968
6128
|
|
5969
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6129
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#185
|
5970
6130
|
def last_token_of(range_or_node); end
|
5971
6131
|
|
5972
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6132
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#168
|
5973
6133
|
def line_indentation(line_number); end
|
5974
6134
|
|
5975
6135
|
# @return [Boolean] if the given line number has a comment.
|
5976
6136
|
#
|
5977
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6137
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#121
|
5978
6138
|
def line_with_comment?(line); end
|
5979
6139
|
|
5980
6140
|
# Returns the source lines, line break characters removed, excluding a
|
5981
6141
|
# possible __END__ and everything that comes after.
|
5982
6142
|
#
|
5983
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6143
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58
|
5984
6144
|
def lines; end
|
5985
6145
|
|
5986
6146
|
# Returns the value of attribute parser_engine.
|
5987
6147
|
#
|
5988
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6148
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
5989
6149
|
def parser_engine; end
|
5990
6150
|
|
5991
6151
|
# Returns the value of attribute parser_error.
|
5992
6152
|
#
|
5993
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6153
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
5994
6154
|
def parser_error; end
|
5995
6155
|
|
5996
6156
|
# Returns the value of attribute path.
|
5997
6157
|
#
|
5998
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6158
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
5999
6159
|
def path; end
|
6000
6160
|
|
6001
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6161
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#156
|
6002
6162
|
def preceding_line(token); end
|
6003
6163
|
|
6004
6164
|
# Returns the value of attribute raw_source.
|
6005
6165
|
#
|
6006
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6166
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
6007
6167
|
def raw_source; end
|
6008
6168
|
|
6009
6169
|
# Returns the value of attribute ruby_version.
|
6010
6170
|
#
|
6011
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6171
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
6012
6172
|
def ruby_version; end
|
6013
6173
|
|
6014
6174
|
# The tokens list is always sorted by token position, except for cases when heredoc
|
6015
6175
|
# is passed as a method argument. In this case tokens are interleaved by
|
6016
6176
|
# heredoc contents' tokens.
|
6017
6177
|
#
|
6018
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6178
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#192
|
6019
6179
|
def sorted_tokens; end
|
6020
6180
|
|
6021
6181
|
# @return [Boolean]
|
6022
6182
|
#
|
6023
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6183
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#150
|
6024
6184
|
def start_with?(string); end
|
6025
6185
|
|
6026
6186
|
# Returns the value of attribute tokens.
|
6027
6187
|
#
|
6028
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6188
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20
|
6029
6189
|
def tokens; end
|
6030
6190
|
|
6031
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6191
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#175
|
6032
6192
|
def tokens_within(range_or_node); end
|
6033
6193
|
|
6034
6194
|
# @return [Boolean]
|
6035
6195
|
#
|
6036
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6196
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#76
|
6037
6197
|
def valid_syntax?; end
|
6038
6198
|
|
6039
6199
|
private
|
6040
6200
|
|
6041
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6201
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#199
|
6042
6202
|
def comment_index; end
|
6043
6203
|
|
6044
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6204
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#309
|
6045
6205
|
def create_parser(ruby_version, parser_engine); end
|
6046
6206
|
|
6047
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6207
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#325
|
6048
6208
|
def first_token_index(range_or_node); end
|
6049
6209
|
|
6050
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6210
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#330
|
6051
6211
|
def last_token_index(range_or_node); end
|
6052
6212
|
|
6053
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6213
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#205
|
6054
6214
|
def parse(source, ruby_version, parser_engine); end
|
6055
6215
|
|
6056
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6216
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#238
|
6057
6217
|
def parser_class(ruby_version, parser_engine); end
|
6058
6218
|
|
6059
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6219
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#335
|
6060
6220
|
def source_range(range_or_node); end
|
6061
6221
|
|
6062
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6222
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#222
|
6063
6223
|
def tokenize(parser); end
|
6064
6224
|
|
6065
6225
|
class << self
|
6066
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6226
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#23
|
6067
6227
|
def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
|
6068
6228
|
end
|
6069
6229
|
end
|
6070
6230
|
|
6071
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6231
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#14
|
6072
6232
|
RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
|
6073
6233
|
|
6074
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6234
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#17
|
6075
6235
|
RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
|
6076
6236
|
|
6077
6237
|
# @api private
|
6078
6238
|
#
|
6079
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6239
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#12
|
6080
6240
|
RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String)
|
6081
6241
|
|
6082
6242
|
# A node extension for `irange` and `erange` nodes. This will be used in
|
@@ -6092,6 +6252,16 @@ class RuboCop::AST::RangeNode < ::RuboCop::AST::Node
|
|
6092
6252
|
def end; end
|
6093
6253
|
end
|
6094
6254
|
|
6255
|
+
# A node extension for `rational` nodes. This will be used in place of a plain
|
6256
|
+
# node when the builder constructs the AST, making its methods available to
|
6257
|
+
# all `rational` nodes within RuboCop.
|
6258
|
+
#
|
6259
|
+
# source://rubocop-ast//lib/rubocop/ast/node/rational_node.rb#8
|
6260
|
+
class RuboCop::AST::RationalNode < ::RuboCop::AST::Node
|
6261
|
+
include ::RuboCop::AST::BasicLiteralNode
|
6262
|
+
include ::RuboCop::AST::NumericNode
|
6263
|
+
end
|
6264
|
+
|
6095
6265
|
# A node extension for `regexp` nodes. This will be used in place of a plain
|
6096
6266
|
# node when the builder constructs the AST, making its methods available
|
6097
6267
|
# to all `regexp` nodes within RuboCop.
|
@@ -6362,15 +6532,38 @@ class RuboCop::AST::StrNode < ::RuboCop::AST::Node
|
|
6362
6532
|
|
6363
6533
|
# @return [Boolean]
|
6364
6534
|
#
|
6365
|
-
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#
|
6535
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#25
|
6366
6536
|
def character_literal?; end
|
6367
6537
|
|
6368
6538
|
# @return [Boolean]
|
6369
6539
|
#
|
6370
|
-
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#
|
6540
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#21
|
6541
|
+
def double_quoted?; end
|
6542
|
+
|
6543
|
+
# @return [Boolean]
|
6544
|
+
#
|
6545
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#29
|
6371
6546
|
def heredoc?; end
|
6547
|
+
|
6548
|
+
# Checks whether the string literal is delimited by percent brackets.
|
6549
|
+
#
|
6550
|
+
# @overload percent_literal?
|
6551
|
+
# @overload percent_literal?
|
6552
|
+
# @param type [Symbol] an optional percent literal type
|
6553
|
+
# @return [Boolean] whether the string is enclosed in percent brackets
|
6554
|
+
#
|
6555
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#44
|
6556
|
+
def percent_literal?(type = T.unsafe(nil)); end
|
6557
|
+
|
6558
|
+
# @return [Boolean]
|
6559
|
+
#
|
6560
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#17
|
6561
|
+
def single_quoted?; end
|
6372
6562
|
end
|
6373
6563
|
|
6564
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11
|
6565
|
+
RuboCop::AST::StrNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
|
6566
|
+
|
6374
6567
|
# A node extension for `super`- and `zsuper` nodes. This will be used in
|
6375
6568
|
# place of a plain node when the builder constructs the AST, making its
|
6376
6569
|
# methods available to all `super`- and `zsuper` nodes within RuboCop.
|
@@ -7034,6 +7227,18 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
|
|
7034
7227
|
def keyword; end
|
7035
7228
|
end
|
7036
7229
|
|
7230
|
+
# A node extension for `lvar`, `ivar`, `cvar` and `gvar` nodes.
|
7231
|
+
# This will be used in place of a plain node when the builder constructs
|
7232
|
+
# the AST, making its methods available to all assignment nodes within RuboCop.
|
7233
|
+
#
|
7234
|
+
# source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#8
|
7235
|
+
class RuboCop::AST::VarNode < ::RuboCop::AST::Node
|
7236
|
+
# @return [Symbol] The name of the variable.
|
7237
|
+
#
|
7238
|
+
# source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#10
|
7239
|
+
def name; end
|
7240
|
+
end
|
7241
|
+
|
7037
7242
|
# source://rubocop-ast//lib/rubocop/ast/version.rb#5
|
7038
7243
|
module RuboCop::AST::Version; end
|
7039
7244
|
|
@@ -7133,3 +7338,346 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
|
|
7133
7338
|
# source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#16
|
7134
7339
|
def node_parts; end
|
7135
7340
|
end
|
7341
|
+
|
7342
|
+
class RuboCop::CommentConfig
|
7343
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#34
|
7344
|
+
def initialize(processed_source); end
|
7345
|
+
|
7346
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#63
|
7347
|
+
def comment_only_line?(line_number); end
|
7348
|
+
|
7349
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7350
|
+
def config(*_arg0, **_arg1, &_arg2); end
|
7351
|
+
|
7352
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#51
|
7353
|
+
def cop_disabled_line_ranges; end
|
7354
|
+
|
7355
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#39
|
7356
|
+
def cop_enabled_at_line?(cop, line_number); end
|
7357
|
+
|
7358
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#47
|
7359
|
+
def cop_opted_in?(cop); end
|
7360
|
+
|
7361
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#55
|
7362
|
+
def extra_enabled_comments; end
|
7363
|
+
|
7364
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#30
|
7365
|
+
def processed_source; end
|
7366
|
+
|
7367
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7368
|
+
def registry(*_arg0, **_arg1, &_arg2); end
|
7369
|
+
|
7370
|
+
private
|
7371
|
+
|
7372
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#96
|
7373
|
+
def analyze; end
|
7374
|
+
|
7375
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#124
|
7376
|
+
def analyze_cop(analysis, directive); end
|
7377
|
+
|
7378
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#144
|
7379
|
+
def analyze_disabled(analysis, directive); end
|
7380
|
+
|
7381
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#155
|
7382
|
+
def analyze_rest(analysis, directive); end
|
7383
|
+
|
7384
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#135
|
7385
|
+
def analyze_single_line(analysis, directive); end
|
7386
|
+
|
7387
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#164
|
7388
|
+
def cop_line_ranges(analysis); end
|
7389
|
+
|
7390
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#170
|
7391
|
+
def each_directive; end
|
7392
|
+
|
7393
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#69
|
7394
|
+
def extra_enabled_comments_with_names(extras:, names:); end
|
7395
|
+
|
7396
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#190
|
7397
|
+
def handle_enable_all(directive, names, extras); end
|
7398
|
+
|
7399
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#204
|
7400
|
+
def handle_switch(directive, names, extras); end
|
7401
|
+
|
7402
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#115
|
7403
|
+
def inject_disabled_cops_directives(analyses); end
|
7404
|
+
|
7405
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#183
|
7406
|
+
def non_comment_token_line_numbers; end
|
7407
|
+
|
7408
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#83
|
7409
|
+
def opt_in_cops; end
|
7410
|
+
|
7411
|
+
# source://rubocop/1.70.0/lib/rubocop/comment_config.rb#179
|
7412
|
+
def qualified_cop_name(cop_name); end
|
7413
|
+
end
|
7414
|
+
|
7415
|
+
class RuboCop::Config
|
7416
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#31
|
7417
|
+
def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
|
7418
|
+
|
7419
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7420
|
+
def [](*_arg0, **_arg1, &_arg2); end
|
7421
|
+
|
7422
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7423
|
+
def []=(*_arg0, **_arg1, &_arg2); end
|
7424
|
+
|
7425
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#179
|
7426
|
+
def active_support_extensions_enabled?; end
|
7427
|
+
|
7428
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#94
|
7429
|
+
def add_excludes_from_higher_level(highest_config); end
|
7430
|
+
|
7431
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#206
|
7432
|
+
def allowed_camel_case_file?(file); end
|
7433
|
+
|
7434
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#250
|
7435
|
+
def base_dir_for_path_parameters; end
|
7436
|
+
|
7437
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#280
|
7438
|
+
def bundler_lock_file_path; end
|
7439
|
+
|
7440
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#52
|
7441
|
+
def check; end
|
7442
|
+
|
7443
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#147
|
7444
|
+
def clusivity_config_for_badge?(badge); end
|
7445
|
+
|
7446
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#167
|
7447
|
+
def cop_enabled?(name); end
|
7448
|
+
|
7449
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7450
|
+
def delete(*_arg0, **_arg1, &_arg2); end
|
7451
|
+
|
7452
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#106
|
7453
|
+
def deprecation_check; end
|
7454
|
+
|
7455
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7456
|
+
def dig(*_arg0, **_arg1, &_arg2); end
|
7457
|
+
|
7458
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#171
|
7459
|
+
def disabled_new_cops?; end
|
7460
|
+
|
7461
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7462
|
+
def each(*_arg0, **_arg1, &_arg2); end
|
7463
|
+
|
7464
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7465
|
+
def each_key(*_arg0, **_arg1, &_arg2); end
|
7466
|
+
|
7467
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#175
|
7468
|
+
def enabled_new_cops?; end
|
7469
|
+
|
7470
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7471
|
+
def fetch(*_arg0, **_arg1, &_arg2); end
|
7472
|
+
|
7473
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#228
|
7474
|
+
def file_to_exclude?(file); end
|
7475
|
+
|
7476
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#187
|
7477
|
+
def file_to_include?(file); end
|
7478
|
+
|
7479
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#163
|
7480
|
+
def for_all_cops; end
|
7481
|
+
|
7482
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#133
|
7483
|
+
def for_badge(badge); end
|
7484
|
+
|
7485
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#120
|
7486
|
+
def for_cop(cop); end
|
7487
|
+
|
7488
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#158
|
7489
|
+
def for_department(department_name); end
|
7490
|
+
|
7491
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#127
|
7492
|
+
def for_enabled_cop(cop); end
|
7493
|
+
|
7494
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#305
|
7495
|
+
def gem_versions_in_target; end
|
7496
|
+
|
7497
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#309
|
7498
|
+
def inspect; end
|
7499
|
+
|
7500
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#77
|
7501
|
+
def internal?; end
|
7502
|
+
|
7503
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7504
|
+
def key?(*_arg0, **_arg1, &_arg2); end
|
7505
|
+
|
7506
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7507
|
+
def keys(*_arg0, **_arg1, &_arg2); end
|
7508
|
+
|
7509
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#48
|
7510
|
+
def loaded_features; end
|
7511
|
+
|
7512
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#21
|
7513
|
+
def loaded_path; end
|
7514
|
+
|
7515
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#82
|
7516
|
+
def make_excludes_absolute; end
|
7517
|
+
|
7518
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7519
|
+
def map(*_arg0, **_arg1, &_arg2); end
|
7520
|
+
|
7521
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7522
|
+
def merge(*_arg0, **_arg1, &_arg2); end
|
7523
|
+
|
7524
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#260
|
7525
|
+
def parser_engine; end
|
7526
|
+
|
7527
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#241
|
7528
|
+
def path_relative_to_config(path); end
|
7529
|
+
|
7530
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#237
|
7531
|
+
def patterns_to_exclude; end
|
7532
|
+
|
7533
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#233
|
7534
|
+
def patterns_to_include; end
|
7535
|
+
|
7536
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#291
|
7537
|
+
def pending_cops; end
|
7538
|
+
|
7539
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#220
|
7540
|
+
def possibly_include_hidden?; end
|
7541
|
+
|
7542
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7543
|
+
def replace(*_arg0, **_arg1, &_arg2); end
|
7544
|
+
|
7545
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#72
|
7546
|
+
def signature; end
|
7547
|
+
|
7548
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#275
|
7549
|
+
def smart_loaded_path; end
|
7550
|
+
|
7551
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#183
|
7552
|
+
def string_literals_frozen_by_default?; end
|
7553
|
+
|
7554
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#264
|
7555
|
+
def target_rails_version; end
|
7556
|
+
|
7557
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7558
|
+
def target_ruby_version(*_arg0, **_arg1, &_arg2); end
|
7559
|
+
|
7560
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7561
|
+
def to_h(*_arg0, **_arg1, &_arg2); end
|
7562
|
+
|
7563
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7564
|
+
def to_hash(*_arg0, **_arg1, &_arg2); end
|
7565
|
+
|
7566
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#68
|
7567
|
+
def to_s; end
|
7568
|
+
|
7569
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7570
|
+
def transform_values(*_arg0, **_arg1, &_arg2); end
|
7571
|
+
|
7572
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7573
|
+
def validate(*_arg0, **_arg1, &_arg2); end
|
7574
|
+
|
7575
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#59
|
7576
|
+
def validate_after_resolution; end
|
7577
|
+
|
7578
|
+
private
|
7579
|
+
|
7580
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#359
|
7581
|
+
def department_of(qualified_cop_name); end
|
7582
|
+
|
7583
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#347
|
7584
|
+
def enable_cop?(qualified_cop_name, cop_options); end
|
7585
|
+
|
7586
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#334
|
7587
|
+
def gem_version_to_major_minor_float(gem_version); end
|
7588
|
+
|
7589
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#340
|
7590
|
+
def read_gem_versions_from_target_lockfile; end
|
7591
|
+
|
7592
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#321
|
7593
|
+
def read_rails_version_from_bundler_lock_file; end
|
7594
|
+
|
7595
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#316
|
7596
|
+
def target_rails_version_from_bundler_lock_file; end
|
7597
|
+
|
7598
|
+
class << self
|
7599
|
+
# source://rubocop/1.70.0/lib/rubocop/config.rb#23
|
7600
|
+
def create(hash, path, check: T.unsafe(nil)); end
|
7601
|
+
end
|
7602
|
+
end
|
7603
|
+
|
7604
|
+
class RuboCop::ConfigValidator
|
7605
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#28
|
7606
|
+
def initialize(config); end
|
7607
|
+
|
7608
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7609
|
+
def for_all_cops(*_arg0, **_arg1, &_arg2); end
|
7610
|
+
|
7611
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7612
|
+
def smart_loaded_path(*_arg0, **_arg1, &_arg2); end
|
7613
|
+
|
7614
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#65
|
7615
|
+
def target_ruby_version; end
|
7616
|
+
|
7617
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#34
|
7618
|
+
def validate; end
|
7619
|
+
|
7620
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#61
|
7621
|
+
def validate_after_resolution; end
|
7622
|
+
|
7623
|
+
private
|
7624
|
+
|
7625
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#100
|
7626
|
+
def alert_about_unrecognized_cops(invalid_cop_names); end
|
7627
|
+
|
7628
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#263
|
7629
|
+
def check_cop_config_value(hash, parent = T.unsafe(nil)); end
|
7630
|
+
|
7631
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#73
|
7632
|
+
def check_obsoletions; end
|
7633
|
+
|
7634
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#80
|
7635
|
+
def check_target_ruby; end
|
7636
|
+
|
7637
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#204
|
7638
|
+
def each_invalid_parameter(cop_name); end
|
7639
|
+
|
7640
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#116
|
7641
|
+
def list_unknown_cops(invalid_cop_names); end
|
7642
|
+
|
7643
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#283
|
7644
|
+
def param_error_message(parent, key, value, supposed_values); end
|
7645
|
+
|
7646
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#251
|
7647
|
+
def reject_conflicting_safe_settings; end
|
7648
|
+
|
7649
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#242
|
7650
|
+
def reject_mutually_exclusive_defaults; end
|
7651
|
+
|
7652
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#138
|
7653
|
+
def suggestion(name); end
|
7654
|
+
|
7655
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#71
|
7656
|
+
def target_ruby; end
|
7657
|
+
|
7658
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#216
|
7659
|
+
def validate_enforced_styles(valid_cop_names); end
|
7660
|
+
|
7661
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#165
|
7662
|
+
def validate_new_cops_parameter; end
|
7663
|
+
|
7664
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#190
|
7665
|
+
def validate_parameter_names(valid_cop_names); end
|
7666
|
+
|
7667
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#176
|
7668
|
+
def validate_parameter_shape(valid_cop_names); end
|
7669
|
+
|
7670
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#236
|
7671
|
+
def validate_support_and_has_list(name, formats, valid); end
|
7672
|
+
|
7673
|
+
# source://rubocop/1.70.0/lib/rubocop/config_validator.rb#154
|
7674
|
+
def validate_syntax_cop; end
|
7675
|
+
end
|
7676
|
+
|
7677
|
+
# Similar to `Forwardable#def_delegators`, but simpler & faster
|
7678
|
+
#
|
7679
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#5
|
7680
|
+
module RuboCop::SimpleForwardable
|
7681
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#6
|
7682
|
+
def def_delegators(accessor, *methods); end
|
7683
|
+
end
|