lunchmoney 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
- data/.github/workflows/ci.yml +1 -1
- data/.ruby-version +1 -1
- data/.simplecov +1 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +65 -57
- data/lib/lunchmoney/api.rb +1 -0
- data/lib/lunchmoney/calls/categories.rb +0 -2
- data/lib/lunchmoney/calls/transactions.rb +0 -1
- data/lib/lunchmoney/deprecate.rb +35 -0
- data/lib/lunchmoney/objects/asset.rb +6 -1
- data/lib/lunchmoney/objects/plaid_account.rb +6 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +5 -0
- data/sorbet/rbi/gems/{activesupport@7.2.1.rbi → activesupport@7.2.2.1.rbi} +109 -86
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/{concurrent-ruby@1.3.4.rbi → concurrent-ruby@1.3.5.rbi} +44 -32
- data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.7.rbi} +21 -29
- data/sorbet/rbi/gems/{erubi@1.13.0.rbi → erubi@1.13.1.rbi} +14 -9
- data/sorbet/rbi/gems/{faraday-net_http@3.1.1.rbi → faraday-net_http@3.4.0.rbi} +34 -34
- data/sorbet/rbi/gems/{faraday@2.10.1.rbi → faraday@2.12.2.rbi} +43 -34
- data/sorbet/rbi/gems/{i18n@1.14.5.rbi → i18n@1.14.7.rbi} +80 -80
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.10.2.rbi} +697 -146
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/{logger@1.6.0.rbi → logger@1.6.6.rbi} +109 -72
- data/sorbet/rbi/gems/{minitest@5.25.1.rbi → minitest@5.25.5.rbi} +227 -220
- data/sorbet/rbi/gems/{mocha@2.4.5.rbi → mocha@2.7.1.rbi} +154 -118
- data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
- data/sorbet/rbi/gems/{parser@3.3.4.2.rbi → parser@3.3.7.1.rbi} +23 -17
- data/sorbet/rbi/gems/{prism@0.30.0.rbi → prism@1.4.0.rbi} +12440 -9920
- data/sorbet/rbi/gems/{rack@3.1.7.rbi → rack@3.1.9.rbi} +91 -83
- data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
- data/sorbet/rbi/gems/rbs@3.9.0.rbi +6978 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rexml@3.3.6.rbi → rexml@3.4.1.rbi} +541 -114
- data/sorbet/rbi/gems/{rubocop-ast@1.32.1.rbi → rubocop-ast@1.38.0.rbi} +1224 -622
- data/sorbet/rbi/gems/{rubocop-minitest@0.35.1.rbi → rubocop-minitest@0.36.0.rbi} +5 -5
- data/sorbet/rbi/gems/{rubocop-rails@2.26.0.rbi → rubocop-rails@2.29.1.rbi} +9412 -6480
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.5.rbi → rubocop-sorbet@0.8.7.rbi} +44 -1
- data/sorbet/rbi/gems/{rubocop@1.65.1.rbi → rubocop@1.71.2.rbi} +5606 -3467
- data/sorbet/rbi/gems/{securerandom@0.3.1.rbi → securerandom@0.4.1.rbi} +7 -5
- data/sorbet/rbi/gems/{spoom@1.4.2.rbi → spoom@1.6.1.rbi} +3315 -973
- data/sorbet/rbi/gems/{tapioca@0.16.1.rbi → tapioca@0.16.11.rbi} +300 -234
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +58 -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/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
- data/sorbet/rbi/gems/{webmock@3.23.1.rbi → webmock@3.25.1.rbi} +101 -78
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
- metadata +42 -44
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
- data/sorbet/rbi/gems/rbi@0.1.14.rbi +0 -3305
- 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/{bigdecimal@3.1.8.rbi → bigdecimal@3.1.9.rbi} +0 -0
- /data/sorbet/rbi/gems/{hashdiff@1.1.1.rbi → hashdiff@1.1.2.rbi} +0 -0
@@ -209,15 +209,29 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
|
|
209
209
|
#
|
210
210
|
# @return [Node] the expression being assigned.
|
211
211
|
#
|
212
|
-
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#
|
212
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
|
213
213
|
def expression; end
|
214
214
|
|
215
|
+
# The name of the variable being assigned as a symbol.
|
216
|
+
#
|
217
|
+
# @return [Symbol] the name of the variable being assigned
|
218
|
+
#
|
219
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
|
220
|
+
def lhs; end
|
221
|
+
|
215
222
|
# The name of the variable being assigned as a symbol.
|
216
223
|
#
|
217
224
|
# @return [Symbol] the name of the variable being assigned
|
218
225
|
#
|
219
226
|
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12
|
220
227
|
def name; end
|
228
|
+
|
229
|
+
# The expression being assigned to the variable.
|
230
|
+
#
|
231
|
+
# @return [Node] the expression being assigned.
|
232
|
+
#
|
233
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20
|
234
|
+
def rhs; end
|
221
235
|
end
|
222
236
|
|
223
237
|
# Common functionality for primitive literal nodes: `sym`, `str`,
|
@@ -443,18 +457,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default
|
|
443
457
|
#
|
444
458
|
# @return [Node] the generated node
|
445
459
|
#
|
446
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
460
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#106
|
447
461
|
def n(type, children, source_map); end
|
448
462
|
|
449
463
|
# TODO: Figure out what to do about literal encoding handling...
|
450
464
|
# More details here https://github.com/whitequark/parser/issues/283
|
451
465
|
#
|
452
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
466
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#112
|
453
467
|
def string_value(token); end
|
454
468
|
|
455
469
|
private
|
456
470
|
|
457
|
-
# source://rubocop-ast//lib/rubocop/ast/builder.rb#
|
471
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#118
|
458
472
|
def node_klass(type); end
|
459
473
|
end
|
460
474
|
|
@@ -574,26 +588,27 @@ end
|
|
574
588
|
#
|
575
589
|
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8
|
576
590
|
class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
|
591
|
+
include ::RuboCop::AST::ConstantNode
|
592
|
+
|
577
593
|
# The expression being assigned to the variable.
|
578
594
|
#
|
579
595
|
# @return [Node] the expression being assigned.
|
580
596
|
#
|
581
|
-
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#
|
597
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
|
582
598
|
def expression; end
|
583
599
|
|
584
|
-
#
|
585
|
-
|
586
|
-
|
587
|
-
#
|
588
|
-
# 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
|
589
604
|
def name; end
|
590
605
|
|
591
|
-
# The
|
606
|
+
# The expression being assigned to the variable.
|
592
607
|
#
|
593
|
-
# @return [Node
|
608
|
+
# @return [Node] the expression being assigned.
|
594
609
|
#
|
595
|
-
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#
|
596
|
-
def
|
610
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17
|
611
|
+
def rhs; end
|
597
612
|
end
|
598
613
|
|
599
614
|
# A node extension for `class` nodes. This will be used in place of a plain
|
@@ -628,412 +643,412 @@ end
|
|
628
643
|
#
|
629
644
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#6
|
630
645
|
module RuboCop::AST::CollectionNode
|
631
|
-
extend ::
|
646
|
+
extend ::RuboCop::SimpleForwardable
|
632
647
|
|
633
|
-
# source://
|
634
|
-
def &(*
|
648
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
649
|
+
def &(*_arg0, **_arg1, &_arg2); end
|
635
650
|
|
636
|
-
# source://
|
637
|
-
def *(*
|
651
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
652
|
+
def *(*_arg0, **_arg1, &_arg2); end
|
638
653
|
|
639
|
-
# source://
|
640
|
-
def +(*
|
654
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
655
|
+
def +(*_arg0, **_arg1, &_arg2); end
|
641
656
|
|
642
|
-
# source://
|
643
|
-
def -(*
|
657
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
658
|
+
def -(*_arg0, **_arg1, &_arg2); end
|
644
659
|
|
645
|
-
# source://
|
646
|
-
def <<(*
|
660
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
661
|
+
def <<(*_arg0, **_arg1, &_arg2); end
|
647
662
|
|
648
|
-
# source://
|
649
|
-
def [](*
|
663
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
664
|
+
def [](*_arg0, **_arg1, &_arg2); end
|
650
665
|
|
651
|
-
# source://
|
652
|
-
def []=(*
|
666
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
667
|
+
def []=(*_arg0, **_arg1, &_arg2); end
|
653
668
|
|
654
|
-
# source://
|
655
|
-
def all?(*
|
669
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
670
|
+
def all?(*_arg0, **_arg1, &_arg2); end
|
656
671
|
|
657
|
-
# source://
|
658
|
-
def any?(*
|
672
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
673
|
+
def any?(*_arg0, **_arg1, &_arg2); end
|
659
674
|
|
660
|
-
# source://
|
661
|
-
def append(*
|
675
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
676
|
+
def append(*_arg0, **_arg1, &_arg2); end
|
662
677
|
|
663
|
-
# source://
|
664
|
-
def assoc(*
|
678
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
679
|
+
def assoc(*_arg0, **_arg1, &_arg2); end
|
665
680
|
|
666
|
-
# source://
|
667
|
-
def at(*
|
681
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
682
|
+
def at(*_arg0, **_arg1, &_arg2); end
|
668
683
|
|
669
|
-
# source://
|
670
|
-
def bsearch(*
|
684
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
685
|
+
def bsearch(*_arg0, **_arg1, &_arg2); end
|
671
686
|
|
672
|
-
# source://
|
673
|
-
def bsearch_index(*
|
687
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
688
|
+
def bsearch_index(*_arg0, **_arg1, &_arg2); end
|
674
689
|
|
675
|
-
# source://
|
676
|
-
def chain(*
|
690
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
691
|
+
def chain(*_arg0, **_arg1, &_arg2); end
|
677
692
|
|
678
|
-
# source://
|
679
|
-
def chunk(*
|
693
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
694
|
+
def chunk(*_arg0, **_arg1, &_arg2); end
|
680
695
|
|
681
|
-
# source://
|
682
|
-
def chunk_while(*
|
696
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
697
|
+
def chunk_while(*_arg0, **_arg1, &_arg2); end
|
683
698
|
|
684
|
-
# source://
|
685
|
-
def clear(*
|
699
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
700
|
+
def clear(*_arg0, **_arg1, &_arg2); end
|
686
701
|
|
687
|
-
# source://
|
688
|
-
def collect(*
|
702
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
703
|
+
def collect(*_arg0, **_arg1, &_arg2); end
|
689
704
|
|
690
|
-
# source://
|
691
|
-
def collect!(*
|
705
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
706
|
+
def collect!(*_arg0, **_arg1, &_arg2); end
|
692
707
|
|
693
|
-
# source://
|
694
|
-
def collect_concat(*
|
708
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
709
|
+
def collect_concat(*_arg0, **_arg1, &_arg2); end
|
695
710
|
|
696
|
-
# source://
|
697
|
-
def combination(*
|
711
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
712
|
+
def combination(*_arg0, **_arg1, &_arg2); end
|
698
713
|
|
699
|
-
# source://
|
700
|
-
def compact(*
|
714
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
715
|
+
def compact(*_arg0, **_arg1, &_arg2); end
|
701
716
|
|
702
|
-
# source://
|
703
|
-
def compact!(*
|
717
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
718
|
+
def compact!(*_arg0, **_arg1, &_arg2); end
|
704
719
|
|
705
|
-
# source://
|
706
|
-
def concat(*
|
720
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
721
|
+
def concat(*_arg0, **_arg1, &_arg2); end
|
707
722
|
|
708
|
-
# source://
|
709
|
-
def count(*
|
723
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
724
|
+
def count(*_arg0, **_arg1, &_arg2); end
|
710
725
|
|
711
|
-
# source://
|
712
|
-
def cycle(*
|
726
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
727
|
+
def cycle(*_arg0, **_arg1, &_arg2); end
|
713
728
|
|
714
|
-
# source://
|
715
|
-
def deconstruct(*
|
729
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
730
|
+
def deconstruct(*_arg0, **_arg1, &_arg2); end
|
716
731
|
|
717
|
-
# source://
|
718
|
-
def delete(*
|
732
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
733
|
+
def delete(*_arg0, **_arg1, &_arg2); end
|
719
734
|
|
720
|
-
# source://
|
721
|
-
def delete_at(*
|
735
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
736
|
+
def delete_at(*_arg0, **_arg1, &_arg2); end
|
722
737
|
|
723
|
-
# source://
|
724
|
-
def delete_if(*
|
738
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
739
|
+
def delete_if(*_arg0, **_arg1, &_arg2); end
|
725
740
|
|
726
|
-
# source://
|
727
|
-
def detect(*
|
741
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
742
|
+
def detect(*_arg0, **_arg1, &_arg2); end
|
728
743
|
|
729
|
-
# source://
|
730
|
-
def difference(*
|
744
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
745
|
+
def difference(*_arg0, **_arg1, &_arg2); end
|
731
746
|
|
732
|
-
# source://
|
733
|
-
def dig(*
|
747
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
748
|
+
def dig(*_arg0, **_arg1, &_arg2); end
|
734
749
|
|
735
|
-
# source://
|
736
|
-
def drop(*
|
750
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
751
|
+
def drop(*_arg0, **_arg1, &_arg2); end
|
737
752
|
|
738
|
-
# source://
|
739
|
-
def drop_while(*
|
753
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
754
|
+
def drop_while(*_arg0, **_arg1, &_arg2); end
|
740
755
|
|
741
|
-
# source://
|
742
|
-
def each(*
|
756
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
757
|
+
def each(*_arg0, **_arg1, &_arg2); end
|
743
758
|
|
744
|
-
# source://
|
745
|
-
def each_cons(*
|
759
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
760
|
+
def each_cons(*_arg0, **_arg1, &_arg2); end
|
746
761
|
|
747
|
-
# source://
|
748
|
-
def each_entry(*
|
762
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
763
|
+
def each_entry(*_arg0, **_arg1, &_arg2); end
|
749
764
|
|
750
|
-
# source://
|
751
|
-
def each_index(*
|
765
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
766
|
+
def each_index(*_arg0, **_arg1, &_arg2); end
|
752
767
|
|
753
|
-
# source://
|
754
|
-
def each_slice(*
|
768
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
769
|
+
def each_slice(*_arg0, **_arg1, &_arg2); end
|
755
770
|
|
756
|
-
# source://
|
757
|
-
def each_with_index(*
|
771
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
772
|
+
def each_with_index(*_arg0, **_arg1, &_arg2); end
|
758
773
|
|
759
|
-
# source://
|
760
|
-
def each_with_object(*
|
774
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
775
|
+
def each_with_object(*_arg0, **_arg1, &_arg2); end
|
761
776
|
|
762
|
-
# source://
|
763
|
-
def empty?(*
|
777
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
778
|
+
def empty?(*_arg0, **_arg1, &_arg2); end
|
764
779
|
|
765
|
-
# source://
|
766
|
-
def entries(*
|
780
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
781
|
+
def entries(*_arg0, **_arg1, &_arg2); end
|
767
782
|
|
768
|
-
# source://
|
769
|
-
def fetch(*
|
783
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
784
|
+
def fetch(*_arg0, **_arg1, &_arg2); end
|
770
785
|
|
771
|
-
# source://
|
772
|
-
def fill(*
|
786
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
787
|
+
def fill(*_arg0, **_arg1, &_arg2); end
|
773
788
|
|
774
|
-
# source://
|
775
|
-
def filter(*
|
789
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
790
|
+
def filter(*_arg0, **_arg1, &_arg2); end
|
776
791
|
|
777
|
-
# source://
|
778
|
-
def filter!(*
|
792
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
793
|
+
def filter!(*_arg0, **_arg1, &_arg2); end
|
779
794
|
|
780
|
-
# source://
|
781
|
-
def filter_map(*
|
795
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
796
|
+
def filter_map(*_arg0, **_arg1, &_arg2); end
|
782
797
|
|
783
|
-
# source://
|
784
|
-
def find(*
|
798
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
799
|
+
def find(*_arg0, **_arg1, &_arg2); end
|
785
800
|
|
786
|
-
# source://
|
787
|
-
def find_all(*
|
801
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
802
|
+
def find_all(*_arg0, **_arg1, &_arg2); end
|
788
803
|
|
789
|
-
# source://
|
790
|
-
def find_index(*
|
804
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
805
|
+
def find_index(*_arg0, **_arg1, &_arg2); end
|
791
806
|
|
792
|
-
# source://
|
793
|
-
def first(*
|
807
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
808
|
+
def first(*_arg0, **_arg1, &_arg2); end
|
794
809
|
|
795
|
-
# source://
|
796
|
-
def flat_map(*
|
810
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
811
|
+
def flat_map(*_arg0, **_arg1, &_arg2); end
|
797
812
|
|
798
|
-
# source://
|
799
|
-
def flatten(*
|
813
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
814
|
+
def flatten(*_arg0, **_arg1, &_arg2); end
|
800
815
|
|
801
|
-
# source://
|
802
|
-
def flatten!(*
|
816
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
817
|
+
def flatten!(*_arg0, **_arg1, &_arg2); end
|
803
818
|
|
804
|
-
# source://
|
805
|
-
def grep(*
|
819
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
820
|
+
def grep(*_arg0, **_arg1, &_arg2); end
|
806
821
|
|
807
|
-
# source://
|
808
|
-
def grep_v(*
|
822
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
823
|
+
def grep_v(*_arg0, **_arg1, &_arg2); end
|
809
824
|
|
810
|
-
# source://
|
811
|
-
def group_by(*
|
825
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
826
|
+
def group_by(*_arg0, **_arg1, &_arg2); end
|
812
827
|
|
813
|
-
# source://
|
814
|
-
def include?(*
|
828
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
829
|
+
def include?(*_arg0, **_arg1, &_arg2); end
|
815
830
|
|
816
|
-
# source://
|
817
|
-
def index(*
|
831
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
832
|
+
def index(*_arg0, **_arg1, &_arg2); end
|
818
833
|
|
819
|
-
# source://
|
820
|
-
def inject(*
|
834
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
835
|
+
def inject(*_arg0, **_arg1, &_arg2); end
|
821
836
|
|
822
|
-
# source://
|
823
|
-
def insert(*
|
837
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
838
|
+
def insert(*_arg0, **_arg1, &_arg2); end
|
824
839
|
|
825
|
-
# source://
|
826
|
-
def intersect?(*
|
840
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
841
|
+
def intersect?(*_arg0, **_arg1, &_arg2); end
|
827
842
|
|
828
|
-
# source://
|
829
|
-
def intersection(*
|
843
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
844
|
+
def intersection(*_arg0, **_arg1, &_arg2); end
|
830
845
|
|
831
|
-
# source://
|
832
|
-
def join(*
|
846
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
847
|
+
def join(*_arg0, **_arg1, &_arg2); end
|
833
848
|
|
834
|
-
# source://
|
835
|
-
def keep_if(*
|
849
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
850
|
+
def keep_if(*_arg0, **_arg1, &_arg2); end
|
836
851
|
|
837
|
-
# source://
|
838
|
-
def last(*
|
852
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
853
|
+
def last(*_arg0, **_arg1, &_arg2); end
|
839
854
|
|
840
|
-
# source://
|
841
|
-
def lazy(*
|
855
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
856
|
+
def lazy(*_arg0, **_arg1, &_arg2); end
|
842
857
|
|
843
|
-
# source://
|
844
|
-
def length(*
|
858
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
859
|
+
def length(*_arg0, **_arg1, &_arg2); end
|
845
860
|
|
846
|
-
# source://
|
847
|
-
def map(*
|
861
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
862
|
+
def map(*_arg0, **_arg1, &_arg2); end
|
848
863
|
|
849
|
-
# source://
|
850
|
-
def map!(*
|
864
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
865
|
+
def map!(*_arg0, **_arg1, &_arg2); end
|
851
866
|
|
852
|
-
# source://
|
853
|
-
def max(*
|
867
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
868
|
+
def max(*_arg0, **_arg1, &_arg2); end
|
854
869
|
|
855
|
-
# source://
|
856
|
-
def max_by(*
|
870
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
871
|
+
def max_by(*_arg0, **_arg1, &_arg2); end
|
857
872
|
|
858
|
-
# source://
|
859
|
-
def member?(*
|
873
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
874
|
+
def member?(*_arg0, **_arg1, &_arg2); end
|
860
875
|
|
861
|
-
# source://
|
862
|
-
def min(*
|
876
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
877
|
+
def min(*_arg0, **_arg1, &_arg2); end
|
863
878
|
|
864
|
-
# source://
|
865
|
-
def min_by(*
|
879
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
880
|
+
def min_by(*_arg0, **_arg1, &_arg2); end
|
866
881
|
|
867
|
-
# source://
|
868
|
-
def minmax(*
|
882
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
883
|
+
def minmax(*_arg0, **_arg1, &_arg2); end
|
869
884
|
|
870
|
-
# source://
|
871
|
-
def minmax_by(*
|
885
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
886
|
+
def minmax_by(*_arg0, **_arg1, &_arg2); end
|
872
887
|
|
873
|
-
# source://
|
874
|
-
def none?(*
|
888
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
889
|
+
def none?(*_arg0, **_arg1, &_arg2); end
|
875
890
|
|
876
|
-
# source://
|
877
|
-
def one?(*
|
891
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
892
|
+
def one?(*_arg0, **_arg1, &_arg2); end
|
878
893
|
|
879
|
-
# source://
|
880
|
-
def pack(*
|
894
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
895
|
+
def pack(*_arg0, **_arg1, &_arg2); end
|
881
896
|
|
882
|
-
# source://
|
883
|
-
def partition(*
|
897
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
898
|
+
def partition(*_arg0, **_arg1, &_arg2); end
|
884
899
|
|
885
|
-
# source://
|
886
|
-
def permutation(*
|
900
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
901
|
+
def permutation(*_arg0, **_arg1, &_arg2); end
|
887
902
|
|
888
|
-
# source://
|
889
|
-
def place(*
|
903
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
904
|
+
def place(*_arg0, **_arg1, &_arg2); end
|
890
905
|
|
891
|
-
# source://
|
892
|
-
def pop(*
|
906
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
907
|
+
def pop(*_arg0, **_arg1, &_arg2); end
|
893
908
|
|
894
|
-
# source://
|
895
|
-
def prepend(*
|
909
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
910
|
+
def prepend(*_arg0, **_arg1, &_arg2); end
|
896
911
|
|
897
|
-
# source://
|
898
|
-
def product(*
|
912
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
913
|
+
def product(*_arg0, **_arg1, &_arg2); end
|
899
914
|
|
900
|
-
# source://
|
901
|
-
def push(*
|
915
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
916
|
+
def push(*_arg0, **_arg1, &_arg2); end
|
902
917
|
|
903
|
-
# source://
|
904
|
-
def rassoc(*
|
918
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
919
|
+
def rassoc(*_arg0, **_arg1, &_arg2); end
|
905
920
|
|
906
|
-
# source://
|
907
|
-
def reduce(*
|
921
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
922
|
+
def reduce(*_arg0, **_arg1, &_arg2); end
|
908
923
|
|
909
|
-
# source://
|
910
|
-
def reject(*
|
924
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
925
|
+
def reject(*_arg0, **_arg1, &_arg2); end
|
911
926
|
|
912
|
-
# source://
|
913
|
-
def reject!(*
|
927
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
928
|
+
def reject!(*_arg0, **_arg1, &_arg2); end
|
914
929
|
|
915
|
-
# source://
|
916
|
-
def repeated_combination(*
|
930
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
931
|
+
def repeated_combination(*_arg0, **_arg1, &_arg2); end
|
917
932
|
|
918
|
-
# source://
|
919
|
-
def repeated_permutation(*
|
933
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
934
|
+
def repeated_permutation(*_arg0, **_arg1, &_arg2); end
|
920
935
|
|
921
|
-
# source://
|
922
|
-
def replace(*
|
936
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
937
|
+
def replace(*_arg0, **_arg1, &_arg2); end
|
923
938
|
|
924
|
-
# source://
|
925
|
-
def reverse(*
|
939
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
940
|
+
def reverse(*_arg0, **_arg1, &_arg2); end
|
926
941
|
|
927
|
-
# source://
|
928
|
-
def reverse!(*
|
942
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
943
|
+
def reverse!(*_arg0, **_arg1, &_arg2); end
|
929
944
|
|
930
|
-
# source://
|
931
|
-
def reverse_each(*
|
945
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
946
|
+
def reverse_each(*_arg0, **_arg1, &_arg2); end
|
932
947
|
|
933
|
-
# source://
|
934
|
-
def rindex(*
|
948
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
949
|
+
def rindex(*_arg0, **_arg1, &_arg2); end
|
935
950
|
|
936
|
-
# source://
|
937
|
-
def rotate(*
|
951
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
952
|
+
def rotate(*_arg0, **_arg1, &_arg2); end
|
938
953
|
|
939
|
-
# source://
|
940
|
-
def rotate!(*
|
954
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
955
|
+
def rotate!(*_arg0, **_arg1, &_arg2); end
|
941
956
|
|
942
|
-
# source://
|
943
|
-
def sample(*
|
957
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
958
|
+
def sample(*_arg0, **_arg1, &_arg2); end
|
944
959
|
|
945
|
-
# source://
|
946
|
-
def select(*
|
960
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
961
|
+
def select(*_arg0, **_arg1, &_arg2); end
|
947
962
|
|
948
|
-
# source://
|
949
|
-
def select!(*
|
963
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
964
|
+
def select!(*_arg0, **_arg1, &_arg2); end
|
950
965
|
|
951
|
-
# source://
|
952
|
-
def shelljoin(*
|
966
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
967
|
+
def shelljoin(*_arg0, **_arg1, &_arg2); end
|
953
968
|
|
954
|
-
# source://
|
955
|
-
def shift(*
|
969
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
970
|
+
def shift(*_arg0, **_arg1, &_arg2); end
|
956
971
|
|
957
|
-
# source://
|
958
|
-
def shuffle(*
|
972
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
973
|
+
def shuffle(*_arg0, **_arg1, &_arg2); end
|
959
974
|
|
960
|
-
# source://
|
961
|
-
def shuffle!(*
|
975
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
976
|
+
def shuffle!(*_arg0, **_arg1, &_arg2); end
|
962
977
|
|
963
|
-
# source://
|
964
|
-
def size(*
|
978
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
979
|
+
def size(*_arg0, **_arg1, &_arg2); end
|
965
980
|
|
966
|
-
# source://
|
967
|
-
def slice(*
|
981
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
982
|
+
def slice(*_arg0, **_arg1, &_arg2); end
|
968
983
|
|
969
|
-
# source://
|
970
|
-
def slice!(*
|
984
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
985
|
+
def slice!(*_arg0, **_arg1, &_arg2); end
|
971
986
|
|
972
|
-
# source://
|
973
|
-
def slice_after(*
|
987
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
988
|
+
def slice_after(*_arg0, **_arg1, &_arg2); end
|
974
989
|
|
975
|
-
# source://
|
976
|
-
def slice_before(*
|
990
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
991
|
+
def slice_before(*_arg0, **_arg1, &_arg2); end
|
977
992
|
|
978
|
-
# source://
|
979
|
-
def slice_when(*
|
993
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
994
|
+
def slice_when(*_arg0, **_arg1, &_arg2); end
|
980
995
|
|
981
|
-
# source://
|
982
|
-
def sort(*
|
996
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
997
|
+
def sort(*_arg0, **_arg1, &_arg2); end
|
983
998
|
|
984
|
-
# source://
|
985
|
-
def sort!(*
|
999
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1000
|
+
def sort!(*_arg0, **_arg1, &_arg2); end
|
986
1001
|
|
987
|
-
# source://
|
988
|
-
def sort_by(*
|
1002
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1003
|
+
def sort_by(*_arg0, **_arg1, &_arg2); end
|
989
1004
|
|
990
|
-
# source://
|
991
|
-
def sort_by!(*
|
1005
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1006
|
+
def sort_by!(*_arg0, **_arg1, &_arg2); end
|
992
1007
|
|
993
|
-
# source://
|
994
|
-
def sum(*
|
1008
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1009
|
+
def sum(*_arg0, **_arg1, &_arg2); end
|
995
1010
|
|
996
|
-
# source://
|
997
|
-
def take(*
|
1011
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1012
|
+
def take(*_arg0, **_arg1, &_arg2); end
|
998
1013
|
|
999
|
-
# source://
|
1000
|
-
def take_while(*
|
1014
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1015
|
+
def take_while(*_arg0, **_arg1, &_arg2); end
|
1001
1016
|
|
1002
|
-
# source://
|
1003
|
-
def tally(*
|
1017
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1018
|
+
def tally(*_arg0, **_arg1, &_arg2); end
|
1004
1019
|
|
1005
|
-
# source://
|
1006
|
-
def to_ary(*
|
1020
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1021
|
+
def to_ary(*_arg0, **_arg1, &_arg2); end
|
1007
1022
|
|
1008
|
-
# source://
|
1009
|
-
def to_h(*
|
1023
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1024
|
+
def to_h(*_arg0, **_arg1, &_arg2); end
|
1010
1025
|
|
1011
|
-
# source://
|
1012
|
-
def to_set(*
|
1026
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1027
|
+
def to_set(*_arg0, **_arg1, &_arg2); end
|
1013
1028
|
|
1014
|
-
# source://
|
1015
|
-
def transpose(*
|
1029
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1030
|
+
def transpose(*_arg0, **_arg1, &_arg2); end
|
1016
1031
|
|
1017
|
-
# source://
|
1018
|
-
def union(*
|
1032
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1033
|
+
def union(*_arg0, **_arg1, &_arg2); end
|
1019
1034
|
|
1020
|
-
# source://
|
1021
|
-
def uniq(*
|
1035
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1036
|
+
def uniq(*_arg0, **_arg1, &_arg2); end
|
1022
1037
|
|
1023
|
-
# source://
|
1024
|
-
def uniq!(*
|
1038
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1039
|
+
def uniq!(*_arg0, **_arg1, &_arg2); end
|
1025
1040
|
|
1026
|
-
# source://
|
1027
|
-
def unshift(*
|
1041
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1042
|
+
def unshift(*_arg0, **_arg1, &_arg2); end
|
1028
1043
|
|
1029
|
-
# source://
|
1030
|
-
def values_at(*
|
1044
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1045
|
+
def values_at(*_arg0, **_arg1, &_arg2); end
|
1031
1046
|
|
1032
|
-
# source://
|
1033
|
-
def zip(*
|
1047
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1048
|
+
def zip(*_arg0, **_arg1, &_arg2); end
|
1034
1049
|
|
1035
|
-
# source://
|
1036
|
-
def |(*
|
1050
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
1051
|
+
def |(*_arg0, **_arg1, &_arg2); end
|
1037
1052
|
end
|
1038
1053
|
|
1039
1054
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9
|
@@ -1084,16 +1099,24 @@ end
|
|
1084
1099
|
#
|
1085
1100
|
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6
|
1086
1101
|
class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
1102
|
+
include ::RuboCop::AST::ConstantNode
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# Common functionality for nodes that deal with constants:
|
1106
|
+
# `const`, `casgn`.
|
1107
|
+
#
|
1108
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#7
|
1109
|
+
module RuboCop::AST::ConstantNode
|
1087
1110
|
# @return [Boolean] if the constant starts with `::` (aka s(:cbase))
|
1088
1111
|
#
|
1089
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1112
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#27
|
1090
1113
|
def absolute?; end
|
1091
1114
|
|
1092
1115
|
# @return [Boolean] if the constant is a Module / Class, according to the standard convention.
|
1093
1116
|
# Note: some classes might have uppercase in which case this method
|
1094
1117
|
# returns false
|
1095
1118
|
#
|
1096
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1119
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
|
1097
1120
|
def class_name?; end
|
1098
1121
|
|
1099
1122
|
# Yield nodes for the namespace
|
@@ -1103,29 +1126,29 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
|
1103
1126
|
# s(:const, :Foo), then
|
1104
1127
|
# s(:const, s(:const, :Foo), :Bar)
|
1105
1128
|
#
|
1106
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1129
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#44
|
1107
1130
|
def each_path(&block); end
|
1108
1131
|
|
1109
1132
|
# @return [Boolean] if the constant is a Module / Class, according to the standard convention.
|
1110
1133
|
# Note: some classes might have uppercase in which case this method
|
1111
1134
|
# returns false
|
1112
1135
|
#
|
1113
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1136
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
|
1114
1137
|
def module_name?; end
|
1115
1138
|
|
1116
1139
|
# @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...)
|
1117
1140
|
#
|
1118
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1141
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#9
|
1119
1142
|
def namespace; end
|
1120
1143
|
|
1121
1144
|
# @return [Boolean] if the constant does not start with `::` (aka s(:cbase))
|
1122
1145
|
#
|
1123
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1146
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#34
|
1124
1147
|
def relative?; end
|
1125
1148
|
|
1126
1149
|
# @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar
|
1127
1150
|
#
|
1128
|
-
# source://rubocop-ast//lib/rubocop/ast/node/
|
1151
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
|
1129
1152
|
def short_name; end
|
1130
1153
|
end
|
1131
1154
|
|
@@ -1311,17 +1334,32 @@ end
|
|
1311
1334
|
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
1312
1335
|
# Returns the body of the `ensure` clause.
|
1313
1336
|
#
|
1337
|
+
# @deprecated Use `EnsureNode#branch`
|
1314
1338
|
# @return [Node, nil] The body of the `ensure`.
|
1315
1339
|
#
|
1316
|
-
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#
|
1340
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#13
|
1317
1341
|
def body; end
|
1318
1342
|
|
1343
|
+
# Returns an the ensure branch in the exception handling statement.
|
1344
|
+
#
|
1345
|
+
# @return [Node, nil] the body of the ensure branch.
|
1346
|
+
#
|
1347
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#20
|
1348
|
+
def branch; end
|
1349
|
+
|
1350
|
+
# Returns the `rescue` node of the `ensure`, if present.
|
1351
|
+
#
|
1352
|
+
# @return [Node, nil] The `rescue` node.
|
1353
|
+
#
|
1354
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#27
|
1355
|
+
def rescue_node; end
|
1356
|
+
|
1319
1357
|
# Checks whether this node body is a void context.
|
1320
1358
|
# Always `true` for `ensure`.
|
1321
1359
|
#
|
1322
1360
|
# @return [true] whether the `ensure` node body is a void context
|
1323
1361
|
#
|
1324
|
-
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#
|
1362
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#35
|
1325
1363
|
def void_context?; end
|
1326
1364
|
end
|
1327
1365
|
|
@@ -1655,12 +1693,12 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1655
1693
|
#
|
1656
1694
|
# @return [Array<Node>] an array of branch nodes
|
1657
1695
|
#
|
1658
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1696
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#154
|
1659
1697
|
def branches; end
|
1660
1698
|
|
1661
1699
|
# @deprecated Use `branches.each`
|
1662
1700
|
#
|
1663
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1701
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#171
|
1664
1702
|
def each_branch(&block); end
|
1665
1703
|
|
1666
1704
|
# Checks whether the `if` node has an `else` clause.
|
@@ -1669,7 +1707,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1669
1707
|
# This is legacy behavior, and many cops rely on it.
|
1670
1708
|
# @return [Boolean] whether the node has an `else` clause
|
1671
1709
|
#
|
1672
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1710
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49
|
1673
1711
|
def else?; end
|
1674
1712
|
|
1675
1713
|
# Returns the branch of the `if` node that gets evaluated when its
|
@@ -1679,7 +1717,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1679
1717
|
# @return [Node] the falsey branch node of the `if` node
|
1680
1718
|
# @return [nil] when there is no else branch
|
1681
1719
|
#
|
1682
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1720
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#133
|
1683
1721
|
def else_branch; end
|
1684
1722
|
|
1685
1723
|
# Checks whether the `if` is an `elsif`. Parser handles these by nesting
|
@@ -1687,7 +1725,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1687
1725
|
#
|
1688
1726
|
# @return [Boolean] whether the node is an `elsif`
|
1689
1727
|
#
|
1690
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1728
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#39
|
1691
1729
|
def elsif?; end
|
1692
1730
|
|
1693
1731
|
# Checks whether the `if` node has at least one `elsif` branch. Returns
|
@@ -1695,7 +1733,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1695
1733
|
#
|
1696
1734
|
# @return [Boolean] whether the `if` node has at least one `elsif` branch
|
1697
1735
|
#
|
1698
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1736
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#111
|
1699
1737
|
def elsif_conditional?; end
|
1700
1738
|
|
1701
1739
|
# Checks whether this node is an `if` statement. (This is not true of
|
@@ -1713,7 +1751,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1713
1751
|
# @return [Node] the truthy branch node of the `if` node
|
1714
1752
|
# @return [nil] if the truthy branch is empty
|
1715
1753
|
#
|
1716
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1754
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#122
|
1717
1755
|
def if_branch; end
|
1718
1756
|
|
1719
1757
|
# Returns the inverse keyword of the `if` node as a string. Returns `if`
|
@@ -1722,7 +1760,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1722
1760
|
#
|
1723
1761
|
# @return [String] the inverse keyword of the `if` statement
|
1724
1762
|
#
|
1725
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1763
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#73
|
1726
1764
|
def inverse_keyword; end
|
1727
1765
|
|
1728
1766
|
# Returns the keyword of the `if` statement as a string. Returns an empty
|
@@ -1730,7 +1768,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1730
1768
|
#
|
1731
1769
|
# @return [String] the keyword of the `if` statement
|
1732
1770
|
#
|
1733
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1771
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#64
|
1734
1772
|
def keyword; end
|
1735
1773
|
|
1736
1774
|
# Checks whether the `if` node is in a modifier form, i.e. a condition
|
@@ -1739,7 +1777,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1739
1777
|
#
|
1740
1778
|
# @return [Boolean] whether the `if` node is a modifier
|
1741
1779
|
#
|
1742
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1780
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#87
|
1743
1781
|
def modifier_form?; end
|
1744
1782
|
|
1745
1783
|
# Checks whether the `if` node has nested `if` nodes in any of its
|
@@ -1748,7 +1786,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1748
1786
|
# @note This performs a shallow search.
|
1749
1787
|
# @return [Boolean] whether the `if` node contains nested conditionals
|
1750
1788
|
#
|
1751
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1789
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#97
|
1752
1790
|
def nested_conditional?; end
|
1753
1791
|
|
1754
1792
|
# Custom destructuring method. This is used to normalize the branches
|
@@ -1756,16 +1794,23 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1756
1794
|
#
|
1757
1795
|
# @return [Array<Node>] the different parts of the `if` statement
|
1758
1796
|
#
|
1759
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1797
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#141
|
1760
1798
|
def node_parts; end
|
1761
1799
|
|
1762
1800
|
# Checks whether the `if` node is a ternary operator.
|
1763
1801
|
#
|
1764
1802
|
# @return [Boolean] whether the `if` node is a ternary operator
|
1765
1803
|
#
|
1766
|
-
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#
|
1804
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#56
|
1767
1805
|
def ternary?; end
|
1768
1806
|
|
1807
|
+
# Checks whether the `if` node has an `then` clause.
|
1808
|
+
#
|
1809
|
+
# @return [Boolean] whether the node has an `then` clause
|
1810
|
+
#
|
1811
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#31
|
1812
|
+
def then?; end
|
1813
|
+
|
1769
1814
|
# Checks whether this node is an `unless` statement. (This is not true
|
1770
1815
|
# of ternary operators and `if` statements.)
|
1771
1816
|
#
|
@@ -1924,6 +1969,35 @@ class RuboCop::AST::IntNode < ::RuboCop::AST::Node
|
|
1924
1969
|
include ::RuboCop::AST::NumericNode
|
1925
1970
|
end
|
1926
1971
|
|
1972
|
+
# A node extension for `kwbegin` nodes. This will be used in place of a plain
|
1973
|
+
# node when the builder constructs the AST, making its methods available
|
1974
|
+
# to all `kwbegin` nodes within RuboCop.
|
1975
|
+
#
|
1976
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#8
|
1977
|
+
class RuboCop::AST::KeywordBeginNode < ::RuboCop::AST::Node
|
1978
|
+
# Returns the body of the `kwbegin` block. Returns `self` if the `kwbegin` contains
|
1979
|
+
# multiple nodes.
|
1980
|
+
#
|
1981
|
+
# @return [Node, nil] The body of the `kwbegin`.
|
1982
|
+
#
|
1983
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#13
|
1984
|
+
def body; end
|
1985
|
+
|
1986
|
+
# Returns the `rescue` node of the `kwbegin` block, if one is present.
|
1987
|
+
#
|
1988
|
+
# @return [Node, nil] The `rescue` node within `kwbegin`.
|
1989
|
+
#
|
1990
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#30
|
1991
|
+
def ensure_node; end
|
1992
|
+
|
1993
|
+
# Returns the `rescue` node of the `kwbegin` block, if one is present.
|
1994
|
+
#
|
1995
|
+
# @return [Node, nil] The `rescue` node within `kwbegin`.
|
1996
|
+
#
|
1997
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_begin_node.rb#37
|
1998
|
+
def rescue_node; end
|
1999
|
+
end
|
2000
|
+
|
1927
2001
|
# A node extension for `kwsplat` and `forwarded_kwrestarg` nodes. This will be used in
|
1928
2002
|
# place of a plain node when the builder constructs the AST, making its methods available to
|
1929
2003
|
# all `kwsplat` and `forwarded_kwrestarg` nodes within RuboCop.
|
@@ -2046,6 +2120,71 @@ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
|
|
2046
2120
|
def first_argument_index; end
|
2047
2121
|
end
|
2048
2122
|
|
2123
|
+
# A node extension for `masgn` nodes.
|
2124
|
+
# This will be used in place of a plain node when the builder constructs
|
2125
|
+
# the AST, making its methods available to all assignment nodes within RuboCop.
|
2126
|
+
#
|
2127
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#8
|
2128
|
+
class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node
|
2129
|
+
# @return [Array<Node>] the assignment nodes of the multiple assignment
|
2130
|
+
#
|
2131
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#16
|
2132
|
+
def assignments; end
|
2133
|
+
|
2134
|
+
# The RHS (right hand side) of the multiple assignment. This returns
|
2135
|
+
# the nodes as parsed: either a single node if the RHS has a single value,
|
2136
|
+
# or an `array` node containing multiple nodes.
|
2137
|
+
#
|
2138
|
+
# NOTE: Due to how parsing works, `expression` will return the same for
|
2139
|
+
# `a, b = x, y` and `a, b = [x, y]`.
|
2140
|
+
#
|
2141
|
+
# @return [Node] the right hand side of a multiple assignment.
|
2142
|
+
#
|
2143
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
|
2144
|
+
def expression; end
|
2145
|
+
|
2146
|
+
# @return [MlhsNode] the `mlhs` node
|
2147
|
+
#
|
2148
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#10
|
2149
|
+
def lhs; end
|
2150
|
+
|
2151
|
+
# @return [Array<Symbol>] names of all the variables being assigned
|
2152
|
+
#
|
2153
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#21
|
2154
|
+
def names; end
|
2155
|
+
|
2156
|
+
# The RHS (right hand side) of the multiple assignment. This returns
|
2157
|
+
# the nodes as parsed: either a single node if the RHS has a single value,
|
2158
|
+
# or an `array` node containing multiple nodes.
|
2159
|
+
#
|
2160
|
+
# NOTE: Due to how parsing works, `expression` will return the same for
|
2161
|
+
# `a, b = x, y` and `a, b = [x, y]`.
|
2162
|
+
#
|
2163
|
+
# @return [Node] the right hand side of a multiple assignment.
|
2164
|
+
#
|
2165
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
|
2166
|
+
def rhs; end
|
2167
|
+
|
2168
|
+
# In contrast to `expression`, `values` always returns a Ruby array
|
2169
|
+
# containing all the nodes being assigned on the RHS.
|
2170
|
+
#
|
2171
|
+
# Literal arrays are considered a singular value; but unlike `expression`,
|
2172
|
+
# implied `array` nodes from assigning multiple values on the RHS are treated
|
2173
|
+
# as separate.
|
2174
|
+
#
|
2175
|
+
# @return [Array<Node>] individual values being assigned on the RHS of the multiple assignment
|
2176
|
+
#
|
2177
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#52
|
2178
|
+
def values; end
|
2179
|
+
|
2180
|
+
private
|
2181
|
+
|
2182
|
+
# @return [Boolean]
|
2183
|
+
#
|
2184
|
+
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#58
|
2185
|
+
def multiple_rhs?; end
|
2186
|
+
end
|
2187
|
+
|
2049
2188
|
# Common functionality for nodes that are a kind of method dispatch:
|
2050
2189
|
# `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`,
|
2051
2190
|
# and (modern only): `index`, `indexasgn`, `lambda`
|
@@ -2478,6 +2617,23 @@ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T
|
|
2478
2617
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20
|
2479
2618
|
RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
|
2480
2619
|
|
2620
|
+
# A node extension for `mlhs` nodes.
|
2621
|
+
# This will be used in place of a plain node when the builder constructs
|
2622
|
+
# the AST, making its methods available to all assignment nodes within RuboCop.
|
2623
|
+
#
|
2624
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#8
|
2625
|
+
class RuboCop::AST::MlhsNode < ::RuboCop::AST::Node
|
2626
|
+
# Returns all the assignment nodes on the left hand side (LHS) of a multiple assignment.
|
2627
|
+
# These are generally assignment nodes (`lvasgn`, `ivasgn`, `cvasgn`, `gvasgn`, `casgn`)
|
2628
|
+
# but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ... =`,
|
2629
|
+
# or a `splat` node for `*, ... =`.
|
2630
|
+
#
|
2631
|
+
# @return [Array<Node>] the assignment nodes of the multiple assignment LHS
|
2632
|
+
#
|
2633
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#15
|
2634
|
+
def assignments; end
|
2635
|
+
end
|
2636
|
+
|
2481
2637
|
# Common functionality for nodes that can be used as modifiers:
|
2482
2638
|
# `if`, `while`, `until`
|
2483
2639
|
#
|
@@ -2548,19 +2704,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2548
2704
|
# @return [Node] a new instance of Node
|
2549
2705
|
# @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
|
2550
2706
|
#
|
2551
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2707
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#141
|
2552
2708
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
2553
2709
|
|
2554
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2710
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2555
2711
|
def __ENCODING___type?; end
|
2556
2712
|
|
2557
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2713
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2558
2714
|
def __FILE___type?; end
|
2559
2715
|
|
2560
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2716
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2561
2717
|
def __LINE___type?; end
|
2562
2718
|
|
2563
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2719
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2564
2720
|
def alias_type?; end
|
2565
2721
|
|
2566
2722
|
# Returns an array of ancestor nodes.
|
@@ -2568,173 +2724,178 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2568
2724
|
#
|
2569
2725
|
# @return [Array<Node>] an array of ancestor nodes
|
2570
2726
|
#
|
2571
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2727
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#306
|
2572
2728
|
def ancestors; end
|
2573
2729
|
|
2574
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2730
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2575
2731
|
def and_asgn_type?; end
|
2576
2732
|
|
2577
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2733
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2578
2734
|
def and_type?; end
|
2579
2735
|
|
2580
|
-
#
|
2736
|
+
# @return [Boolean]
|
2737
|
+
#
|
2738
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#531
|
2739
|
+
def any_block_type?; end
|
2740
|
+
|
2741
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2581
2742
|
def arg_expr_type?; end
|
2582
2743
|
|
2583
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2744
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2584
2745
|
def arg_type?; end
|
2585
2746
|
|
2586
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2747
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2587
2748
|
def args_type?; end
|
2588
2749
|
|
2589
2750
|
# @return [Boolean]
|
2590
2751
|
#
|
2591
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2752
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#511
|
2592
2753
|
def argument?; end
|
2593
2754
|
|
2594
2755
|
# @return [Boolean]
|
2595
2756
|
#
|
2596
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2757
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#515
|
2597
2758
|
def argument_type?; end
|
2598
2759
|
|
2599
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2760
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2600
2761
|
def array_pattern_type?; end
|
2601
2762
|
|
2602
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2763
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2603
2764
|
def array_pattern_with_tail_type?; end
|
2604
2765
|
|
2605
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2766
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2606
2767
|
def array_type?; end
|
2607
2768
|
|
2608
2769
|
# @return [Boolean]
|
2609
2770
|
#
|
2610
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2771
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#463
|
2611
2772
|
def assignment?; end
|
2612
2773
|
|
2613
2774
|
# Some cops treat the shovel operator as a kind of assignment.
|
2614
2775
|
#
|
2615
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2776
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#413
|
2616
2777
|
def assignment_or_similar?(param0 = T.unsafe(nil)); end
|
2617
2778
|
|
2618
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2779
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2619
2780
|
def back_ref_type?; end
|
2620
2781
|
|
2621
2782
|
# @return [Boolean]
|
2622
2783
|
#
|
2623
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2784
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#467
|
2624
2785
|
def basic_conditional?; end
|
2625
2786
|
|
2626
2787
|
# @return [Boolean]
|
2627
2788
|
#
|
2628
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2789
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#421
|
2629
2790
|
def basic_literal?; end
|
2630
2791
|
|
2631
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2792
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2632
2793
|
def begin_type?; end
|
2633
2794
|
|
2634
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2795
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2635
2796
|
def block_pass_type?; end
|
2636
2797
|
|
2637
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2798
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2638
2799
|
def block_type?; end
|
2639
2800
|
|
2640
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2801
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2641
2802
|
def blockarg_expr_type?; end
|
2642
2803
|
|
2643
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2804
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2644
2805
|
def blockarg_type?; end
|
2645
2806
|
|
2646
2807
|
# @return [Boolean]
|
2647
2808
|
#
|
2648
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2809
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#519
|
2649
2810
|
def boolean_type?; end
|
2650
2811
|
|
2651
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2812
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2652
2813
|
def break_type?; end
|
2653
2814
|
|
2654
2815
|
# @return [Boolean]
|
2655
2816
|
#
|
2656
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2817
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#503
|
2657
2818
|
def call_type?; end
|
2658
2819
|
|
2659
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2820
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2660
2821
|
def case_match_type?; end
|
2661
2822
|
|
2662
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2823
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2663
2824
|
def case_type?; end
|
2664
2825
|
|
2665
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2826
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2666
2827
|
def casgn_type?; end
|
2667
2828
|
|
2668
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2829
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2669
2830
|
def cbase_type?; end
|
2670
2831
|
|
2671
2832
|
# @return [Boolean]
|
2672
2833
|
#
|
2673
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2834
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#507
|
2674
2835
|
def chained?; end
|
2675
2836
|
|
2676
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2837
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#579
|
2677
2838
|
def class_constructor?(param0 = T.unsafe(nil)); end
|
2678
2839
|
|
2679
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2840
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#597
|
2680
2841
|
def class_definition?(param0 = T.unsafe(nil)); end
|
2681
2842
|
|
2682
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2843
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2683
2844
|
def class_type?; end
|
2684
2845
|
|
2685
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2846
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#203
|
2686
2847
|
def complete!; end
|
2687
2848
|
|
2688
2849
|
# @return [Boolean]
|
2689
2850
|
#
|
2690
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2851
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#208
|
2691
2852
|
def complete?; end
|
2692
2853
|
|
2693
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2854
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2694
2855
|
def complex_type?; end
|
2695
2856
|
|
2696
2857
|
# @return [Boolean]
|
2697
2858
|
#
|
2698
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2859
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#471
|
2699
2860
|
def conditional?; end
|
2700
2861
|
|
2701
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2862
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#352
|
2702
2863
|
def const_name; end
|
2703
2864
|
|
2704
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2865
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2705
2866
|
def const_pattern_type?; end
|
2706
2867
|
|
2707
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2868
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2708
2869
|
def const_type?; end
|
2709
2870
|
|
2710
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2871
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2711
2872
|
def csend_type?; end
|
2712
2873
|
|
2713
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2874
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2714
2875
|
def cvar_type?; end
|
2715
2876
|
|
2716
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2877
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2717
2878
|
def cvasgn_type?; end
|
2718
2879
|
|
2719
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2880
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2720
2881
|
def def_type?; end
|
2721
2882
|
|
2722
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2883
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#372
|
2723
2884
|
def defined_module; end
|
2724
2885
|
|
2725
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2886
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#377
|
2726
2887
|
def defined_module_name; end
|
2727
2888
|
|
2728
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2889
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2729
2890
|
def defined_type?; end
|
2730
2891
|
|
2731
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2892
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2732
2893
|
def defs_type?; end
|
2733
2894
|
|
2734
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2895
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2735
2896
|
def dstr_type?; end
|
2736
2897
|
|
2737
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2898
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2738
2899
|
def dsym_type?; end
|
2739
2900
|
|
2740
2901
|
# Calls the given block for each ancestor node from parent to root.
|
@@ -2747,163 +2908,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2747
2908
|
# @return [Enumerator] if no block is given
|
2748
2909
|
# @yieldparam node [Node] each ancestor node
|
2749
2910
|
#
|
2750
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2911
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#294
|
2751
2912
|
def each_ancestor(*types, &block); end
|
2752
2913
|
|
2753
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2914
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2754
2915
|
def eflipflop_type?; end
|
2755
2916
|
|
2756
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2917
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2757
2918
|
def empty_else_type?; end
|
2758
2919
|
|
2759
2920
|
# @return [Boolean]
|
2760
2921
|
#
|
2761
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2922
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#407
|
2762
2923
|
def empty_source?; end
|
2763
2924
|
|
2764
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2925
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2765
2926
|
def ensure_type?; end
|
2766
2927
|
|
2767
2928
|
# @return [Boolean]
|
2768
2929
|
#
|
2769
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2930
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#455
|
2770
2931
|
def equals_asgn?; end
|
2771
2932
|
|
2772
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2933
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2773
2934
|
def erange_type?; end
|
2774
2935
|
|
2775
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2936
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2776
2937
|
def false_type?; end
|
2777
2938
|
|
2778
2939
|
# @return [Boolean]
|
2779
2940
|
#
|
2780
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2941
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#429
|
2781
2942
|
def falsey_literal?; end
|
2782
2943
|
|
2783
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2944
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2784
2945
|
def find_pattern_type?; end
|
2785
2946
|
|
2786
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2947
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#320
|
2787
2948
|
def first_line; end
|
2788
2949
|
|
2789
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2950
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2790
2951
|
def float_type?; end
|
2791
2952
|
|
2792
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2953
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2793
2954
|
def for_type?; end
|
2794
2955
|
|
2795
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2956
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2796
2957
|
def forward_arg_type?; end
|
2797
2958
|
|
2798
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2959
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2799
2960
|
def forward_args_type?; end
|
2800
2961
|
|
2801
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2962
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2802
2963
|
def forwarded_args_type?; end
|
2803
2964
|
|
2804
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2965
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2805
2966
|
def forwarded_kwrestarg_type?; end
|
2806
2967
|
|
2807
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2968
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2808
2969
|
def forwarded_restarg_type?; end
|
2809
2970
|
|
2810
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2971
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#576
|
2811
2972
|
def global_const?(param0 = T.unsafe(nil), param1); end
|
2812
2973
|
|
2813
2974
|
# @return [Boolean]
|
2814
2975
|
#
|
2815
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2976
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#535
|
2816
2977
|
def guard_clause?; end
|
2817
2978
|
|
2818
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2979
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2819
2980
|
def gvar_type?; end
|
2820
2981
|
|
2821
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2982
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2822
2983
|
def gvasgn_type?; end
|
2823
2984
|
|
2824
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2985
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2825
2986
|
def hash_pattern_type?; end
|
2826
2987
|
|
2827
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2988
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2828
2989
|
def hash_type?; end
|
2829
2990
|
|
2830
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2991
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2831
2992
|
def ident_type?; end
|
2832
2993
|
|
2833
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2994
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2834
2995
|
def if_guard_type?; end
|
2835
2996
|
|
2836
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2997
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2837
2998
|
def if_type?; end
|
2838
2999
|
|
2839
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3000
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2840
3001
|
def iflipflop_type?; end
|
2841
3002
|
|
2842
3003
|
# @return [Boolean]
|
2843
3004
|
#
|
2844
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3005
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#437
|
2845
3006
|
def immutable_literal?; end
|
2846
3007
|
|
2847
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3008
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2848
3009
|
def in_match_type?; end
|
2849
3010
|
|
2850
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3011
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2851
3012
|
def in_pattern_type?; end
|
2852
3013
|
|
2853
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3014
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2854
3015
|
def index_type?; end
|
2855
3016
|
|
2856
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3017
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2857
3018
|
def indexasgn_type?; end
|
2858
3019
|
|
2859
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3020
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2860
3021
|
def int_type?; end
|
2861
3022
|
|
2862
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3023
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2863
3024
|
def irange_type?; end
|
2864
3025
|
|
2865
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3026
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2866
3027
|
def ivar_type?; end
|
2867
3028
|
|
2868
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3029
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2869
3030
|
def ivasgn_type?; end
|
2870
3031
|
|
2871
3032
|
# @return [Boolean]
|
2872
3033
|
#
|
2873
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3034
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#484
|
2874
3035
|
def keyword?; end
|
2875
3036
|
|
2876
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3037
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2877
3038
|
def kwarg_type?; end
|
2878
3039
|
|
2879
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3040
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2880
3041
|
def kwargs_type?; end
|
2881
3042
|
|
2882
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3043
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2883
3044
|
def kwbegin_type?; end
|
2884
3045
|
|
2885
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3046
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2886
3047
|
def kwnilarg_type?; end
|
2887
3048
|
|
2888
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3049
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2889
3050
|
def kwoptarg_type?; end
|
2890
3051
|
|
2891
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3052
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2892
3053
|
def kwrestarg_type?; end
|
2893
3054
|
|
2894
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3055
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2895
3056
|
def kwsplat_type?; end
|
2896
3057
|
|
2897
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3058
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#570
|
2898
3059
|
def lambda?(param0 = T.unsafe(nil)); end
|
2899
3060
|
|
2900
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3061
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#573
|
2901
3062
|
def lambda_or_proc?(param0 = T.unsafe(nil)); end
|
2902
3063
|
|
2903
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3064
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2904
3065
|
def lambda_type?; end
|
2905
3066
|
|
2906
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3067
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#324
|
2907
3068
|
def last_line; end
|
2908
3069
|
|
2909
3070
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2911,7 +3072,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2911
3072
|
#
|
2912
3073
|
# @return [Node, nil] the left (aka previous) sibling
|
2913
3074
|
#
|
2914
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3075
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#246
|
2915
3076
|
def left_sibling; end
|
2916
3077
|
|
2917
3078
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2919,94 +3080,109 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2919
3080
|
#
|
2920
3081
|
# @return [Array<Node>] the left (aka previous) siblings
|
2921
3082
|
#
|
2922
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3083
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#256
|
2923
3084
|
def left_siblings; end
|
2924
3085
|
|
2925
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3086
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#328
|
2926
3087
|
def line_count; end
|
2927
3088
|
|
2928
3089
|
# @return [Boolean]
|
2929
3090
|
#
|
2930
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3091
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#417
|
2931
3092
|
def literal?; end
|
2932
3093
|
|
3094
|
+
# Shortcut to safely check if a location is present
|
3095
|
+
#
|
3096
|
+
# @return [Boolean]
|
3097
|
+
#
|
3098
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#543
|
3099
|
+
def loc?(which_loc); end
|
3100
|
+
|
3101
|
+
# Shortcut to safely test a particular location, even if
|
3102
|
+
# this location does not exist or is `nil`
|
3103
|
+
#
|
3104
|
+
# @return [Boolean]
|
3105
|
+
#
|
3106
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#551
|
3107
|
+
def loc_is?(which_loc, str); end
|
3108
|
+
|
2933
3109
|
# NOTE: `loop { }` is a normal method call and thus not a loop keyword.
|
2934
3110
|
#
|
2935
3111
|
# @return [Boolean]
|
2936
3112
|
#
|
2937
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3113
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#480
|
2938
3114
|
def loop_keyword?; end
|
2939
3115
|
|
2940
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3116
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2941
3117
|
def lvar_type?; end
|
2942
3118
|
|
2943
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3119
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2944
3120
|
def lvasgn_type?; end
|
2945
3121
|
|
2946
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3122
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2947
3123
|
def masgn_type?; end
|
2948
3124
|
|
2949
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3125
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2950
3126
|
def match_alt_type?; end
|
2951
3127
|
|
2952
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3128
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2953
3129
|
def match_as_type?; end
|
2954
3130
|
|
2955
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3131
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2956
3132
|
def match_current_line_type?; end
|
2957
3133
|
|
2958
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3134
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#558
|
2959
3135
|
def match_guard_clause?(param0 = T.unsafe(nil)); end
|
2960
3136
|
|
2961
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3137
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2962
3138
|
def match_nil_pattern_type?; end
|
2963
3139
|
|
2964
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3140
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2965
3141
|
def match_pattern_p_type?; end
|
2966
3142
|
|
2967
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3143
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2968
3144
|
def match_pattern_type?; end
|
2969
3145
|
|
2970
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3146
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2971
3147
|
def match_rest_type?; end
|
2972
3148
|
|
2973
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3149
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2974
3150
|
def match_var_type?; end
|
2975
3151
|
|
2976
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3152
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2977
3153
|
def match_with_lvasgn_type?; end
|
2978
3154
|
|
2979
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3155
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2980
3156
|
def match_with_trailing_comma_type?; end
|
2981
3157
|
|
2982
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3158
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2983
3159
|
def mlhs_type?; end
|
2984
3160
|
|
2985
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3161
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#604
|
2986
3162
|
def module_definition?(param0 = T.unsafe(nil)); end
|
2987
3163
|
|
2988
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3164
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
2989
3165
|
def module_type?; end
|
2990
3166
|
|
2991
3167
|
# Predicates
|
2992
3168
|
#
|
2993
3169
|
# @return [Boolean]
|
2994
3170
|
#
|
2995
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3171
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#399
|
2996
3172
|
def multiline?; end
|
2997
3173
|
|
2998
3174
|
# @return [Boolean]
|
2999
3175
|
#
|
3000
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3176
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#433
|
3001
3177
|
def mutable_literal?; end
|
3002
3178
|
|
3003
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3179
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#735
|
3004
3180
|
def new_class_or_module_block?(param0 = T.unsafe(nil)); end
|
3005
3181
|
|
3006
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3182
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3007
3183
|
def next_type?; end
|
3008
3184
|
|
3009
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3185
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3010
3186
|
def nil_type?; end
|
3011
3187
|
|
3012
3188
|
# Common destructuring method. This can be used to normalize
|
@@ -3019,95 +3195,95 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3019
3195
|
# source://ast/2.4.2/lib/ast/node.rb#56
|
3020
3196
|
def node_parts; end
|
3021
3197
|
|
3022
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3198
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#334
|
3023
3199
|
def nonempty_line_count; end
|
3024
3200
|
|
3025
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3201
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3026
3202
|
def not_type?; end
|
3027
3203
|
|
3028
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3204
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3029
3205
|
def nth_ref_type?; end
|
3030
3206
|
|
3031
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3207
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3032
3208
|
def numargs_type?; end
|
3033
3209
|
|
3034
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3210
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3035
3211
|
def numblock_type?; end
|
3036
3212
|
|
3037
3213
|
# @return [Boolean]
|
3038
3214
|
#
|
3039
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3215
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#523
|
3040
3216
|
def numeric_type?; end
|
3041
3217
|
|
3042
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3218
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3043
3219
|
def objc_kwarg_type?; end
|
3044
3220
|
|
3045
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3221
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3046
3222
|
def objc_restarg_type?; end
|
3047
3223
|
|
3048
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3224
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3049
3225
|
def objc_varargs_type?; end
|
3050
3226
|
|
3051
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3227
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3052
3228
|
def op_asgn_type?; end
|
3053
3229
|
|
3054
3230
|
# @return [Boolean]
|
3055
3231
|
#
|
3056
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3232
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#495
|
3057
3233
|
def operator_keyword?; end
|
3058
3234
|
|
3059
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3235
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3060
3236
|
def optarg_type?; end
|
3061
3237
|
|
3062
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3238
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3063
3239
|
def or_asgn_type?; end
|
3064
3240
|
|
3065
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3241
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3066
3242
|
def or_type?; end
|
3067
3243
|
|
3068
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3244
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3069
3245
|
def pair_type?; end
|
3070
3246
|
|
3071
3247
|
# Returns the parent node, or `nil` if the receiver is a root node.
|
3072
3248
|
#
|
3073
3249
|
# @return [Node, nil] the parent node or `nil`
|
3074
3250
|
#
|
3075
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3251
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#185
|
3076
3252
|
def parent; end
|
3077
3253
|
|
3078
3254
|
# @return [Boolean]
|
3079
3255
|
#
|
3080
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3256
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#194
|
3081
3257
|
def parent?; end
|
3082
3258
|
|
3083
3259
|
# Searching the AST
|
3084
3260
|
#
|
3085
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3261
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#383
|
3086
3262
|
def parent_module_name; end
|
3087
3263
|
|
3088
3264
|
# @return [Boolean]
|
3089
3265
|
#
|
3090
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3266
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#499
|
3091
3267
|
def parenthesized_call?; end
|
3092
3268
|
|
3093
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3269
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3094
3270
|
def pin_type?; end
|
3095
3271
|
|
3096
3272
|
# @return [Boolean]
|
3097
3273
|
#
|
3098
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3274
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#475
|
3099
3275
|
def post_condition_loop?; end
|
3100
3276
|
|
3101
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3277
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3102
3278
|
def postexe_type?; end
|
3103
3279
|
|
3104
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3280
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3105
3281
|
def preexe_type?; end
|
3106
3282
|
|
3107
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3283
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#563
|
3108
3284
|
def proc?(param0 = T.unsafe(nil)); end
|
3109
3285
|
|
3110
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3286
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3111
3287
|
def procarg0_type?; end
|
3112
3288
|
|
3113
3289
|
# Some expressions are evaluated for their value, some for their side
|
@@ -3120,60 +3296,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3120
3296
|
#
|
3121
3297
|
# @return [Boolean]
|
3122
3298
|
#
|
3123
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3299
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#647
|
3124
3300
|
def pure?; end
|
3125
3301
|
|
3126
3302
|
# @return [Boolean]
|
3127
3303
|
#
|
3128
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3304
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#527
|
3129
3305
|
def range_type?; end
|
3130
3306
|
|
3131
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3307
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3132
3308
|
def rational_type?; end
|
3133
3309
|
|
3134
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3310
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#345
|
3135
3311
|
def receiver(param0 = T.unsafe(nil)); end
|
3136
3312
|
|
3137
3313
|
# @return [Boolean]
|
3138
3314
|
#
|
3139
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3315
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#125
|
3140
3316
|
def recursive_basic_literal?; end
|
3141
3317
|
|
3142
3318
|
# @return [Boolean]
|
3143
3319
|
#
|
3144
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3320
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#125
|
3145
3321
|
def recursive_literal?; end
|
3146
3322
|
|
3147
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3323
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3148
3324
|
def redo_type?; end
|
3149
3325
|
|
3150
3326
|
# @return [Boolean]
|
3151
3327
|
#
|
3152
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3328
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#451
|
3153
3329
|
def reference?; end
|
3154
3330
|
|
3155
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3331
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3156
3332
|
def regexp_type?; end
|
3157
3333
|
|
3158
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3334
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3159
3335
|
def regopt_type?; end
|
3160
3336
|
|
3161
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3337
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3162
3338
|
def resbody_type?; end
|
3163
3339
|
|
3164
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3340
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3165
3341
|
def rescue_type?; end
|
3166
3342
|
|
3167
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3343
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3168
3344
|
def restarg_expr_type?; end
|
3169
3345
|
|
3170
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3346
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3171
3347
|
def restarg_type?; end
|
3172
3348
|
|
3173
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3349
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3174
3350
|
def retry_type?; end
|
3175
3351
|
|
3176
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3352
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3177
3353
|
def return_type?; end
|
3178
3354
|
|
3179
3355
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3181,7 +3357,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3181
3357
|
#
|
3182
3358
|
# @return [Node, nil] the right (aka next) sibling
|
3183
3359
|
#
|
3184
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3360
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#237
|
3185
3361
|
def right_sibling; end
|
3186
3362
|
|
3187
3363
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3189,18 +3365,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3189
3365
|
#
|
3190
3366
|
# @return [Array<Node>] the right (aka next) siblings
|
3191
3367
|
#
|
3192
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3368
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#265
|
3193
3369
|
def right_siblings; end
|
3194
3370
|
|
3195
3371
|
# @return [Boolean]
|
3196
3372
|
#
|
3197
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3373
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#199
|
3198
3374
|
def root?; end
|
3199
3375
|
|
3200
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3376
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3201
3377
|
def sclass_type?; end
|
3202
3378
|
|
3203
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3379
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3204
3380
|
def self_type?; end
|
3205
3381
|
|
3206
3382
|
# Most nodes are of 'send' type, so this method is defined
|
@@ -3208,15 +3384,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3208
3384
|
#
|
3209
3385
|
# @return [Boolean]
|
3210
3386
|
#
|
3211
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3387
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#178
|
3212
3388
|
def send_type?; end
|
3213
3389
|
|
3214
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3390
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3215
3391
|
def shadowarg_type?; end
|
3216
3392
|
|
3217
3393
|
# @return [Boolean]
|
3218
3394
|
#
|
3219
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3395
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#459
|
3220
3396
|
def shorthand_asgn?; end
|
3221
3397
|
|
3222
3398
|
# Returns the index of the receiver node in its siblings. (Sibling index
|
@@ -3225,70 +3401,79 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3225
3401
|
#
|
3226
3402
|
# @return [Integer, nil] the index of the receiver node in its siblings
|
3227
3403
|
#
|
3228
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3404
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#230
|
3229
3405
|
def sibling_index; end
|
3230
3406
|
|
3231
3407
|
# @return [Boolean]
|
3232
3408
|
#
|
3233
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3409
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#403
|
3234
3410
|
def single_line?; end
|
3235
3411
|
|
3236
3412
|
# NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
|
3237
3413
|
#
|
3238
3414
|
# @return [String, nil]
|
3239
3415
|
#
|
3240
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3416
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#312
|
3241
3417
|
def source; end
|
3242
3418
|
|
3243
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3419
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#338
|
3244
3420
|
def source_length; end
|
3245
3421
|
|
3246
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3422
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#316
|
3247
3423
|
def source_range; end
|
3248
3424
|
|
3249
3425
|
# @return [Boolean]
|
3250
3426
|
#
|
3251
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3427
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#491
|
3252
3428
|
def special_keyword?; end
|
3253
3429
|
|
3254
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3430
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3255
3431
|
def splat_type?; end
|
3256
3432
|
|
3257
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3433
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#350
|
3258
3434
|
def str_content(param0 = T.unsafe(nil)); end
|
3259
3435
|
|
3260
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3436
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3261
3437
|
def str_type?; end
|
3262
3438
|
|
3263
3439
|
# @deprecated Use `:class_constructor?`
|
3264
3440
|
#
|
3265
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3441
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#592
|
3266
3442
|
def struct_constructor?(param0 = T.unsafe(nil)); end
|
3267
3443
|
|
3268
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3444
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3269
3445
|
def super_type?; end
|
3270
3446
|
|
3271
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3447
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3272
3448
|
def sym_type?; end
|
3273
3449
|
|
3274
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3450
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3275
3451
|
def true_type?; end
|
3276
3452
|
|
3277
3453
|
# @return [Boolean]
|
3278
3454
|
#
|
3279
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3455
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#425
|
3280
3456
|
def truthy_literal?; end
|
3281
3457
|
|
3282
|
-
#
|
3458
|
+
# Determine if the node is one of several node types in a single query
|
3459
|
+
# Allows specific single node types, as well as "grouped" types
|
3460
|
+
# (e.g. `:boolean` for `:true` or `:false`)
|
3461
|
+
#
|
3462
|
+
# @return [Boolean]
|
3463
|
+
#
|
3464
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#160
|
3465
|
+
def type?(*types); end
|
3466
|
+
|
3467
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3283
3468
|
def undef_type?; end
|
3284
3469
|
|
3285
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3470
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3286
3471
|
def unless_guard_type?; end
|
3287
3472
|
|
3288
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3473
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3289
3474
|
def until_post_type?; end
|
3290
3475
|
|
3291
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3476
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3292
3477
|
def until_type?; end
|
3293
3478
|
|
3294
3479
|
# Override `AST::Node#updated` so that `AST::Processor` does not try to
|
@@ -3297,7 +3482,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3297
3482
|
# identical subtrees. Rather, the entire AST must be copied any time any
|
3298
3483
|
# part of it is changed.
|
3299
3484
|
#
|
3300
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3485
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#219
|
3301
3486
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
3302
3487
|
|
3303
3488
|
# Some expressions are evaluated for their value, some for their side
|
@@ -3310,87 +3495,82 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3310
3495
|
#
|
3311
3496
|
# @return [Boolean]
|
3312
3497
|
#
|
3313
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3498
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#617
|
3314
3499
|
def value_used?; end
|
3315
3500
|
|
3316
3501
|
# @return [Boolean]
|
3317
3502
|
#
|
3318
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3503
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#447
|
3319
3504
|
def variable?; end
|
3320
3505
|
|
3321
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3506
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3322
3507
|
def when_type?; end
|
3323
3508
|
|
3324
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3509
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3325
3510
|
def while_post_type?; end
|
3326
3511
|
|
3327
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3512
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3328
3513
|
def while_type?; end
|
3329
3514
|
|
3330
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3515
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3331
3516
|
def xstr_type?; end
|
3332
3517
|
|
3333
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3518
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3334
3519
|
def yield_type?; end
|
3335
3520
|
|
3336
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3521
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#170
|
3337
3522
|
def zsuper_type?; end
|
3338
3523
|
|
3339
3524
|
protected
|
3340
3525
|
|
3341
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3526
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#189
|
3342
3527
|
def parent=(node); end
|
3343
3528
|
|
3344
3529
|
private
|
3345
3530
|
|
3346
3531
|
# @return [Boolean]
|
3347
3532
|
#
|
3348
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3533
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#674
|
3349
3534
|
def begin_value_used?; end
|
3350
3535
|
|
3351
3536
|
# @return [Boolean]
|
3352
3537
|
#
|
3353
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3538
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#685
|
3354
3539
|
def case_if_value_used?; end
|
3355
3540
|
|
3356
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3541
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#363
|
3357
3542
|
def defined_module0(param0 = T.unsafe(nil)); end
|
3358
3543
|
|
3359
3544
|
# @return [Boolean]
|
3360
3545
|
#
|
3361
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3546
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#679
|
3362
3547
|
def for_value_used?; end
|
3363
3548
|
|
3364
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3549
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#721
|
3365
3550
|
def parent_module_name_for_block(ancestor); end
|
3366
3551
|
|
3367
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3552
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#709
|
3368
3553
|
def parent_module_name_for_sclass(sclass_node); end
|
3369
3554
|
|
3370
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3555
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#696
|
3371
3556
|
def parent_module_name_part(node); end
|
3372
3557
|
|
3373
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3558
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#665
|
3374
3559
|
def visit_ancestors(types); end
|
3375
3560
|
|
3376
3561
|
# @return [Boolean]
|
3377
3562
|
#
|
3378
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3563
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#691
|
3379
3564
|
def while_until_value_used?; end
|
3380
3565
|
|
3381
3566
|
class << self
|
3382
3567
|
private
|
3383
3568
|
|
3384
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3569
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#120
|
3385
3570
|
def def_recursive_literal_predicate(kind); end
|
3386
3571
|
end
|
3387
3572
|
end
|
3388
3573
|
|
3389
|
-
# @api private
|
3390
|
-
#
|
3391
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#80
|
3392
|
-
RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set)
|
3393
|
-
|
3394
3574
|
# @api private
|
3395
3575
|
#
|
3396
3576
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#55
|
@@ -3423,10 +3603,10 @@ RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
|
|
3423
3603
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#60
|
3424
3604
|
RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
|
3425
3605
|
|
3426
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3606
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#84
|
3427
3607
|
RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array)
|
3428
3608
|
|
3429
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3609
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#85
|
3430
3610
|
RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash)
|
3431
3611
|
|
3432
3612
|
# @api private
|
@@ -3439,6 +3619,11 @@ RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
|
|
3439
3619
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#35
|
3440
3620
|
RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set)
|
3441
3621
|
|
3622
|
+
# @api private
|
3623
|
+
#
|
3624
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#89
|
3625
|
+
RuboCop::AST::Node::GROUP_FOR_TYPE = T.let(T.unsafe(nil), Hash)
|
3626
|
+
|
3442
3627
|
# @api private
|
3443
3628
|
#
|
3444
3629
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#47
|
@@ -3454,10 +3639,10 @@ RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set)
|
|
3454
3639
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#37
|
3455
3640
|
RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set)
|
3456
3641
|
|
3457
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3642
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#80
|
3458
3643
|
RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set)
|
3459
3644
|
|
3460
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3645
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#81
|
3461
3646
|
RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set)
|
3462
3647
|
|
3463
3648
|
# @api private
|
@@ -3527,7 +3712,7 @@ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set)
|
|
3527
3712
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5
|
3528
3713
|
class RuboCop::AST::NodePattern
|
3529
3714
|
include ::RuboCop::AST::NodePattern::MethodDefiner
|
3530
|
-
extend ::
|
3715
|
+
extend ::RuboCop::SimpleForwardable
|
3531
3716
|
|
3532
3717
|
# @return [NodePattern] a new instance of NodePattern
|
3533
3718
|
#
|
@@ -3545,8 +3730,8 @@ class RuboCop::AST::NodePattern
|
|
3545
3730
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3546
3731
|
def ast; end
|
3547
3732
|
|
3548
|
-
# source://
|
3549
|
-
def captures(*
|
3733
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3734
|
+
def captures(*_arg0, **_arg1, &_arg2); end
|
3550
3735
|
|
3551
3736
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
|
3552
3737
|
def encode_with(coder); end
|
@@ -3574,16 +3759,16 @@ class RuboCop::AST::NodePattern
|
|
3574
3759
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3575
3760
|
def match_code; end
|
3576
3761
|
|
3577
|
-
# source://
|
3578
|
-
def named_parameters(*
|
3762
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3763
|
+
def named_parameters(*_arg0, **_arg1, &_arg2); end
|
3579
3764
|
|
3580
3765
|
# Returns the value of attribute pattern.
|
3581
3766
|
#
|
3582
3767
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3583
3768
|
def pattern; end
|
3584
3769
|
|
3585
|
-
# source://
|
3586
|
-
def positional_parameters(*
|
3770
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3771
|
+
def positional_parameters(*_arg0, **_arg1, &_arg2); end
|
3587
3772
|
|
3588
3773
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
|
3589
3774
|
def to_s; end
|
@@ -3688,15 +3873,15 @@ end
|
|
3688
3873
|
#
|
3689
3874
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11
|
3690
3875
|
class RuboCop::AST::NodePattern::Compiler
|
3691
|
-
extend ::
|
3876
|
+
extend ::RuboCop::SimpleForwardable
|
3692
3877
|
|
3693
3878
|
# @return [Compiler] a new instance of Compiler
|
3694
3879
|
#
|
3695
3880
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
|
3696
3881
|
def initialize; end
|
3697
3882
|
|
3698
|
-
# source://
|
3699
|
-
def bind(*
|
3883
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
3884
|
+
def bind(*_arg0, **_arg1, &_arg2); end
|
3700
3885
|
|
3701
3886
|
# Returns the value of attribute binding.
|
3702
3887
|
#
|
@@ -3842,8 +4027,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
|
|
3842
4027
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
|
3843
4028
|
def initialize; end
|
3844
4029
|
|
3845
|
-
# source://
|
3846
|
-
def comments(*
|
4030
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4031
|
+
def comments(*_arg0, **_arg1, &_arg2); end
|
3847
4032
|
|
3848
4033
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128
|
3849
4034
|
def named_parameters; end
|
@@ -3856,8 +4041,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
|
|
3856
4041
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132
|
3857
4042
|
def parser; end
|
3858
4043
|
|
3859
|
-
# source://
|
3860
|
-
def tokens(*
|
4044
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4045
|
+
def tokens(*_arg0, **_arg1, &_arg2); end
|
3861
4046
|
end
|
3862
4047
|
|
3863
4048
|
# @api private
|
@@ -4633,7 +4818,7 @@ end
|
|
4633
4818
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7
|
4634
4819
|
class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
4635
4820
|
include ::RuboCop::AST::Descendence
|
4636
|
-
extend ::
|
4821
|
+
extend ::RuboCop::SimpleForwardable
|
4637
4822
|
|
4638
4823
|
# Note: `arity.end` may be `Float::INFINITY`
|
4639
4824
|
#
|
@@ -4674,7 +4859,7 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
|
4674
4859
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#63
|
4675
4860
|
def matches_within_set?; end
|
4676
4861
|
|
4677
|
-
# @return [Integer] nb of captures
|
4862
|
+
# @return [Integer] nb of captures that this node will emit
|
4678
4863
|
#
|
4679
4864
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#52
|
4680
4865
|
def nb_captures; end
|
@@ -4726,8 +4911,8 @@ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
|
|
4726
4911
|
#
|
4727
4912
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96
|
4728
4913
|
class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
|
4729
|
-
# source://
|
4730
|
-
def arity(*
|
4914
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4915
|
+
def arity(*_arg0, **_arg1, &_arg2); end
|
4731
4916
|
|
4732
4917
|
# @return [Boolean]
|
4733
4918
|
#
|
@@ -4740,8 +4925,8 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No
|
|
4740
4925
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104
|
4741
4926
|
def nb_captures; end
|
4742
4927
|
|
4743
|
-
# source://
|
4744
|
-
def rest?(*
|
4928
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
4929
|
+
def rest?(*_arg0, **_arg1, &_arg2); end
|
4745
4930
|
end
|
4746
4931
|
|
4747
4932
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#85
|
@@ -4760,7 +4945,7 @@ RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
|
|
4760
4945
|
|
4761
4946
|
# Registry
|
4762
4947
|
#
|
4763
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4948
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#255
|
4764
4949
|
RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
|
4765
4950
|
|
4766
4951
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#11
|
@@ -4846,6 +5031,12 @@ class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
|
|
4846
5031
|
|
4847
5032
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#231
|
4848
5033
|
def in_sequence_head; end
|
5034
|
+
|
5035
|
+
# Each child in a union must contain the same number
|
5036
|
+
# of captures. Only one branch ends up capturing.
|
5037
|
+
#
|
5038
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#249
|
5039
|
+
def nb_captures; end
|
4849
5040
|
end
|
4850
5041
|
|
4851
5042
|
# Parser for NodePattern
|
@@ -4856,7 +5047,7 @@ end
|
|
4856
5047
|
#
|
4857
5048
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12
|
4858
5049
|
class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
4859
|
-
extend ::
|
5050
|
+
extend ::RuboCop::SimpleForwardable
|
4860
5051
|
|
4861
5052
|
# @return [Parser] a new instance of Parser
|
4862
5053
|
#
|
@@ -4975,29 +5166,29 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
|
4975
5166
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
|
4976
5167
|
def _reduce_none(val, _values); end
|
4977
5168
|
|
4978
|
-
# source://
|
4979
|
-
def emit_atom(*
|
5169
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5170
|
+
def emit_atom(*_arg0, **_arg1, &_arg2); end
|
4980
5171
|
|
4981
|
-
# source://
|
4982
|
-
def emit_call(*
|
5172
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5173
|
+
def emit_call(*_arg0, **_arg1, &_arg2); end
|
4983
5174
|
|
4984
|
-
# source://
|
4985
|
-
def emit_capture(*
|
5175
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5176
|
+
def emit_capture(*_arg0, **_arg1, &_arg2); end
|
4986
5177
|
|
4987
|
-
# source://
|
4988
|
-
def emit_list(*
|
5178
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5179
|
+
def emit_list(*_arg0, **_arg1, &_arg2); end
|
4989
5180
|
|
4990
|
-
# source://
|
4991
|
-
def emit_unary_op(*
|
5181
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5182
|
+
def emit_unary_op(*_arg0, **_arg1, &_arg2); end
|
4992
5183
|
|
4993
|
-
# source://
|
4994
|
-
def emit_union(*
|
5184
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5185
|
+
def emit_union(*_arg0, **_arg1, &_arg2); end
|
4995
5186
|
|
4996
5187
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
|
4997
5188
|
def inspect; end
|
4998
5189
|
|
4999
|
-
# source://
|
5000
|
-
def next_token(*
|
5190
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
5191
|
+
def next_token(*_arg0, **_arg1, &_arg2); end
|
5001
5192
|
|
5002
5193
|
# (Similar API to `parser` gem)
|
5003
5194
|
# Parses a source and returns the AST.
|
@@ -5154,7 +5345,7 @@ RuboCop::AST::NodePattern::Sets::SET_AFTER_ACTION_APPEND_AFTER_ACTION_APPEND_ARO
|
|
5154
5345
|
RuboCop::AST::NodePattern::Sets::SET_ALL_ANY_CLASS_OF_ETC = T.let(T.unsafe(nil), Set)
|
5155
5346
|
|
5156
5347
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5157
|
-
RuboCop::AST::NodePattern::Sets::
|
5348
|
+
RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE = T.let(T.unsafe(nil), Set)
|
5158
5349
|
|
5159
5350
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5160
5351
|
RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set)
|
@@ -5162,6 +5353,9 @@ RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), S
|
|
5162
5353
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5163
5354
|
RuboCop::AST::NodePattern::Sets::SET_AP_P_PP_ETC = T.let(T.unsafe(nil), Set)
|
5164
5355
|
|
5356
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5357
|
+
RuboCop::AST::NodePattern::Sets::SET_ARRAY_HASH = T.let(T.unsafe(nil), Set)
|
5358
|
+
|
5165
5359
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5166
5360
|
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set)
|
5167
5361
|
|
@@ -5349,7 +5543,7 @@ RuboCop::AST::NodePattern::Sets::SET_ONLY_EXCEPT = T.let(T.unsafe(nil), Set)
|
|
5349
5543
|
RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
|
5350
5544
|
|
5351
5545
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5352
|
-
RuboCop::AST::NodePattern::Sets::
|
5546
|
+
RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_ETC = T.let(T.unsafe(nil), Set)
|
5353
5547
|
|
5354
5548
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5355
5549
|
RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T.let(T.unsafe(nil), Set)
|
@@ -5385,7 +5579,7 @@ RuboCop::AST::NodePattern::Sets::SET_REFERER_REFERRER = T.let(T.unsafe(nil), Set
|
|
5385
5579
|
RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF = T.let(T.unsafe(nil), Set)
|
5386
5580
|
|
5387
5581
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5388
|
-
RuboCop::AST::NodePattern::Sets::
|
5582
|
+
RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
|
5389
5583
|
|
5390
5584
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5391
5585
|
RuboCop::AST::NodePattern::Sets::SET_RENDER_REDIRECT_TO = T.let(T.unsafe(nil), Set)
|
@@ -5403,14 +5597,17 @@ RuboCop::AST::NodePattern::Sets::SET_ROOT_PUBLIC_PATH = T.let(T.unsafe(nil), Set
|
|
5403
5597
|
RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set)
|
5404
5598
|
|
5405
5599
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5406
|
-
RuboCop::AST::NodePattern::Sets::
|
5600
|
+
RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_KEEP_IF = T.let(T.unsafe(nil), Set)
|
5407
5601
|
|
5408
5602
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5409
|
-
RuboCop::AST::NodePattern::Sets::
|
5603
|
+
RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT_FILTER_FILTER = T.let(T.unsafe(nil), Set)
|
5410
5604
|
|
5411
5605
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5412
5606
|
RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
|
5413
5607
|
|
5608
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5609
|
+
RuboCop::AST::NodePattern::Sets::SET_SET_SORTEDSET = T.let(T.unsafe(nil), Set)
|
5610
|
+
|
5414
5611
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5415
5612
|
RuboCop::AST::NodePattern::Sets::SET_SIG_HELPERS = T.let(T.unsafe(nil), Set)
|
5416
5613
|
|
@@ -5516,12 +5713,6 @@ RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set)
|
|
5516
5713
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5517
5714
|
RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set)
|
5518
5715
|
|
5519
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5520
|
-
RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set)
|
5521
|
-
|
5522
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5523
|
-
RuboCop::AST::NodePattern::Sets::SET___EQL_INCLUDE = T.let(T.unsafe(nil), Set)
|
5524
|
-
|
5525
5716
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5526
5717
|
RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set)
|
5527
5718
|
|
@@ -5582,22 +5773,34 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
|
|
5582
5773
|
#
|
5583
5774
|
# @return [Node] the expression being assigned.
|
5584
5775
|
#
|
5585
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5776
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
|
5586
5777
|
def expression; end
|
5587
5778
|
|
5779
|
+
# @return [AsgnNode] the assignment node
|
5780
|
+
#
|
5781
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10
|
5782
|
+
def lhs; end
|
5783
|
+
|
5588
5784
|
# The name of the variable being assigned as a symbol.
|
5589
5785
|
#
|
5590
5786
|
# @return [Symbol] the name of the variable being assigned
|
5591
5787
|
#
|
5592
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5788
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#18
|
5593
5789
|
def name; end
|
5594
5790
|
|
5595
5791
|
# The operator being used for assignment as a symbol.
|
5596
5792
|
#
|
5597
5793
|
# @return [Symbol] the assignment operator
|
5598
5794
|
#
|
5599
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5795
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#25
|
5600
5796
|
def operator; end
|
5797
|
+
|
5798
|
+
# The expression being assigned to the variable.
|
5799
|
+
#
|
5800
|
+
# @return [Node] the expression being assigned.
|
5801
|
+
#
|
5802
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32
|
5803
|
+
def rhs; end
|
5601
5804
|
end
|
5602
5805
|
|
5603
5806
|
# A node extension for `op_asgn` nodes.
|
@@ -5838,33 +6041,39 @@ module RuboCop::AST::PredicateOperatorNode
|
|
5838
6041
|
#
|
5839
6042
|
# @return [Boolean] whether this is a logical operator
|
5840
6043
|
#
|
5841
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#
|
6044
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#32
|
5842
6045
|
def logical_operator?; end
|
5843
6046
|
|
5844
6047
|
# Returns the operator as a string.
|
5845
6048
|
#
|
5846
6049
|
# @return [String] the operator
|
5847
6050
|
#
|
5848
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#
|
6051
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#25
|
5849
6052
|
def operator; end
|
5850
6053
|
|
5851
6054
|
# Checks whether this is a semantic operator.
|
5852
6055
|
#
|
5853
6056
|
# @return [Boolean] whether this is a semantic operator
|
5854
6057
|
#
|
5855
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#
|
6058
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#39
|
5856
6059
|
def semantic_operator?; end
|
5857
6060
|
end
|
5858
6061
|
|
5859
6062
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#8
|
5860
6063
|
RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String)
|
5861
6064
|
|
6065
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#17
|
6066
|
+
RuboCop::AST::PredicateOperatorNode::LOGICAL_OPERATORS = T.let(T.unsafe(nil), Array)
|
6067
|
+
|
5862
6068
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#12
|
5863
6069
|
RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String)
|
5864
6070
|
|
5865
6071
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#10
|
5866
6072
|
RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String)
|
5867
6073
|
|
6074
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#19
|
6075
|
+
RuboCop::AST::PredicateOperatorNode::SEMANTIC_OPERATORS = T.let(T.unsafe(nil), Array)
|
6076
|
+
|
5868
6077
|
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#14
|
5869
6078
|
RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String)
|
5870
6079
|
|
@@ -6068,13 +6277,13 @@ class RuboCop::AST::ProcessedSource
|
|
6068
6277
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#199
|
6069
6278
|
def comment_index; end
|
6070
6279
|
|
6071
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6280
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#329
|
6072
6281
|
def create_parser(ruby_version, parser_engine); end
|
6073
6282
|
|
6074
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6283
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#345
|
6075
6284
|
def first_token_index(range_or_node); end
|
6076
6285
|
|
6077
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6286
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#350
|
6078
6287
|
def last_token_index(range_or_node); end
|
6079
6288
|
|
6080
6289
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#205
|
@@ -6083,7 +6292,19 @@ class RuboCop::AST::ProcessedSource
|
|
6083
6292
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#238
|
6084
6293
|
def parser_class(ruby_version, parser_engine); end
|
6085
6294
|
|
6086
|
-
#
|
6295
|
+
# Prism is a native extension, a `LoadError` will be raised if linked to an incompatible
|
6296
|
+
# Ruby version. Only raise if it really was caused by Prism not being present.
|
6297
|
+
#
|
6298
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#306
|
6299
|
+
def require_prism; end
|
6300
|
+
|
6301
|
+
# While Prism is not yet a dependency, users may run with outdated versions that
|
6302
|
+
# don't have all the parsers.
|
6303
|
+
#
|
6304
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#317
|
6305
|
+
def require_prism_translation_parser(version); end
|
6306
|
+
|
6307
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#355
|
6087
6308
|
def source_range(range_or_node); end
|
6088
6309
|
|
6089
6310
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#222
|
@@ -6399,15 +6620,38 @@ class RuboCop::AST::StrNode < ::RuboCop::AST::Node
|
|
6399
6620
|
|
6400
6621
|
# @return [Boolean]
|
6401
6622
|
#
|
6402
|
-
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#
|
6623
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#26
|
6403
6624
|
def character_literal?; end
|
6404
6625
|
|
6405
6626
|
# @return [Boolean]
|
6406
6627
|
#
|
6407
|
-
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#
|
6628
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#22
|
6629
|
+
def double_quoted?; end
|
6630
|
+
|
6631
|
+
# @return [Boolean]
|
6632
|
+
#
|
6633
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#30
|
6408
6634
|
def heredoc?; end
|
6635
|
+
|
6636
|
+
# Checks whether the string literal is delimited by percent brackets.
|
6637
|
+
#
|
6638
|
+
# @overload percent_literal?
|
6639
|
+
# @overload percent_literal?
|
6640
|
+
# @param type [Symbol] an optional percent literal type
|
6641
|
+
# @return [Boolean] whether the string is enclosed in percent brackets
|
6642
|
+
#
|
6643
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#45
|
6644
|
+
def percent_literal?(type = T.unsafe(nil)); end
|
6645
|
+
|
6646
|
+
# @return [Boolean]
|
6647
|
+
#
|
6648
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#18
|
6649
|
+
def single_quoted?; end
|
6409
6650
|
end
|
6410
6651
|
|
6652
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11
|
6653
|
+
RuboCop::AST::StrNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
|
6654
|
+
|
6411
6655
|
# A node extension for `super`- and `zsuper` nodes. This will be used in
|
6412
6656
|
# place of a plain node when the builder constructs the AST, making its
|
6413
6657
|
# methods available to all `super`- and `zsuper` nodes within RuboCop.
|
@@ -6445,151 +6689,154 @@ end
|
|
6445
6689
|
class RuboCop::AST::Token
|
6446
6690
|
# @return [Token] a new instance of Token
|
6447
6691
|
#
|
6448
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6692
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#18
|
6449
6693
|
def initialize(pos, type, text); end
|
6450
6694
|
|
6451
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6695
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#33
|
6452
6696
|
def begin_pos; end
|
6453
6697
|
|
6454
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6698
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#29
|
6455
6699
|
def column; end
|
6456
6700
|
|
6457
6701
|
# @return [Boolean]
|
6458
6702
|
#
|
6459
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6703
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#102
|
6460
6704
|
def comma?; end
|
6461
6705
|
|
6462
6706
|
# Type Predicates
|
6463
6707
|
#
|
6464
6708
|
# @return [Boolean]
|
6465
6709
|
#
|
6466
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6710
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#58
|
6467
6711
|
def comment?; end
|
6468
6712
|
|
6469
6713
|
# @return [Boolean]
|
6470
6714
|
#
|
6471
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6715
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#106
|
6472
6716
|
def dot?; end
|
6473
6717
|
|
6474
6718
|
# @return [Boolean]
|
6475
6719
|
#
|
6476
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6720
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#118
|
6477
6721
|
def end?; end
|
6478
6722
|
|
6479
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6723
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#37
|
6480
6724
|
def end_pos; end
|
6481
6725
|
|
6482
6726
|
# @return [Boolean]
|
6483
6727
|
#
|
6484
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6728
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#122
|
6485
6729
|
def equal_sign?; end
|
6486
6730
|
|
6487
6731
|
# @return [Boolean]
|
6488
6732
|
#
|
6489
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6733
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#66
|
6490
6734
|
def left_array_bracket?; end
|
6491
6735
|
|
6492
6736
|
# @return [Boolean]
|
6493
6737
|
#
|
6494
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6738
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#82
|
6495
6739
|
def left_brace?; end
|
6496
6740
|
|
6497
6741
|
# @return [Boolean]
|
6498
6742
|
#
|
6499
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6743
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#74
|
6500
6744
|
def left_bracket?; end
|
6501
6745
|
|
6502
6746
|
# @return [Boolean]
|
6503
6747
|
#
|
6504
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6748
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#86
|
6505
6749
|
def left_curly_brace?; end
|
6506
6750
|
|
6507
6751
|
# @return [Boolean]
|
6508
6752
|
#
|
6509
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6753
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#94
|
6510
6754
|
def left_parens?; end
|
6511
6755
|
|
6512
6756
|
# @return [Boolean]
|
6513
6757
|
#
|
6514
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6758
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#70
|
6515
6759
|
def left_ref_bracket?; end
|
6516
6760
|
|
6517
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6761
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#25
|
6518
6762
|
def line; end
|
6519
6763
|
|
6520
6764
|
# @return [Boolean]
|
6521
6765
|
#
|
6522
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6766
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#126
|
6523
6767
|
def new_line?; end
|
6524
6768
|
|
6525
6769
|
# Returns the value of attribute pos.
|
6526
6770
|
#
|
6527
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6771
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#10
|
6528
6772
|
def pos; end
|
6529
6773
|
|
6530
6774
|
# @return [Boolean]
|
6531
6775
|
#
|
6532
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6776
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#110
|
6533
6777
|
def regexp_dots?; end
|
6534
6778
|
|
6535
6779
|
# @return [Boolean]
|
6536
6780
|
#
|
6537
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6781
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#114
|
6538
6782
|
def rescue_modifier?; end
|
6539
6783
|
|
6540
6784
|
# @return [Boolean]
|
6541
6785
|
#
|
6542
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6786
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#78
|
6543
6787
|
def right_bracket?; end
|
6544
6788
|
|
6545
6789
|
# @return [Boolean]
|
6546
6790
|
#
|
6547
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6791
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#90
|
6548
6792
|
def right_curly_brace?; end
|
6549
6793
|
|
6550
6794
|
# @return [Boolean]
|
6551
6795
|
#
|
6552
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6796
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#98
|
6553
6797
|
def right_parens?; end
|
6554
6798
|
|
6555
6799
|
# @return [Boolean]
|
6556
6800
|
#
|
6557
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6801
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#62
|
6558
6802
|
def semicolon?; end
|
6559
6803
|
|
6560
6804
|
# Checks if there is whitespace after token
|
6561
6805
|
#
|
6562
6806
|
# @return [Boolean]
|
6563
6807
|
#
|
6564
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6808
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#46
|
6565
6809
|
def space_after?; end
|
6566
6810
|
|
6567
6811
|
# Checks if there is whitespace before token
|
6568
6812
|
#
|
6569
6813
|
# @return [Boolean]
|
6570
6814
|
#
|
6571
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6815
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#51
|
6572
6816
|
def space_before?; end
|
6573
6817
|
|
6574
6818
|
# Returns the value of attribute text.
|
6575
6819
|
#
|
6576
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6820
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#10
|
6577
6821
|
def text; end
|
6578
6822
|
|
6579
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6823
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#41
|
6580
6824
|
def to_s; end
|
6581
6825
|
|
6582
6826
|
# Returns the value of attribute type.
|
6583
6827
|
#
|
6584
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6828
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#10
|
6585
6829
|
def type; end
|
6586
6830
|
|
6587
6831
|
class << self
|
6588
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6832
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#12
|
6589
6833
|
def from_parser_token(parser_token); end
|
6590
6834
|
end
|
6591
6835
|
end
|
6592
6836
|
|
6837
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#8
|
6838
|
+
RuboCop::AST::Token::LEFT_CURLY_TYPES = T.let(T.unsafe(nil), Array)
|
6839
|
+
|
6593
6840
|
# source://rubocop-ast//lib/rubocop/ast/token.rb#7
|
6594
6841
|
RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array)
|
6595
6842
|
|
@@ -7071,6 +7318,18 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
|
|
7071
7318
|
def keyword; end
|
7072
7319
|
end
|
7073
7320
|
|
7321
|
+
# A node extension for `lvar`, `ivar`, `cvar` and `gvar` nodes.
|
7322
|
+
# This will be used in place of a plain node when the builder constructs
|
7323
|
+
# the AST, making its methods available to all assignment nodes within RuboCop.
|
7324
|
+
#
|
7325
|
+
# source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#8
|
7326
|
+
class RuboCop::AST::VarNode < ::RuboCop::AST::Node
|
7327
|
+
# @return [Symbol] The name of the variable.
|
7328
|
+
#
|
7329
|
+
# source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#10
|
7330
|
+
def name; end
|
7331
|
+
end
|
7332
|
+
|
7074
7333
|
# source://rubocop-ast//lib/rubocop/ast/version.rb#5
|
7075
7334
|
module RuboCop::AST::Version; end
|
7076
7335
|
|
@@ -7170,3 +7429,346 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
|
|
7170
7429
|
# source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#16
|
7171
7430
|
def node_parts; end
|
7172
7431
|
end
|
7432
|
+
|
7433
|
+
class RuboCop::CommentConfig
|
7434
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#34
|
7435
|
+
def initialize(processed_source); end
|
7436
|
+
|
7437
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#63
|
7438
|
+
def comment_only_line?(line_number); end
|
7439
|
+
|
7440
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7441
|
+
def config(*_arg0, **_arg1, &_arg2); end
|
7442
|
+
|
7443
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#51
|
7444
|
+
def cop_disabled_line_ranges; end
|
7445
|
+
|
7446
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#39
|
7447
|
+
def cop_enabled_at_line?(cop, line_number); end
|
7448
|
+
|
7449
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#47
|
7450
|
+
def cop_opted_in?(cop); end
|
7451
|
+
|
7452
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#55
|
7453
|
+
def extra_enabled_comments; end
|
7454
|
+
|
7455
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#30
|
7456
|
+
def processed_source; end
|
7457
|
+
|
7458
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7459
|
+
def registry(*_arg0, **_arg1, &_arg2); end
|
7460
|
+
|
7461
|
+
private
|
7462
|
+
|
7463
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#96
|
7464
|
+
def analyze; end
|
7465
|
+
|
7466
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#124
|
7467
|
+
def analyze_cop(analysis, directive); end
|
7468
|
+
|
7469
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#144
|
7470
|
+
def analyze_disabled(analysis, directive); end
|
7471
|
+
|
7472
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#155
|
7473
|
+
def analyze_rest(analysis, directive); end
|
7474
|
+
|
7475
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#135
|
7476
|
+
def analyze_single_line(analysis, directive); end
|
7477
|
+
|
7478
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#164
|
7479
|
+
def cop_line_ranges(analysis); end
|
7480
|
+
|
7481
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#170
|
7482
|
+
def each_directive; end
|
7483
|
+
|
7484
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#69
|
7485
|
+
def extra_enabled_comments_with_names(extras:, names:); end
|
7486
|
+
|
7487
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#190
|
7488
|
+
def handle_enable_all(directive, names, extras); end
|
7489
|
+
|
7490
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#204
|
7491
|
+
def handle_switch(directive, names, extras); end
|
7492
|
+
|
7493
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#115
|
7494
|
+
def inject_disabled_cops_directives(analyses); end
|
7495
|
+
|
7496
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#183
|
7497
|
+
def non_comment_token_line_numbers; end
|
7498
|
+
|
7499
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#83
|
7500
|
+
def opt_in_cops; end
|
7501
|
+
|
7502
|
+
# source://rubocop/1.71.2/lib/rubocop/comment_config.rb#179
|
7503
|
+
def qualified_cop_name(cop_name); end
|
7504
|
+
end
|
7505
|
+
|
7506
|
+
class RuboCop::Config
|
7507
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#31
|
7508
|
+
def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
|
7509
|
+
|
7510
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7511
|
+
def [](*_arg0, **_arg1, &_arg2); end
|
7512
|
+
|
7513
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7514
|
+
def []=(*_arg0, **_arg1, &_arg2); end
|
7515
|
+
|
7516
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#179
|
7517
|
+
def active_support_extensions_enabled?; end
|
7518
|
+
|
7519
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#94
|
7520
|
+
def add_excludes_from_higher_level(highest_config); end
|
7521
|
+
|
7522
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#206
|
7523
|
+
def allowed_camel_case_file?(file); end
|
7524
|
+
|
7525
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#250
|
7526
|
+
def base_dir_for_path_parameters; end
|
7527
|
+
|
7528
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#280
|
7529
|
+
def bundler_lock_file_path; end
|
7530
|
+
|
7531
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#52
|
7532
|
+
def check; end
|
7533
|
+
|
7534
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#147
|
7535
|
+
def clusivity_config_for_badge?(badge); end
|
7536
|
+
|
7537
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#167
|
7538
|
+
def cop_enabled?(name); end
|
7539
|
+
|
7540
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7541
|
+
def delete(*_arg0, **_arg1, &_arg2); end
|
7542
|
+
|
7543
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#106
|
7544
|
+
def deprecation_check; end
|
7545
|
+
|
7546
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7547
|
+
def dig(*_arg0, **_arg1, &_arg2); end
|
7548
|
+
|
7549
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#171
|
7550
|
+
def disabled_new_cops?; end
|
7551
|
+
|
7552
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7553
|
+
def each(*_arg0, **_arg1, &_arg2); end
|
7554
|
+
|
7555
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7556
|
+
def each_key(*_arg0, **_arg1, &_arg2); end
|
7557
|
+
|
7558
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#175
|
7559
|
+
def enabled_new_cops?; end
|
7560
|
+
|
7561
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7562
|
+
def fetch(*_arg0, **_arg1, &_arg2); end
|
7563
|
+
|
7564
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#228
|
7565
|
+
def file_to_exclude?(file); end
|
7566
|
+
|
7567
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#187
|
7568
|
+
def file_to_include?(file); end
|
7569
|
+
|
7570
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#163
|
7571
|
+
def for_all_cops; end
|
7572
|
+
|
7573
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#133
|
7574
|
+
def for_badge(badge); end
|
7575
|
+
|
7576
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#120
|
7577
|
+
def for_cop(cop); end
|
7578
|
+
|
7579
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#158
|
7580
|
+
def for_department(department_name); end
|
7581
|
+
|
7582
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#127
|
7583
|
+
def for_enabled_cop(cop); end
|
7584
|
+
|
7585
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#305
|
7586
|
+
def gem_versions_in_target; end
|
7587
|
+
|
7588
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#309
|
7589
|
+
def inspect; end
|
7590
|
+
|
7591
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#77
|
7592
|
+
def internal?; end
|
7593
|
+
|
7594
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7595
|
+
def key?(*_arg0, **_arg1, &_arg2); end
|
7596
|
+
|
7597
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7598
|
+
def keys(*_arg0, **_arg1, &_arg2); end
|
7599
|
+
|
7600
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#48
|
7601
|
+
def loaded_features; end
|
7602
|
+
|
7603
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#21
|
7604
|
+
def loaded_path; end
|
7605
|
+
|
7606
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#82
|
7607
|
+
def make_excludes_absolute; end
|
7608
|
+
|
7609
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7610
|
+
def map(*_arg0, **_arg1, &_arg2); end
|
7611
|
+
|
7612
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7613
|
+
def merge(*_arg0, **_arg1, &_arg2); end
|
7614
|
+
|
7615
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#260
|
7616
|
+
def parser_engine; end
|
7617
|
+
|
7618
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#241
|
7619
|
+
def path_relative_to_config(path); end
|
7620
|
+
|
7621
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#237
|
7622
|
+
def patterns_to_exclude; end
|
7623
|
+
|
7624
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#233
|
7625
|
+
def patterns_to_include; end
|
7626
|
+
|
7627
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#291
|
7628
|
+
def pending_cops; end
|
7629
|
+
|
7630
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#220
|
7631
|
+
def possibly_include_hidden?; end
|
7632
|
+
|
7633
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7634
|
+
def replace(*_arg0, **_arg1, &_arg2); end
|
7635
|
+
|
7636
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#72
|
7637
|
+
def signature; end
|
7638
|
+
|
7639
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#275
|
7640
|
+
def smart_loaded_path; end
|
7641
|
+
|
7642
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#183
|
7643
|
+
def string_literals_frozen_by_default?; end
|
7644
|
+
|
7645
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#264
|
7646
|
+
def target_rails_version; end
|
7647
|
+
|
7648
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7649
|
+
def target_ruby_version(*_arg0, **_arg1, &_arg2); end
|
7650
|
+
|
7651
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7652
|
+
def to_h(*_arg0, **_arg1, &_arg2); end
|
7653
|
+
|
7654
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7655
|
+
def to_hash(*_arg0, **_arg1, &_arg2); end
|
7656
|
+
|
7657
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#68
|
7658
|
+
def to_s; end
|
7659
|
+
|
7660
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7661
|
+
def transform_values(*_arg0, **_arg1, &_arg2); end
|
7662
|
+
|
7663
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7664
|
+
def validate(*_arg0, **_arg1, &_arg2); end
|
7665
|
+
|
7666
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#59
|
7667
|
+
def validate_after_resolution; end
|
7668
|
+
|
7669
|
+
private
|
7670
|
+
|
7671
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#359
|
7672
|
+
def department_of(qualified_cop_name); end
|
7673
|
+
|
7674
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#347
|
7675
|
+
def enable_cop?(qualified_cop_name, cop_options); end
|
7676
|
+
|
7677
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#334
|
7678
|
+
def gem_version_to_major_minor_float(gem_version); end
|
7679
|
+
|
7680
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#340
|
7681
|
+
def read_gem_versions_from_target_lockfile; end
|
7682
|
+
|
7683
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#321
|
7684
|
+
def read_rails_version_from_bundler_lock_file; end
|
7685
|
+
|
7686
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#316
|
7687
|
+
def target_rails_version_from_bundler_lock_file; end
|
7688
|
+
|
7689
|
+
class << self
|
7690
|
+
# source://rubocop/1.71.2/lib/rubocop/config.rb#23
|
7691
|
+
def create(hash, path, check: T.unsafe(nil)); end
|
7692
|
+
end
|
7693
|
+
end
|
7694
|
+
|
7695
|
+
class RuboCop::ConfigValidator
|
7696
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#28
|
7697
|
+
def initialize(config); end
|
7698
|
+
|
7699
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7700
|
+
def for_all_cops(*_arg0, **_arg1, &_arg2); end
|
7701
|
+
|
7702
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
7703
|
+
def smart_loaded_path(*_arg0, **_arg1, &_arg2); end
|
7704
|
+
|
7705
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#65
|
7706
|
+
def target_ruby_version; end
|
7707
|
+
|
7708
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#34
|
7709
|
+
def validate; end
|
7710
|
+
|
7711
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#61
|
7712
|
+
def validate_after_resolution; end
|
7713
|
+
|
7714
|
+
private
|
7715
|
+
|
7716
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#100
|
7717
|
+
def alert_about_unrecognized_cops(invalid_cop_names); end
|
7718
|
+
|
7719
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#263
|
7720
|
+
def check_cop_config_value(hash, parent = T.unsafe(nil)); end
|
7721
|
+
|
7722
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#73
|
7723
|
+
def check_obsoletions; end
|
7724
|
+
|
7725
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#80
|
7726
|
+
def check_target_ruby; end
|
7727
|
+
|
7728
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#204
|
7729
|
+
def each_invalid_parameter(cop_name); end
|
7730
|
+
|
7731
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#116
|
7732
|
+
def list_unknown_cops(invalid_cop_names); end
|
7733
|
+
|
7734
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#283
|
7735
|
+
def param_error_message(parent, key, value, supposed_values); end
|
7736
|
+
|
7737
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#251
|
7738
|
+
def reject_conflicting_safe_settings; end
|
7739
|
+
|
7740
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#242
|
7741
|
+
def reject_mutually_exclusive_defaults; end
|
7742
|
+
|
7743
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#138
|
7744
|
+
def suggestion(name); end
|
7745
|
+
|
7746
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#71
|
7747
|
+
def target_ruby; end
|
7748
|
+
|
7749
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#216
|
7750
|
+
def validate_enforced_styles(valid_cop_names); end
|
7751
|
+
|
7752
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#165
|
7753
|
+
def validate_new_cops_parameter; end
|
7754
|
+
|
7755
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#190
|
7756
|
+
def validate_parameter_names(valid_cop_names); end
|
7757
|
+
|
7758
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#176
|
7759
|
+
def validate_parameter_shape(valid_cop_names); end
|
7760
|
+
|
7761
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#236
|
7762
|
+
def validate_support_and_has_list(name, formats, valid); end
|
7763
|
+
|
7764
|
+
# source://rubocop/1.71.2/lib/rubocop/config_validator.rb#154
|
7765
|
+
def validate_syntax_cop; end
|
7766
|
+
end
|
7767
|
+
|
7768
|
+
# Similar to `Forwardable#def_delegators`, but simpler & faster
|
7769
|
+
#
|
7770
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#5
|
7771
|
+
module RuboCop::SimpleForwardable
|
7772
|
+
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#6
|
7773
|
+
def def_delegators(accessor, *methods); end
|
7774
|
+
end
|