activerecord-ejection_seat 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +11 -8
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +42 -55
- data/README.md +16 -6
- data/Rakefile +6 -6
- data/activerecord-ejection_seat.gemspec +40 -0
- data/lib/activerecord-ejection_seat/attributes_builder.rb +42 -0
- data/lib/activerecord-ejection_seat/ejectable.rb +7 -10
- data/lib/activerecord-ejection_seat/props_builder.rb +35 -23
- data/lib/activerecord-ejection_seat/version.rb +2 -2
- data/lib/activerecord-ejection_seat.rb +6 -3
- data/sorbet/rbi/gems/activemodel@7.0.4.1.rbi +6022 -0
- data/sorbet/rbi/gems/activerecord@7.0.4.1.rbi +37791 -0
- data/sorbet/rbi/gems/activesupport@7.0.4.1.rbi +18127 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11626 -2
- data/sorbet/rbi/gems/minitest@5.17.0.rbi +2319 -0
- data/sorbet/rbi/gems/{parser@3.1.3.0.rbi → parser@3.2.0.0.rbi} +907 -821
- data/sorbet/rbi/gems/{prettier_print@1.1.0.rbi → prettier_print@1.2.0.rbi} +0 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.24.0.rbi → rubocop-ast@1.24.1.rbi} +702 -458
- data/sorbet/rbi/gems/rubocop-minitest@0.26.1.rbi +2320 -0
- data/sorbet/rbi/gems/{rubocop@1.41.0.rbi → rubocop@1.43.0.rbi} +2743 -625
- data/sorbet/rbi/gems/{ruby-lsp@0.3.7.rbi → ruby-lsp@0.3.8.rbi} +2 -1
- data/sorbet/rbi/gems/{sqlite3@1.5.4.rbi → sqlite3@1.6.0.rbi} +73 -0
- data/sorbet/rbi/gems/{syntax_tree@4.3.0.rbi → syntax_tree@5.2.0.rbi} +0 -0
- data/sorbet/rbi/gems/{tapioca@0.10.4.rbi → tapioca@0.10.5.rbi} +279 -96
- data/sorbet/rbi/gems/{unicode-display_width@2.3.0.rbi → unicode-display_width@2.4.2.rbi} +26 -7
- data/sorbet/rbi/gems/{unparser@0.6.5.rbi → unparser@0.6.7.rbi} +323 -64
- data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.8.0.rbi} +91 -41
- data/sorbet/rbi/shims/location.rbi +13 -0
- data/sorbet/rbi/shims/post.rbi +16 -0
- data/sorbet/rbi/shims/user.rbi +19 -0
- data/sorbet/rbi/todo.rbi +0 -4
- data/sorbet/tapioca/require.rb +16 -2
- metadata +29 -27
- data/sorbet/rbi/gems/activemodel@7.0.4.rbi +0 -8
- data/sorbet/rbi/gems/activerecord@7.0.4.rbi +0 -11
- data/sorbet/rbi/gems/activesupport@7.0.4.rbi +0 -93
- data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -8
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +0 -10588
- data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +0 -7817
- data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +0 -4994
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +0 -1477
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -10
- data/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi +0 -7650
@@ -4,9 +4,16 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `rubocop-ast` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem rubocop-ast`.
|
6
6
|
|
7
|
+
class Parser::Source::Range
|
8
|
+
include ::RuboCop::AST::Ext::Range
|
9
|
+
end
|
10
|
+
|
11
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#3
|
7
12
|
module RuboCop; end
|
8
13
|
|
9
14
|
# ...
|
15
|
+
#
|
16
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#4
|
10
17
|
module RuboCop::AST
|
11
18
|
extend ::RuboCop::AST::RuboCopCompatibility
|
12
19
|
end
|
@@ -14,6 +21,8 @@ end
|
|
14
21
|
# A node extension for `alias` nodes. This will be used in place of a plain
|
15
22
|
# node when the builder constructs the AST, making its methods available
|
16
23
|
# to all `alias` nodes within RuboCop.
|
24
|
+
#
|
25
|
+
# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#8
|
17
26
|
class RuboCop::AST::AliasNode < ::RuboCop::AST::Node
|
18
27
|
# Returns the new identifier as specified by the `alias`.
|
19
28
|
#
|
@@ -33,6 +42,8 @@ end
|
|
33
42
|
# A node extension for `op_asgn` nodes.
|
34
43
|
# This will be used in place of a plain node when the builder constructs
|
35
44
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
45
|
+
#
|
46
|
+
# source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#8
|
36
47
|
class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode
|
37
48
|
# The operator being used for assignment as a symbol.
|
38
49
|
#
|
@@ -45,6 +56,8 @@ end
|
|
45
56
|
# A node extension for `until` nodes. This will be used in place of a plain
|
46
57
|
# node when the builder constructs the AST, making its methods available
|
47
58
|
# to all `until` nodes within RuboCop.
|
59
|
+
#
|
60
|
+
# source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#8
|
48
61
|
class RuboCop::AST::AndNode < ::RuboCop::AST::Node
|
49
62
|
include ::RuboCop::AST::BinaryOperatorNode
|
50
63
|
include ::RuboCop::AST::PredicateOperatorNode
|
@@ -70,6 +83,8 @@ end
|
|
70
83
|
# `kwrestarg`, `blockarg`, `shadowarg` and `forward_arg` nodes.
|
71
84
|
# This will be used in place of a plain node when the builder constructs
|
72
85
|
# the AST, making its methods available to all `arg` nodes within RuboCop.
|
86
|
+
#
|
87
|
+
# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#9
|
73
88
|
class RuboCop::AST::ArgNode < ::RuboCop::AST::Node
|
74
89
|
# Checks whether the argument has a default value
|
75
90
|
#
|
@@ -96,6 +111,8 @@ end
|
|
96
111
|
# A node extension for `args` nodes. This will be used in place of a plain
|
97
112
|
# node when the builder constructs the AST, making its methods available
|
98
113
|
# to all `args` nodes within RuboCop.
|
114
|
+
#
|
115
|
+
# source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#8
|
99
116
|
class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node
|
100
117
|
include ::RuboCop::AST::CollectionNode
|
101
118
|
|
@@ -132,6 +149,8 @@ end
|
|
132
149
|
# A node extension for `array` nodes. This will be used in place of a plain
|
133
150
|
# node when the builder constructs the AST, making its methods available
|
134
151
|
# to all `array` nodes within RuboCop.
|
152
|
+
#
|
153
|
+
# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#8
|
135
154
|
class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
|
136
155
|
# Checks whether the `array` literal is delimited by either percent or
|
137
156
|
# square brackets
|
@@ -178,6 +197,8 @@ RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
|
|
178
197
|
# A node extension for `lvasgn`, `ivasgn`, `cvasgn`, and `gvasgn` nodes.
|
179
198
|
# This will be used in place of a plain node when the builder constructs
|
180
199
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
200
|
+
#
|
201
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#8
|
181
202
|
class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
|
182
203
|
# The expression being assigned to the variable.
|
183
204
|
#
|
@@ -196,6 +217,8 @@ end
|
|
196
217
|
|
197
218
|
# Common functionality for primitive literal nodes: `sym`, `str`,
|
198
219
|
# `int`, `float`, ...
|
220
|
+
#
|
221
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7
|
199
222
|
module RuboCop::AST::BasicLiteralNode
|
200
223
|
# Returns the value of the literal.
|
201
224
|
#
|
@@ -207,6 +230,8 @@ end
|
|
207
230
|
|
208
231
|
# Common functionality for nodes that are binary operations:
|
209
232
|
# `or`, `and` ...
|
233
|
+
#
|
234
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#7
|
210
235
|
module RuboCop::AST::BinaryOperatorNode
|
211
236
|
# Returns all of the conditions, including nested conditions,
|
212
237
|
# of the binary operation.
|
@@ -240,6 +265,8 @@ end
|
|
240
265
|
#
|
241
266
|
# A `block` node is essentially a method send with a block. Parser nests
|
242
267
|
# the `send` node inside the `block` node.
|
268
|
+
#
|
269
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#11
|
243
270
|
class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
244
271
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
245
272
|
|
@@ -368,6 +395,8 @@ RuboCop::AST::BlockNode::VOID_CONTEXT_METHODS = T.let(T.unsafe(nil), Array)
|
|
368
395
|
# A node extension for `break` nodes. This will be used in place of a
|
369
396
|
# plain node when the builder constructs the AST, making its methods
|
370
397
|
# available to all `break` nodes within RuboCop.
|
398
|
+
#
|
399
|
+
# source://rubocop-ast//lib/rubocop/ast/node/break_node.rb#8
|
371
400
|
class RuboCop::AST::BreakNode < ::RuboCop::AST::Node
|
372
401
|
include ::RuboCop::AST::ParameterizedNode
|
373
402
|
include ::RuboCop::AST::ParameterizedNode::WrappedArguments
|
@@ -384,6 +413,8 @@ end
|
|
384
413
|
# require 'parser/ruby25'
|
385
414
|
# parser = Parser::Ruby25.new(builder)
|
386
415
|
# root_node = parser.parse(buffer)
|
416
|
+
#
|
417
|
+
# source://rubocop-ast//lib/rubocop/ast/builder.rb#16
|
387
418
|
class RuboCop::AST::Builder < ::Parser::Builders::Default
|
388
419
|
# Generates {Node} from the given information.
|
389
420
|
#
|
@@ -412,6 +443,8 @@ RuboCop::AST::Builder::NODE_MAP = T.let(T.unsafe(nil), Hash)
|
|
412
443
|
# A node extension for `case_match` nodes. This will be used in place of
|
413
444
|
# a plain node when the builder constructs the AST, making its methods
|
414
445
|
# available to all `case_match` nodes within RuboCop.
|
446
|
+
#
|
447
|
+
# source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#8
|
415
448
|
class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node
|
416
449
|
include ::RuboCop::AST::ConditionalNode
|
417
450
|
|
@@ -463,6 +496,8 @@ end
|
|
463
496
|
# A node extension for `case` nodes. This will be used in place of a plain
|
464
497
|
# node when the builder constructs the AST, making its methods available
|
465
498
|
# to all `case` nodes within RuboCop.
|
499
|
+
#
|
500
|
+
# source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#8
|
466
501
|
class RuboCop::AST::CaseNode < ::RuboCop::AST::Node
|
467
502
|
include ::RuboCop::AST::ConditionalNode
|
468
503
|
|
@@ -513,6 +548,8 @@ end
|
|
513
548
|
# A node extension for `casgn` nodes.
|
514
549
|
# This will be used in place of a plain node when the builder constructs
|
515
550
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
551
|
+
#
|
552
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8
|
516
553
|
class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
|
517
554
|
# The expression being assigned to the variable.
|
518
555
|
#
|
@@ -539,6 +576,8 @@ end
|
|
539
576
|
# A node extension for `class` nodes. This will be used in place of a plain
|
540
577
|
# node when the builder constructs the AST, making its methods available
|
541
578
|
# to all `class` nodes within RuboCop.
|
579
|
+
#
|
580
|
+
# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#8
|
542
581
|
class RuboCop::AST::ClassNode < ::RuboCop::AST::Node
|
543
582
|
# The body of this `class` node.
|
544
583
|
#
|
@@ -563,412 +602,414 @@ class RuboCop::AST::ClassNode < ::RuboCop::AST::Node
|
|
563
602
|
end
|
564
603
|
|
565
604
|
# A mixin that helps give collection nodes array polymorphism.
|
605
|
+
#
|
606
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#6
|
566
607
|
module RuboCop::AST::CollectionNode
|
567
608
|
extend ::Forwardable
|
568
609
|
|
569
|
-
# source://forwardable/1.3.
|
610
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
570
611
|
def &(*args, **_arg1, &block); end
|
571
612
|
|
572
|
-
# source://forwardable/1.3.
|
613
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
573
614
|
def *(*args, **_arg1, &block); end
|
574
615
|
|
575
|
-
# source://forwardable/1.3.
|
616
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
576
617
|
def +(*args, **_arg1, &block); end
|
577
618
|
|
578
|
-
# source://forwardable/1.3.
|
619
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
579
620
|
def -(*args, **_arg1, &block); end
|
580
621
|
|
581
|
-
# source://forwardable/1.3.
|
622
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
582
623
|
def <<(*args, **_arg1, &block); end
|
583
624
|
|
584
|
-
# source://forwardable/1.3.
|
625
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
585
626
|
def [](*args, **_arg1, &block); end
|
586
627
|
|
587
|
-
# source://forwardable/1.3.
|
628
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
588
629
|
def []=(*args, **_arg1, &block); end
|
589
630
|
|
590
|
-
# source://forwardable/1.3.
|
631
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
591
632
|
def all?(*args, **_arg1, &block); end
|
592
633
|
|
593
|
-
# source://forwardable/1.3.
|
634
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
594
635
|
def any?(*args, **_arg1, &block); end
|
595
636
|
|
596
|
-
# source://forwardable/1.3.
|
637
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
597
638
|
def append(*args, **_arg1, &block); end
|
598
639
|
|
599
|
-
# source://forwardable/1.3.
|
640
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
600
641
|
def assoc(*args, **_arg1, &block); end
|
601
642
|
|
602
|
-
# source://forwardable/1.3.
|
643
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
603
644
|
def at(*args, **_arg1, &block); end
|
604
645
|
|
605
|
-
# source://forwardable/1.3.
|
646
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
606
647
|
def bsearch(*args, **_arg1, &block); end
|
607
648
|
|
608
|
-
# source://forwardable/1.3.
|
649
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
609
650
|
def bsearch_index(*args, **_arg1, &block); end
|
610
651
|
|
611
|
-
# source://forwardable/1.3.
|
652
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
612
653
|
def chain(*args, **_arg1, &block); end
|
613
654
|
|
614
|
-
# source://forwardable/1.3.
|
655
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
615
656
|
def chunk(*args, **_arg1, &block); end
|
616
657
|
|
617
|
-
# source://forwardable/1.3.
|
658
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
618
659
|
def chunk_while(*args, **_arg1, &block); end
|
619
660
|
|
620
|
-
# source://forwardable/1.3.
|
661
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
621
662
|
def clear(*args, **_arg1, &block); end
|
622
663
|
|
623
|
-
# source://forwardable/1.3.
|
664
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
624
665
|
def collect(*args, **_arg1, &block); end
|
625
666
|
|
626
|
-
# source://forwardable/1.3.
|
667
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
627
668
|
def collect!(*args, **_arg1, &block); end
|
628
669
|
|
629
|
-
# source://forwardable/1.3.
|
670
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
630
671
|
def collect_concat(*args, **_arg1, &block); end
|
631
672
|
|
632
|
-
# source://forwardable/1.3.
|
673
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
633
674
|
def combination(*args, **_arg1, &block); end
|
634
675
|
|
635
|
-
# source://forwardable/1.3.
|
676
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
636
677
|
def compact(*args, **_arg1, &block); end
|
637
678
|
|
638
|
-
# source://forwardable/1.3.
|
679
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
639
680
|
def compact!(*args, **_arg1, &block); end
|
640
681
|
|
641
|
-
# source://forwardable/1.3.
|
682
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
642
683
|
def concat(*args, **_arg1, &block); end
|
643
684
|
|
644
|
-
# source://forwardable/1.3.
|
685
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
645
686
|
def count(*args, **_arg1, &block); end
|
646
687
|
|
647
|
-
# source://forwardable/1.3.
|
688
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
648
689
|
def cycle(*args, **_arg1, &block); end
|
649
690
|
|
650
|
-
# source://forwardable/1.3.
|
691
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
651
692
|
def deconstruct(*args, **_arg1, &block); end
|
652
693
|
|
653
|
-
# source://forwardable/1.3.
|
694
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
654
695
|
def delete(*args, **_arg1, &block); end
|
655
696
|
|
656
|
-
# source://forwardable/1.3.
|
697
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
657
698
|
def delete_at(*args, **_arg1, &block); end
|
658
699
|
|
659
|
-
# source://forwardable/1.3.
|
700
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
660
701
|
def delete_if(*args, **_arg1, &block); end
|
661
702
|
|
662
|
-
# source://forwardable/1.3.
|
703
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
663
704
|
def detect(*args, **_arg1, &block); end
|
664
705
|
|
665
|
-
# source://forwardable/1.3.
|
706
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
666
707
|
def difference(*args, **_arg1, &block); end
|
667
708
|
|
668
|
-
# source://forwardable/1.3.
|
709
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
669
710
|
def dig(*args, **_arg1, &block); end
|
670
711
|
|
671
|
-
# source://forwardable/1.3.
|
712
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
672
713
|
def drop(*args, **_arg1, &block); end
|
673
714
|
|
674
|
-
# source://forwardable/1.3.
|
715
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
675
716
|
def drop_while(*args, **_arg1, &block); end
|
676
717
|
|
677
|
-
# source://forwardable/1.3.
|
718
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
678
719
|
def each(*args, **_arg1, &block); end
|
679
720
|
|
680
|
-
# source://forwardable/1.3.
|
721
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
681
722
|
def each_cons(*args, **_arg1, &block); end
|
682
723
|
|
683
|
-
# source://forwardable/1.3.
|
724
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
684
725
|
def each_entry(*args, **_arg1, &block); end
|
685
726
|
|
686
|
-
# source://forwardable/1.3.
|
727
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
687
728
|
def each_index(*args, **_arg1, &block); end
|
688
729
|
|
689
|
-
# source://forwardable/1.3.
|
730
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
690
731
|
def each_slice(*args, **_arg1, &block); end
|
691
732
|
|
692
|
-
# source://forwardable/1.3.
|
733
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
693
734
|
def each_with_index(*args, **_arg1, &block); end
|
694
735
|
|
695
|
-
# source://forwardable/1.3.
|
736
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
696
737
|
def each_with_object(*args, **_arg1, &block); end
|
697
738
|
|
698
|
-
# source://forwardable/1.3.
|
739
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
699
740
|
def empty?(*args, **_arg1, &block); end
|
700
741
|
|
701
|
-
# source://forwardable/1.3.
|
742
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
702
743
|
def entries(*args, **_arg1, &block); end
|
703
744
|
|
704
|
-
# source://forwardable/1.3.
|
745
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
705
746
|
def fetch(*args, **_arg1, &block); end
|
706
747
|
|
707
|
-
# source://forwardable/1.3.
|
748
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
708
749
|
def fill(*args, **_arg1, &block); end
|
709
750
|
|
710
|
-
# source://forwardable/1.3.
|
751
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
711
752
|
def filter(*args, **_arg1, &block); end
|
712
753
|
|
713
|
-
# source://forwardable/1.3.
|
754
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
714
755
|
def filter!(*args, **_arg1, &block); end
|
715
756
|
|
716
|
-
# source://forwardable/1.3.
|
757
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
717
758
|
def filter_map(*args, **_arg1, &block); end
|
718
759
|
|
719
|
-
# source://forwardable/1.3.
|
760
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
720
761
|
def find(*args, **_arg1, &block); end
|
721
762
|
|
722
|
-
# source://forwardable/1.3.
|
763
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
723
764
|
def find_all(*args, **_arg1, &block); end
|
724
765
|
|
725
|
-
# source://forwardable/1.3.
|
766
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
726
767
|
def find_index(*args, **_arg1, &block); end
|
727
768
|
|
728
|
-
# source://forwardable/1.3.
|
769
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
729
770
|
def first(*args, **_arg1, &block); end
|
730
771
|
|
731
|
-
# source://forwardable/1.3.
|
772
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
732
773
|
def flat_map(*args, **_arg1, &block); end
|
733
774
|
|
734
|
-
# source://forwardable/1.3.
|
775
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
735
776
|
def flatten(*args, **_arg1, &block); end
|
736
777
|
|
737
|
-
# source://forwardable/1.3.
|
778
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
738
779
|
def flatten!(*args, **_arg1, &block); end
|
739
780
|
|
740
|
-
# source://forwardable/1.3.
|
781
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
741
782
|
def grep(*args, **_arg1, &block); end
|
742
783
|
|
743
|
-
# source://forwardable/1.3.
|
784
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
744
785
|
def grep_v(*args, **_arg1, &block); end
|
745
786
|
|
746
|
-
# source://forwardable/1.3.
|
787
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
747
788
|
def group_by(*args, **_arg1, &block); end
|
748
789
|
|
749
|
-
# source://forwardable/1.3.
|
790
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
750
791
|
def include?(*args, **_arg1, &block); end
|
751
792
|
|
752
|
-
# source://forwardable/1.3.
|
793
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
753
794
|
def index(*args, **_arg1, &block); end
|
754
795
|
|
755
|
-
# source://forwardable/1.3.
|
796
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
756
797
|
def inject(*args, **_arg1, &block); end
|
757
798
|
|
758
|
-
# source://forwardable/1.3.
|
799
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
759
800
|
def insert(*args, **_arg1, &block); end
|
760
801
|
|
761
|
-
# source://forwardable/1.3.
|
802
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
762
803
|
def intersect?(*args, **_arg1, &block); end
|
763
804
|
|
764
|
-
# source://forwardable/1.3.
|
805
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
765
806
|
def intersection(*args, **_arg1, &block); end
|
766
807
|
|
767
|
-
# source://forwardable/1.3.
|
808
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
768
809
|
def join(*args, **_arg1, &block); end
|
769
810
|
|
770
|
-
# source://forwardable/1.3.
|
811
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
771
812
|
def keep_if(*args, **_arg1, &block); end
|
772
813
|
|
773
|
-
# source://forwardable/1.3.
|
814
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
774
815
|
def last(*args, **_arg1, &block); end
|
775
816
|
|
776
|
-
# source://forwardable/1.3.
|
817
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
777
818
|
def lazy(*args, **_arg1, &block); end
|
778
819
|
|
779
|
-
# source://forwardable/1.3.
|
820
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
780
821
|
def length(*args, **_arg1, &block); end
|
781
822
|
|
782
|
-
# source://forwardable/1.3.
|
823
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
783
824
|
def map(*args, **_arg1, &block); end
|
784
825
|
|
785
|
-
# source://forwardable/1.3.
|
826
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
786
827
|
def map!(*args, **_arg1, &block); end
|
787
828
|
|
788
|
-
# source://forwardable/1.3.
|
829
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
789
830
|
def max(*args, **_arg1, &block); end
|
790
831
|
|
791
|
-
# source://forwardable/1.3.
|
832
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
792
833
|
def max_by(*args, **_arg1, &block); end
|
793
834
|
|
794
|
-
# source://forwardable/1.3.
|
835
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
795
836
|
def member?(*args, **_arg1, &block); end
|
796
837
|
|
797
|
-
# source://forwardable/1.3.
|
838
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
798
839
|
def min(*args, **_arg1, &block); end
|
799
840
|
|
800
|
-
# source://forwardable/1.3.
|
841
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
801
842
|
def min_by(*args, **_arg1, &block); end
|
802
843
|
|
803
|
-
# source://forwardable/1.3.
|
844
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
804
845
|
def minmax(*args, **_arg1, &block); end
|
805
846
|
|
806
|
-
# source://forwardable/1.3.
|
847
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
807
848
|
def minmax_by(*args, **_arg1, &block); end
|
808
849
|
|
809
|
-
# source://forwardable/1.3.
|
850
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
810
851
|
def none?(*args, **_arg1, &block); end
|
811
852
|
|
812
|
-
# source://forwardable/1.3.
|
853
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
813
854
|
def one?(*args, **_arg1, &block); end
|
814
855
|
|
815
|
-
# source://forwardable/1.3.
|
856
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
816
857
|
def pack(*args, **_arg1, &block); end
|
817
858
|
|
818
|
-
# source://forwardable/1.3.
|
859
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
819
860
|
def partition(*args, **_arg1, &block); end
|
820
861
|
|
821
|
-
# source://forwardable/1.3.
|
862
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
822
863
|
def permutation(*args, **_arg1, &block); end
|
823
864
|
|
824
|
-
# source://forwardable/1.3.
|
865
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
825
866
|
def place(*args, **_arg1, &block); end
|
826
867
|
|
827
|
-
# source://forwardable/1.3.
|
868
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
828
869
|
def pop(*args, **_arg1, &block); end
|
829
870
|
|
830
|
-
# source://forwardable/1.3.
|
871
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
831
872
|
def prepend(*args, **_arg1, &block); end
|
832
873
|
|
833
|
-
# source://forwardable/1.3.
|
874
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
834
875
|
def product(*args, **_arg1, &block); end
|
835
876
|
|
836
|
-
# source://forwardable/1.3.
|
877
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
837
878
|
def push(*args, **_arg1, &block); end
|
838
879
|
|
839
|
-
# source://forwardable/1.3.
|
880
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
840
881
|
def rassoc(*args, **_arg1, &block); end
|
841
882
|
|
842
|
-
# source://forwardable/1.3.
|
883
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
843
884
|
def reduce(*args, **_arg1, &block); end
|
844
885
|
|
845
|
-
# source://forwardable/1.3.
|
886
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
846
887
|
def reject(*args, **_arg1, &block); end
|
847
888
|
|
848
|
-
# source://forwardable/1.3.
|
889
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
849
890
|
def reject!(*args, **_arg1, &block); end
|
850
891
|
|
851
|
-
# source://forwardable/1.3.
|
892
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
852
893
|
def repeated_combination(*args, **_arg1, &block); end
|
853
894
|
|
854
|
-
# source://forwardable/1.3.
|
895
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
855
896
|
def repeated_permutation(*args, **_arg1, &block); end
|
856
897
|
|
857
|
-
# source://forwardable/1.3.
|
898
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
858
899
|
def replace(*args, **_arg1, &block); end
|
859
900
|
|
860
|
-
# source://forwardable/1.3.
|
901
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
861
902
|
def reverse(*args, **_arg1, &block); end
|
862
903
|
|
863
|
-
# source://forwardable/1.3.
|
904
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
864
905
|
def reverse!(*args, **_arg1, &block); end
|
865
906
|
|
866
|
-
# source://forwardable/1.3.
|
907
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
867
908
|
def reverse_each(*args, **_arg1, &block); end
|
868
909
|
|
869
|
-
# source://forwardable/1.3.
|
910
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
870
911
|
def rindex(*args, **_arg1, &block); end
|
871
912
|
|
872
|
-
# source://forwardable/1.3.
|
913
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
873
914
|
def rotate(*args, **_arg1, &block); end
|
874
915
|
|
875
|
-
# source://forwardable/1.3.
|
916
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
876
917
|
def rotate!(*args, **_arg1, &block); end
|
877
918
|
|
878
|
-
# source://forwardable/1.3.
|
919
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
879
920
|
def sample(*args, **_arg1, &block); end
|
880
921
|
|
881
|
-
# source://forwardable/1.3.
|
922
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
882
923
|
def select(*args, **_arg1, &block); end
|
883
924
|
|
884
|
-
# source://forwardable/1.3.
|
925
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
885
926
|
def select!(*args, **_arg1, &block); end
|
886
927
|
|
887
|
-
# source://forwardable/1.3.
|
928
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
888
929
|
def shelljoin(*args, **_arg1, &block); end
|
889
930
|
|
890
|
-
# source://forwardable/1.3.
|
931
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
891
932
|
def shift(*args, **_arg1, &block); end
|
892
933
|
|
893
|
-
# source://forwardable/1.3.
|
934
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
894
935
|
def shuffle(*args, **_arg1, &block); end
|
895
936
|
|
896
|
-
# source://forwardable/1.3.
|
937
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
897
938
|
def shuffle!(*args, **_arg1, &block); end
|
898
939
|
|
899
|
-
# source://forwardable/1.3.
|
940
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
900
941
|
def size(*args, **_arg1, &block); end
|
901
942
|
|
902
|
-
# source://forwardable/1.3.
|
943
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
903
944
|
def slice(*args, **_arg1, &block); end
|
904
945
|
|
905
|
-
# source://forwardable/1.3.
|
946
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
906
947
|
def slice!(*args, **_arg1, &block); end
|
907
948
|
|
908
|
-
# source://forwardable/1.3.
|
949
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
909
950
|
def slice_after(*args, **_arg1, &block); end
|
910
951
|
|
911
|
-
# source://forwardable/1.3.
|
952
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
912
953
|
def slice_before(*args, **_arg1, &block); end
|
913
954
|
|
914
|
-
# source://forwardable/1.3.
|
955
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
915
956
|
def slice_when(*args, **_arg1, &block); end
|
916
957
|
|
917
|
-
# source://forwardable/1.3.
|
958
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
918
959
|
def sort(*args, **_arg1, &block); end
|
919
960
|
|
920
|
-
# source://forwardable/1.3.
|
961
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
921
962
|
def sort!(*args, **_arg1, &block); end
|
922
963
|
|
923
|
-
# source://forwardable/1.3.
|
964
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
924
965
|
def sort_by(*args, **_arg1, &block); end
|
925
966
|
|
926
|
-
# source://forwardable/1.3.
|
967
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
927
968
|
def sort_by!(*args, **_arg1, &block); end
|
928
969
|
|
929
|
-
# source://forwardable/1.3.
|
970
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
930
971
|
def sum(*args, **_arg1, &block); end
|
931
972
|
|
932
|
-
# source://forwardable/1.3.
|
973
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
933
974
|
def take(*args, **_arg1, &block); end
|
934
975
|
|
935
|
-
# source://forwardable/1.3.
|
976
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
936
977
|
def take_while(*args, **_arg1, &block); end
|
937
978
|
|
938
|
-
# source://forwardable/1.3.
|
979
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
939
980
|
def tally(*args, **_arg1, &block); end
|
940
981
|
|
941
|
-
# source://forwardable/1.3.
|
982
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
942
983
|
def to_ary(*args, **_arg1, &block); end
|
943
984
|
|
944
|
-
# source://forwardable/1.3.
|
985
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
945
986
|
def to_h(*args, **_arg1, &block); end
|
946
987
|
|
947
|
-
# source://forwardable/1.3.
|
988
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
948
989
|
def to_set(*args, **_arg1, &block); end
|
949
990
|
|
950
|
-
# source://forwardable/1.3.
|
991
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
951
992
|
def transpose(*args, **_arg1, &block); end
|
952
993
|
|
953
|
-
# source://forwardable/1.3.
|
994
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
954
995
|
def union(*args, **_arg1, &block); end
|
955
996
|
|
956
|
-
# source://forwardable/1.3.
|
997
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
957
998
|
def uniq(*args, **_arg1, &block); end
|
958
999
|
|
959
|
-
# source://forwardable/1.3.
|
1000
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
960
1001
|
def uniq!(*args, **_arg1, &block); end
|
961
1002
|
|
962
|
-
# source://forwardable/1.3.
|
1003
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
963
1004
|
def unshift(*args, **_arg1, &block); end
|
964
1005
|
|
965
|
-
# source://forwardable/1.3.
|
1006
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
966
1007
|
def values_at(*args, **_arg1, &block); end
|
967
1008
|
|
968
|
-
# source://forwardable/1.3.
|
1009
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
969
1010
|
def zip(*args, **_arg1, &block); end
|
970
1011
|
|
971
|
-
# source://forwardable/1.3.
|
1012
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
972
1013
|
def |(*args, **_arg1, &block); end
|
973
1014
|
end
|
974
1015
|
|
@@ -979,6 +1020,8 @@ RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array)
|
|
979
1020
|
# `if`, `while`, `until`, `case`.
|
980
1021
|
# This currently doesn't include `when` nodes, because they have multiple
|
981
1022
|
# conditions, and need to be checked for that.
|
1023
|
+
#
|
1024
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#9
|
982
1025
|
module RuboCop::AST::ConditionalNode
|
983
1026
|
# Returns the body associated with the condition. This works together with
|
984
1027
|
# each node's custom destructuring method to select the correct part of
|
@@ -1015,6 +1058,8 @@ module RuboCop::AST::ConditionalNode
|
|
1015
1058
|
end
|
1016
1059
|
|
1017
1060
|
# A node extension for `const` nodes.
|
1061
|
+
#
|
1062
|
+
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6
|
1018
1063
|
class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
1019
1064
|
# @return [Boolean] if the constant starts with `::` (aka s(:cbase))
|
1020
1065
|
#
|
@@ -1061,9 +1106,23 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
|
1061
1106
|
def short_name; end
|
1062
1107
|
end
|
1063
1108
|
|
1109
|
+
# A node extension for `send` nodes. This will be used in place of a plain
|
1110
|
+
# node when the builder constructs the AST, making its methods available
|
1111
|
+
# to all `send` nodes within RuboCop.
|
1112
|
+
#
|
1113
|
+
# source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#8
|
1114
|
+
class RuboCop::AST::CsendNode < ::RuboCop::AST::SendNode
|
1115
|
+
# @return [Boolean]
|
1116
|
+
#
|
1117
|
+
# source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#9
|
1118
|
+
def send_type?; end
|
1119
|
+
end
|
1120
|
+
|
1064
1121
|
# A node extension for `def` nodes. This will be used in place of a plain
|
1065
1122
|
# node when the builder constructs the AST, making its methods available
|
1066
1123
|
# to all `def` nodes within RuboCop.
|
1124
|
+
#
|
1125
|
+
# source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#8
|
1067
1126
|
class RuboCop::AST::DefNode < ::RuboCop::AST::Node
|
1068
1127
|
include ::RuboCop::AST::ParameterizedNode
|
1069
1128
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
@@ -1125,6 +1184,8 @@ end
|
|
1125
1184
|
# A node extension for `defined?` nodes. This will be used in place of a
|
1126
1185
|
# plain node when the builder constructs the AST, making its methods
|
1127
1186
|
# available to all `send` nodes within RuboCop.
|
1187
|
+
#
|
1188
|
+
# source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#8
|
1128
1189
|
class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node
|
1129
1190
|
include ::RuboCop::AST::ParameterizedNode
|
1130
1191
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
@@ -1139,6 +1200,8 @@ end
|
|
1139
1200
|
|
1140
1201
|
# Common functionality for primitive literal nodes: `sym`, `str`,
|
1141
1202
|
# `int`, `float`, ...
|
1203
|
+
#
|
1204
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#7
|
1142
1205
|
module RuboCop::AST::Descendence
|
1143
1206
|
# Returns an array of child nodes.
|
1144
1207
|
# This is a shorthand for `node.each_child_node.to_a`.
|
@@ -1153,7 +1216,7 @@ module RuboCop::AST::Descendence
|
|
1153
1216
|
#
|
1154
1217
|
# @return [Array<Node>] an array of descendant nodes
|
1155
1218
|
#
|
1156
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
1219
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#72
|
1157
1220
|
def descendants; end
|
1158
1221
|
|
1159
1222
|
# Calls the given block for each child node.
|
@@ -1181,7 +1244,7 @@ module RuboCop::AST::Descendence
|
|
1181
1244
|
# @return [Enumerator] if no block is given
|
1182
1245
|
# @yieldparam node [Node] each descendant node
|
1183
1246
|
#
|
1184
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
1247
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#60
|
1185
1248
|
def each_descendant(*types, &block); end
|
1186
1249
|
|
1187
1250
|
# Calls the given block for the receiver and each descendant node in
|
@@ -1198,18 +1261,20 @@ module RuboCop::AST::Descendence
|
|
1198
1261
|
# @return [Enumerator] if no block is given
|
1199
1262
|
# @yieldparam node [Node] each node
|
1200
1263
|
#
|
1201
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
1264
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#95
|
1202
1265
|
def each_node(*types, &block); end
|
1203
1266
|
|
1204
1267
|
protected
|
1205
1268
|
|
1206
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
1269
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#107
|
1207
1270
|
def visit_descendants(types, &block); end
|
1208
1271
|
end
|
1209
1272
|
|
1210
1273
|
# A node extension for `dstr` nodes. This will be used
|
1211
1274
|
# in place of a plain node when the builder constructs the AST, making
|
1212
1275
|
# its methods available to all `dstr` nodes within RuboCop.
|
1276
|
+
#
|
1277
|
+
# source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#8
|
1213
1278
|
class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode
|
1214
1279
|
# source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#9
|
1215
1280
|
def value; end
|
@@ -1218,6 +1283,8 @@ end
|
|
1218
1283
|
# A node extension for `ensure` nodes. This will be used in place of a plain
|
1219
1284
|
# node when the builder constructs the AST, making its methods available
|
1220
1285
|
# to all `ensure` nodes within RuboCop.
|
1286
|
+
#
|
1287
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#8
|
1221
1288
|
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
1222
1289
|
# Returns the body of the `ensure` clause.
|
1223
1290
|
#
|
@@ -1227,9 +1294,12 @@ class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
|
1227
1294
|
def body; end
|
1228
1295
|
end
|
1229
1296
|
|
1297
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5
|
1230
1298
|
module RuboCop::AST::Ext; end
|
1231
1299
|
|
1232
1300
|
# Extensions to Parser::AST::Range
|
1301
|
+
#
|
1302
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#7
|
1233
1303
|
module RuboCop::AST::Ext::Range
|
1234
1304
|
# If `exclude_end` is `true`, then the range will be exclusive.
|
1235
1305
|
#
|
@@ -1250,11 +1320,15 @@ module RuboCop::AST::Ext::Range
|
|
1250
1320
|
end
|
1251
1321
|
|
1252
1322
|
# Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6-
|
1323
|
+
#
|
1324
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7
|
1253
1325
|
module RuboCop::AST::Ext::RangeMinMax; end
|
1254
1326
|
|
1255
1327
|
# A node extension for `float` nodes. This will be used in place of a plain
|
1256
1328
|
# node when the builder constructs the AST, making its methods available to
|
1257
1329
|
# all `float` nodes within RuboCop.
|
1330
|
+
#
|
1331
|
+
# source://rubocop-ast//lib/rubocop/ast/node/float_node.rb#8
|
1258
1332
|
class RuboCop::AST::FloatNode < ::RuboCop::AST::Node
|
1259
1333
|
include ::RuboCop::AST::BasicLiteralNode
|
1260
1334
|
include ::RuboCop::AST::NumericNode
|
@@ -1263,6 +1337,8 @@ end
|
|
1263
1337
|
# A node extension for `for` nodes. This will be used in place of a plain
|
1264
1338
|
# node when the builder constructs the AST, making its methods available
|
1265
1339
|
# to all `for` nodes within RuboCop.
|
1340
|
+
#
|
1341
|
+
# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#8
|
1266
1342
|
class RuboCop::AST::ForNode < ::RuboCop::AST::Node
|
1267
1343
|
# Returns the body of the `for` loop.
|
1268
1344
|
#
|
@@ -1326,6 +1402,8 @@ end
|
|
1326
1402
|
#
|
1327
1403
|
# The main RuboCop runs in legacy mode; this node is only used
|
1328
1404
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true`
|
1405
|
+
#
|
1406
|
+
# source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#23
|
1329
1407
|
class RuboCop::AST::ForwardArgsNode < ::RuboCop::AST::Node
|
1330
1408
|
include ::RuboCop::AST::CollectionNode
|
1331
1409
|
|
@@ -1338,6 +1416,8 @@ end
|
|
1338
1416
|
|
1339
1417
|
# Common functionality for nodes that can be used as hash elements:
|
1340
1418
|
# `pair`, `kwsplat`
|
1419
|
+
#
|
1420
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#7
|
1341
1421
|
module RuboCop::AST::HashElementNode
|
1342
1422
|
# Returns the delta between this element's delimiter and the argument's.
|
1343
1423
|
#
|
@@ -1393,6 +1473,8 @@ end
|
|
1393
1473
|
|
1394
1474
|
# A helper class for comparing the positions of different parts of a
|
1395
1475
|
# `pair` node.
|
1476
|
+
#
|
1477
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#67
|
1396
1478
|
class RuboCop::AST::HashElementNode::HashElementDelta
|
1397
1479
|
# @raise [ArgumentError]
|
1398
1480
|
# @return [HashElementDelta] a new instance of HashElementDelta
|
@@ -1438,6 +1520,8 @@ end
|
|
1438
1520
|
# A node extension for `hash` nodes. This will be used in place of a plain
|
1439
1521
|
# node when the builder constructs the AST, making its methods available
|
1440
1522
|
# to all `hash` nodes within RuboCop.
|
1523
|
+
#
|
1524
|
+
# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#8
|
1441
1525
|
class RuboCop::AST::HashNode < ::RuboCop::AST::Node
|
1442
1526
|
# Checks whether the `hash` literal is delimited by curly braces.
|
1443
1527
|
#
|
@@ -1535,6 +1619,8 @@ end
|
|
1535
1619
|
# A node extension for `if` nodes. This will be used in place of a plain
|
1536
1620
|
# node when the builder constructs the AST, making its methods available
|
1537
1621
|
# to all `if` nodes within RuboCop.
|
1622
|
+
#
|
1623
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#8
|
1538
1624
|
class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
1539
1625
|
include ::RuboCop::AST::ConditionalNode
|
1540
1626
|
include ::RuboCop::AST::ModifierNode
|
@@ -1666,6 +1752,8 @@ end
|
|
1666
1752
|
# A node extension for `in` nodes. This will be used in place of a plain
|
1667
1753
|
# node when the builder constructs the AST, making its methods available
|
1668
1754
|
# to all `in` nodes within RuboCop.
|
1755
|
+
#
|
1756
|
+
# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#8
|
1669
1757
|
class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node
|
1670
1758
|
# Returns the body of the `in` node.
|
1671
1759
|
#
|
@@ -1710,6 +1798,8 @@ end
|
|
1710
1798
|
#
|
1711
1799
|
# The main RuboCop runs in legacy mode; this node is only used
|
1712
1800
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_index=true`
|
1801
|
+
#
|
1802
|
+
# source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#19
|
1713
1803
|
class RuboCop::AST::IndexNode < ::RuboCop::AST::Node
|
1714
1804
|
include ::RuboCop::AST::ParameterizedNode
|
1715
1805
|
include ::RuboCop::AST::ParameterizedNode::RestArguments
|
@@ -1761,6 +1851,8 @@ end
|
|
1761
1851
|
#
|
1762
1852
|
# The main RuboCop runs in legacy mode; this node is only used
|
1763
1853
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_index=true`
|
1854
|
+
#
|
1855
|
+
# source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#21
|
1764
1856
|
class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node
|
1765
1857
|
include ::RuboCop::AST::ParameterizedNode
|
1766
1858
|
include ::RuboCop::AST::ParameterizedNode::RestArguments
|
@@ -1799,6 +1891,8 @@ end
|
|
1799
1891
|
# A node extension for `int` nodes. This will be used in place of a plain
|
1800
1892
|
# node when the builder constructs the AST, making its methods available to
|
1801
1893
|
# all `int` nodes within RuboCop.
|
1894
|
+
#
|
1895
|
+
# source://rubocop-ast//lib/rubocop/ast/node/int_node.rb#8
|
1802
1896
|
class RuboCop::AST::IntNode < ::RuboCop::AST::Node
|
1803
1897
|
include ::RuboCop::AST::BasicLiteralNode
|
1804
1898
|
include ::RuboCop::AST::NumericNode
|
@@ -1807,6 +1901,8 @@ end
|
|
1807
1901
|
# A node extension for `kwsplat` nodes. This will be used in place of a
|
1808
1902
|
# plain node when the builder constructs the AST, making its methods
|
1809
1903
|
# available to all `kwsplat` nodes within RuboCop.
|
1904
|
+
#
|
1905
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#8
|
1810
1906
|
class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node
|
1811
1907
|
include ::RuboCop::AST::HashElementNode
|
1812
1908
|
|
@@ -1863,6 +1959,8 @@ RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String)
|
|
1863
1959
|
#
|
1864
1960
|
# The main RuboCop runs in legacy mode; this node is only used
|
1865
1961
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true`
|
1962
|
+
#
|
1963
|
+
# source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#23
|
1866
1964
|
class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
|
1867
1965
|
include ::RuboCop::AST::ParameterizedNode
|
1868
1966
|
include ::RuboCop::AST::ParameterizedNode::RestArguments
|
@@ -1918,6 +2016,8 @@ end
|
|
1918
2016
|
# Common functionality for nodes that are a kind of method dispatch:
|
1919
2017
|
# `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`,
|
1920
2018
|
# and (modern only): `index`, `indexasgn`, `lambda`
|
2019
|
+
#
|
2020
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#8
|
1921
2021
|
module RuboCop::AST::MethodDispatchNode
|
1922
2022
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
1923
2023
|
extend ::RuboCop::AST::NodePattern::Macros
|
@@ -2163,6 +2263,8 @@ RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array
|
|
2163
2263
|
# `send`, `csend`, `def`, `defs`, `super`, `zsuper`
|
2164
2264
|
#
|
2165
2265
|
# @note this mixin expects `#method_name` and `#receiver` to be implemented
|
2266
|
+
#
|
2267
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#9
|
2166
2268
|
module RuboCop::AST::MethodIdentifierPredicates
|
2167
2269
|
# Checks whether the method is an assignment method.
|
2168
2270
|
#
|
@@ -2338,6 +2440,8 @@ RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil)
|
|
2338
2440
|
|
2339
2441
|
# Common functionality for nodes that can be used as modifiers:
|
2340
2442
|
# `if`, `while`, `until`
|
2443
|
+
#
|
2444
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#7
|
2341
2445
|
module RuboCop::AST::ModifierNode
|
2342
2446
|
# Checks whether the node is in a modifier form, i.e. a condition
|
2343
2447
|
# trailing behind an expression.
|
@@ -2351,6 +2455,8 @@ end
|
|
2351
2455
|
# A node extension for `module` nodes. This will be used in place of a
|
2352
2456
|
# plain node when the builder constructs the AST, making its methods
|
2353
2457
|
# available to all `module` nodes within RuboCop.
|
2458
|
+
#
|
2459
|
+
# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#8
|
2354
2460
|
class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node
|
2355
2461
|
# The body of this `module` node.
|
2356
2462
|
#
|
@@ -2370,6 +2476,8 @@ end
|
|
2370
2476
|
# A node extension for `next` nodes. This will be used in place of a
|
2371
2477
|
# plain node when the builder constructs the AST, making its methods
|
2372
2478
|
# available to all `next` nodes within RuboCop.
|
2479
|
+
#
|
2480
|
+
# source://rubocop-ast//lib/rubocop/ast/node/next_node.rb#8
|
2373
2481
|
class RuboCop::AST::NextNode < ::RuboCop::AST::Node
|
2374
2482
|
include ::RuboCop::AST::ParameterizedNode
|
2375
2483
|
include ::RuboCop::AST::ParameterizedNode::WrappedArguments
|
@@ -2390,28 +2498,29 @@ end
|
|
2390
2498
|
#
|
2391
2499
|
# # Find the first lvar node under the receiver node.
|
2392
2500
|
# lvar_node = node.each_descendant.find(&:lvar_type?)
|
2501
|
+
#
|
2502
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#21
|
2393
2503
|
class RuboCop::AST::Node < ::Parser::AST::Node
|
2394
2504
|
include ::RuboCop::AST::Sexp
|
2395
2505
|
include ::RuboCop::AST::Descendence
|
2396
|
-
include ::RuboCop::RSpec::Node
|
2397
2506
|
extend ::RuboCop::AST::NodePattern::Macros
|
2398
2507
|
|
2399
2508
|
# @return [Node] a new instance of Node
|
2400
2509
|
# @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
|
2401
2510
|
#
|
2402
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2511
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#92
|
2403
2512
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
2404
2513
|
|
2405
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2514
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2406
2515
|
def __ENCODING___type?; end
|
2407
2516
|
|
2408
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2517
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2409
2518
|
def __FILE___type?; end
|
2410
2519
|
|
2411
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2520
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2412
2521
|
def __LINE___type?; end
|
2413
2522
|
|
2414
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2523
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2415
2524
|
def alias_type?; end
|
2416
2525
|
|
2417
2526
|
# Returns an array of ancestor nodes.
|
@@ -2419,173 +2528,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2419
2528
|
#
|
2420
2529
|
# @return [Array<Node>] an array of ancestor nodes
|
2421
2530
|
#
|
2422
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2531
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#247
|
2423
2532
|
def ancestors; end
|
2424
2533
|
|
2425
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2534
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2426
2535
|
def and_asgn_type?; end
|
2427
2536
|
|
2428
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2537
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2429
2538
|
def and_type?; end
|
2430
2539
|
|
2431
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2540
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2432
2541
|
def arg_expr_type?; end
|
2433
2542
|
|
2434
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2543
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2435
2544
|
def arg_type?; end
|
2436
2545
|
|
2437
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2546
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2438
2547
|
def args_type?; end
|
2439
2548
|
|
2440
2549
|
# @return [Boolean]
|
2441
2550
|
#
|
2442
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2551
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#464
|
2443
2552
|
def argument?; end
|
2444
2553
|
|
2445
2554
|
# @return [Boolean]
|
2446
2555
|
#
|
2447
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2556
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#468
|
2448
2557
|
def argument_type?; end
|
2449
2558
|
|
2450
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2559
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2451
2560
|
def array_pattern_type?; end
|
2452
2561
|
|
2453
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2562
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2454
2563
|
def array_pattern_with_tail_type?; end
|
2455
2564
|
|
2456
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2565
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2457
2566
|
def array_type?; end
|
2458
2567
|
|
2459
2568
|
# @return [Boolean]
|
2460
2569
|
#
|
2461
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2570
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#416
|
2462
2571
|
def assignment?; end
|
2463
2572
|
|
2464
2573
|
# Some cops treat the shovel operator as a kind of assignment.
|
2465
2574
|
#
|
2466
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2575
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#355
|
2467
2576
|
def assignment_or_similar?(param0 = T.unsafe(nil)); end
|
2468
2577
|
|
2469
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2578
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2470
2579
|
def back_ref_type?; end
|
2471
2580
|
|
2472
2581
|
# @return [Boolean]
|
2473
2582
|
#
|
2474
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2583
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#420
|
2475
2584
|
def basic_conditional?; end
|
2476
2585
|
|
2477
2586
|
# @return [Boolean]
|
2478
2587
|
#
|
2479
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2588
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#363
|
2480
2589
|
def basic_literal?; end
|
2481
2590
|
|
2482
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2591
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2483
2592
|
def begin_type?; end
|
2484
2593
|
|
2485
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2594
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2486
2595
|
def block_pass_type?; end
|
2487
2596
|
|
2488
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2597
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2489
2598
|
def block_type?; end
|
2490
2599
|
|
2491
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2600
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2492
2601
|
def blockarg_expr_type?; end
|
2493
2602
|
|
2494
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2603
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2495
2604
|
def blockarg_type?; end
|
2496
2605
|
|
2497
2606
|
# @return [Boolean]
|
2498
2607
|
#
|
2499
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2608
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#472
|
2500
2609
|
def boolean_type?; end
|
2501
2610
|
|
2502
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2611
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2503
2612
|
def break_type?; end
|
2504
2613
|
|
2505
2614
|
# @return [Boolean]
|
2506
2615
|
#
|
2507
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2616
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#456
|
2508
2617
|
def call_type?; end
|
2509
2618
|
|
2510
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2619
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2511
2620
|
def case_match_type?; end
|
2512
2621
|
|
2513
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2622
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2514
2623
|
def case_type?; end
|
2515
2624
|
|
2516
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2625
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2517
2626
|
def casgn_type?; end
|
2518
2627
|
|
2519
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2628
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2520
2629
|
def cbase_type?; end
|
2521
2630
|
|
2522
2631
|
# @return [Boolean]
|
2523
2632
|
#
|
2524
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2633
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#460
|
2525
2634
|
def chained?; end
|
2526
2635
|
|
2527
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2636
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#512
|
2528
2637
|
def class_constructor?(param0 = T.unsafe(nil)); end
|
2529
2638
|
|
2530
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2639
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#524
|
2531
2640
|
def class_definition?(param0 = T.unsafe(nil)); end
|
2532
2641
|
|
2533
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2642
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2534
2643
|
def class_type?; end
|
2535
2644
|
|
2536
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2645
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#144
|
2537
2646
|
def complete!; end
|
2538
2647
|
|
2539
2648
|
# @return [Boolean]
|
2540
2649
|
#
|
2541
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2650
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#149
|
2542
2651
|
def complete?; end
|
2543
2652
|
|
2544
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2653
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2545
2654
|
def complex_type?; end
|
2546
2655
|
|
2547
2656
|
# @return [Boolean]
|
2548
2657
|
#
|
2549
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2658
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#424
|
2550
2659
|
def conditional?; end
|
2551
2660
|
|
2552
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2661
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#293
|
2553
2662
|
def const_name; end
|
2554
2663
|
|
2555
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2664
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2556
2665
|
def const_pattern_type?; end
|
2557
2666
|
|
2558
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2667
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2559
2668
|
def const_type?; end
|
2560
2669
|
|
2561
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2670
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2562
2671
|
def csend_type?; end
|
2563
2672
|
|
2564
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2673
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2565
2674
|
def cvar_type?; end
|
2566
2675
|
|
2567
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2676
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2568
2677
|
def cvasgn_type?; end
|
2569
2678
|
|
2570
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2679
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2571
2680
|
def def_type?; end
|
2572
2681
|
|
2573
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2682
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#314
|
2574
2683
|
def defined_module; end
|
2575
2684
|
|
2576
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2685
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#319
|
2577
2686
|
def defined_module_name; end
|
2578
2687
|
|
2579
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2688
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2580
2689
|
def defined_type?; end
|
2581
2690
|
|
2582
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2691
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2583
2692
|
def defs_type?; end
|
2584
2693
|
|
2585
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2694
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2586
2695
|
def dstr_type?; end
|
2587
2696
|
|
2588
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2697
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2589
2698
|
def dsym_type?; end
|
2590
2699
|
|
2591
2700
|
# Calls the given block for each ancestor node from parent to root.
|
@@ -2598,163 +2707,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2598
2707
|
# @return [Enumerator] if no block is given
|
2599
2708
|
# @yieldparam node [Node] each ancestor node
|
2600
2709
|
#
|
2601
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2710
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#235
|
2602
2711
|
def each_ancestor(*types, &block); end
|
2603
2712
|
|
2604
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2713
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2605
2714
|
def eflipflop_type?; end
|
2606
2715
|
|
2607
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2716
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2608
2717
|
def empty_else_type?; end
|
2609
2718
|
|
2610
2719
|
# @return [Boolean]
|
2611
2720
|
#
|
2612
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2721
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#349
|
2613
2722
|
def empty_source?; end
|
2614
2723
|
|
2615
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2724
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2616
2725
|
def ensure_type?; end
|
2617
2726
|
|
2618
2727
|
# @return [Boolean]
|
2619
2728
|
#
|
2620
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2729
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#408
|
2621
2730
|
def equals_asgn?; end
|
2622
2731
|
|
2623
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2732
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2624
2733
|
def erange_type?; end
|
2625
2734
|
|
2626
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2735
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2627
2736
|
def false_type?; end
|
2628
2737
|
|
2629
2738
|
# @return [Boolean]
|
2630
2739
|
#
|
2631
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2740
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#371
|
2632
2741
|
def falsey_literal?; end
|
2633
2742
|
|
2634
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2743
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2635
2744
|
def find_pattern_type?; end
|
2636
2745
|
|
2637
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2746
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#261
|
2638
2747
|
def first_line; end
|
2639
2748
|
|
2640
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2749
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2641
2750
|
def float_type?; end
|
2642
2751
|
|
2643
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2752
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2644
2753
|
def for_type?; end
|
2645
2754
|
|
2646
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2755
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2647
2756
|
def forward_arg_type?; end
|
2648
2757
|
|
2649
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2758
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2650
2759
|
def forward_args_type?; end
|
2651
2760
|
|
2652
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2761
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2653
2762
|
def forwarded_args_type?; end
|
2654
2763
|
|
2655
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2764
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2656
2765
|
def forwarded_kwrestarg_type?; end
|
2657
2766
|
|
2658
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2767
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2659
2768
|
def forwarded_restarg_type?; end
|
2660
2769
|
|
2661
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2770
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#509
|
2662
2771
|
def global_const?(param0 = T.unsafe(nil), param1); end
|
2663
2772
|
|
2664
2773
|
# @return [Boolean]
|
2665
2774
|
#
|
2666
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2775
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#484
|
2667
2776
|
def guard_clause?; end
|
2668
2777
|
|
2669
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2778
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2670
2779
|
def gvar_type?; end
|
2671
2780
|
|
2672
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2781
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2673
2782
|
def gvasgn_type?; end
|
2674
2783
|
|
2675
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2784
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2676
2785
|
def hash_pattern_type?; end
|
2677
2786
|
|
2678
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2787
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2679
2788
|
def hash_type?; end
|
2680
2789
|
|
2681
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2790
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2682
2791
|
def ident_type?; end
|
2683
2792
|
|
2684
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2793
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2685
2794
|
def if_guard_type?; end
|
2686
2795
|
|
2687
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2796
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2688
2797
|
def if_type?; end
|
2689
2798
|
|
2690
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2799
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2691
2800
|
def iflipflop_type?; end
|
2692
2801
|
|
2693
2802
|
# @return [Boolean]
|
2694
2803
|
#
|
2695
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2804
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#379
|
2696
2805
|
def immutable_literal?; end
|
2697
2806
|
|
2698
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2807
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2699
2808
|
def in_match_type?; end
|
2700
2809
|
|
2701
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2810
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2702
2811
|
def in_pattern_type?; end
|
2703
2812
|
|
2704
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2813
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2705
2814
|
def index_type?; end
|
2706
2815
|
|
2707
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2816
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2708
2817
|
def indexasgn_type?; end
|
2709
2818
|
|
2710
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2819
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2711
2820
|
def int_type?; end
|
2712
2821
|
|
2713
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2822
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2714
2823
|
def irange_type?; end
|
2715
2824
|
|
2716
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2825
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2717
2826
|
def ivar_type?; end
|
2718
2827
|
|
2719
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2828
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2720
2829
|
def ivasgn_type?; end
|
2721
2830
|
|
2722
2831
|
# @return [Boolean]
|
2723
2832
|
#
|
2724
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2833
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#437
|
2725
2834
|
def keyword?; end
|
2726
2835
|
|
2727
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2836
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2728
2837
|
def kwarg_type?; end
|
2729
2838
|
|
2730
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2839
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2731
2840
|
def kwargs_type?; end
|
2732
2841
|
|
2733
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2842
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2734
2843
|
def kwbegin_type?; end
|
2735
2844
|
|
2736
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2845
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2737
2846
|
def kwnilarg_type?; end
|
2738
2847
|
|
2739
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2848
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2740
2849
|
def kwoptarg_type?; end
|
2741
2850
|
|
2742
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2851
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2743
2852
|
def kwrestarg_type?; end
|
2744
2853
|
|
2745
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2854
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2746
2855
|
def kwsplat_type?; end
|
2747
2856
|
|
2748
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2857
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#503
|
2749
2858
|
def lambda?(param0 = T.unsafe(nil)); end
|
2750
2859
|
|
2751
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2860
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#506
|
2752
2861
|
def lambda_or_proc?(param0 = T.unsafe(nil)); end
|
2753
2862
|
|
2754
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2863
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2755
2864
|
def lambda_type?; end
|
2756
2865
|
|
2757
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2866
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#265
|
2758
2867
|
def last_line; end
|
2759
2868
|
|
2760
2869
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2762,7 +2871,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2762
2871
|
#
|
2763
2872
|
# @return [Node, nil] the left (aka previous) sibling
|
2764
2873
|
#
|
2765
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2874
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#187
|
2766
2875
|
def left_sibling; end
|
2767
2876
|
|
2768
2877
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -2770,94 +2879,94 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2770
2879
|
#
|
2771
2880
|
# @return [Array<Node>] the left (aka previous) siblings
|
2772
2881
|
#
|
2773
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2882
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#197
|
2774
2883
|
def left_siblings; end
|
2775
2884
|
|
2776
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2885
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#269
|
2777
2886
|
def line_count; end
|
2778
2887
|
|
2779
2888
|
# @return [Boolean]
|
2780
2889
|
#
|
2781
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2890
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#359
|
2782
2891
|
def literal?; end
|
2783
2892
|
|
2784
2893
|
# NOTE: `loop { }` is a normal method call and thus not a loop keyword.
|
2785
2894
|
#
|
2786
2895
|
# @return [Boolean]
|
2787
2896
|
#
|
2788
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2897
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#433
|
2789
2898
|
def loop_keyword?; end
|
2790
2899
|
|
2791
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2900
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2792
2901
|
def lvar_type?; end
|
2793
2902
|
|
2794
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2903
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2795
2904
|
def lvasgn_type?; end
|
2796
2905
|
|
2797
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2906
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2798
2907
|
def masgn_type?; end
|
2799
2908
|
|
2800
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2909
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2801
2910
|
def match_alt_type?; end
|
2802
2911
|
|
2803
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2912
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2804
2913
|
def match_as_type?; end
|
2805
2914
|
|
2806
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2915
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2807
2916
|
def match_current_line_type?; end
|
2808
2917
|
|
2809
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2918
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#491
|
2810
2919
|
def match_guard_clause?(param0 = T.unsafe(nil)); end
|
2811
2920
|
|
2812
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2921
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2813
2922
|
def match_nil_pattern_type?; end
|
2814
2923
|
|
2815
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2924
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2816
2925
|
def match_pattern_p_type?; end
|
2817
2926
|
|
2818
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2927
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2819
2928
|
def match_pattern_type?; end
|
2820
2929
|
|
2821
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2930
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2822
2931
|
def match_rest_type?; end
|
2823
2932
|
|
2824
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2933
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2825
2934
|
def match_var_type?; end
|
2826
2935
|
|
2827
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2936
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2828
2937
|
def match_with_lvasgn_type?; end
|
2829
2938
|
|
2830
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2939
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2831
2940
|
def match_with_trailing_comma_type?; end
|
2832
2941
|
|
2833
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2942
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2834
2943
|
def mlhs_type?; end
|
2835
2944
|
|
2836
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2945
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#531
|
2837
2946
|
def module_definition?(param0 = T.unsafe(nil)); end
|
2838
2947
|
|
2839
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2948
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2840
2949
|
def module_type?; end
|
2841
2950
|
|
2842
2951
|
# Predicates
|
2843
2952
|
#
|
2844
2953
|
# @return [Boolean]
|
2845
2954
|
#
|
2846
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2955
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#341
|
2847
2956
|
def multiline?; end
|
2848
2957
|
|
2849
2958
|
# @return [Boolean]
|
2850
2959
|
#
|
2851
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2960
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#375
|
2852
2961
|
def mutable_literal?; end
|
2853
2962
|
|
2854
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2963
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#665
|
2855
2964
|
def new_class_or_module_block?(param0 = T.unsafe(nil)); end
|
2856
2965
|
|
2857
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2966
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2858
2967
|
def next_type?; end
|
2859
2968
|
|
2860
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2969
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2861
2970
|
def nil_type?; end
|
2862
2971
|
|
2863
2972
|
# Common destructuring method. This can be used to normalize
|
@@ -2867,98 +2976,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2867
2976
|
#
|
2868
2977
|
# @return [Array<Node>] the different parts of the ndde
|
2869
2978
|
#
|
2870
|
-
# source://
|
2979
|
+
# source://ast/2.4.2/lib/ast/node.rb#56
|
2871
2980
|
def node_parts; end
|
2872
2981
|
|
2873
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2982
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#275
|
2874
2983
|
def nonempty_line_count; end
|
2875
2984
|
|
2876
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2985
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2877
2986
|
def not_type?; end
|
2878
2987
|
|
2879
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2988
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2880
2989
|
def nth_ref_type?; end
|
2881
2990
|
|
2882
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2991
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2883
2992
|
def numargs_type?; end
|
2884
2993
|
|
2885
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2994
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2886
2995
|
def numblock_type?; end
|
2887
2996
|
|
2888
2997
|
# @return [Boolean]
|
2889
2998
|
#
|
2890
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
2999
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#476
|
2891
3000
|
def numeric_type?; end
|
2892
3001
|
|
2893
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3002
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2894
3003
|
def objc_kwarg_type?; end
|
2895
3004
|
|
2896
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3005
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2897
3006
|
def objc_restarg_type?; end
|
2898
3007
|
|
2899
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3008
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2900
3009
|
def objc_varargs_type?; end
|
2901
3010
|
|
2902
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3011
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2903
3012
|
def op_asgn_type?; end
|
2904
3013
|
|
2905
3014
|
# @return [Boolean]
|
2906
3015
|
#
|
2907
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3016
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#448
|
2908
3017
|
def operator_keyword?; end
|
2909
3018
|
|
2910
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3019
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2911
3020
|
def optarg_type?; end
|
2912
3021
|
|
2913
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3022
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2914
3023
|
def or_asgn_type?; end
|
2915
3024
|
|
2916
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3025
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2917
3026
|
def or_type?; end
|
2918
3027
|
|
2919
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3028
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2920
3029
|
def pair_type?; end
|
2921
3030
|
|
2922
3031
|
# Returns the parent node, or `nil` if the receiver is a root node.
|
2923
3032
|
#
|
2924
3033
|
# @return [Node, nil] the parent node or `nil`
|
2925
3034
|
#
|
2926
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3035
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#126
|
2927
3036
|
def parent; end
|
2928
3037
|
|
2929
3038
|
# @return [Boolean]
|
2930
3039
|
#
|
2931
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3040
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#135
|
2932
3041
|
def parent?; end
|
2933
3042
|
|
2934
3043
|
# Searching the AST
|
2935
3044
|
#
|
2936
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3045
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#325
|
2937
3046
|
def parent_module_name; end
|
2938
3047
|
|
2939
3048
|
# @return [Boolean]
|
2940
3049
|
#
|
2941
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3050
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#452
|
2942
3051
|
def parenthesized_call?; end
|
2943
3052
|
|
2944
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3053
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2945
3054
|
def pin_type?; end
|
2946
3055
|
|
2947
3056
|
# @return [Boolean]
|
2948
3057
|
#
|
2949
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3058
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#428
|
2950
3059
|
def post_condition_loop?; end
|
2951
3060
|
|
2952
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3061
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2953
3062
|
def postexe_type?; end
|
2954
3063
|
|
2955
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3064
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2956
3065
|
def preexe_type?; end
|
2957
3066
|
|
2958
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3067
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#496
|
2959
3068
|
def proc?(param0 = T.unsafe(nil)); end
|
2960
3069
|
|
2961
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3070
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2962
3071
|
def procarg0_type?; end
|
2963
3072
|
|
2964
3073
|
# Some expressions are evaluated for their value, some for their side
|
@@ -2971,56 +3080,56 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2971
3080
|
#
|
2972
3081
|
# @return [Boolean]
|
2973
3082
|
#
|
2974
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3083
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#576
|
2975
3084
|
def pure?; end
|
2976
3085
|
|
2977
3086
|
# @return [Boolean]
|
2978
3087
|
#
|
2979
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3088
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#480
|
2980
3089
|
def range_type?; end
|
2981
3090
|
|
2982
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3091
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2983
3092
|
def rational_type?; end
|
2984
3093
|
|
2985
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3094
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#286
|
2986
3095
|
def receiver(param0 = T.unsafe(nil)); end
|
2987
3096
|
|
2988
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3097
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#386
|
2989
3098
|
def recursive_basic_literal?; end
|
2990
3099
|
|
2991
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3100
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#386
|
2992
3101
|
def recursive_literal?; end
|
2993
3102
|
|
2994
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3103
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
2995
3104
|
def redo_type?; end
|
2996
3105
|
|
2997
3106
|
# @return [Boolean]
|
2998
3107
|
#
|
2999
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3108
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#404
|
3000
3109
|
def reference?; end
|
3001
3110
|
|
3002
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3111
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3003
3112
|
def regexp_type?; end
|
3004
3113
|
|
3005
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3114
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3006
3115
|
def regopt_type?; end
|
3007
3116
|
|
3008
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3117
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3009
3118
|
def resbody_type?; end
|
3010
3119
|
|
3011
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3120
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3012
3121
|
def rescue_type?; end
|
3013
3122
|
|
3014
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3123
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3015
3124
|
def restarg_expr_type?; end
|
3016
3125
|
|
3017
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3126
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3018
3127
|
def restarg_type?; end
|
3019
3128
|
|
3020
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3129
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3021
3130
|
def retry_type?; end
|
3022
3131
|
|
3023
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3132
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3024
3133
|
def return_type?; end
|
3025
3134
|
|
3026
3135
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3028,7 +3137,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3028
3137
|
#
|
3029
3138
|
# @return [Node, nil] the right (aka next) sibling
|
3030
3139
|
#
|
3031
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3140
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#178
|
3032
3141
|
def right_sibling; end
|
3033
3142
|
|
3034
3143
|
# Use is discouraged, this is a potentially slow method and can lead
|
@@ -3036,29 +3145,34 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3036
3145
|
#
|
3037
3146
|
# @return [Array<Node>] the right (aka next) siblings
|
3038
3147
|
#
|
3039
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3148
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#206
|
3040
3149
|
def right_siblings; end
|
3041
3150
|
|
3042
3151
|
# @return [Boolean]
|
3043
3152
|
#
|
3044
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3153
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#140
|
3045
3154
|
def root?; end
|
3046
3155
|
|
3047
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3156
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3048
3157
|
def sclass_type?; end
|
3049
3158
|
|
3050
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3159
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3051
3160
|
def self_type?; end
|
3052
3161
|
|
3053
|
-
#
|
3162
|
+
# Most nodes are of 'send' type, so this method is defined
|
3163
|
+
# separately to make this check as fast as possible.
|
3164
|
+
#
|
3165
|
+
# @return [Boolean]
|
3166
|
+
#
|
3167
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#119
|
3054
3168
|
def send_type?; end
|
3055
3169
|
|
3056
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3170
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3057
3171
|
def shadowarg_type?; end
|
3058
3172
|
|
3059
3173
|
# @return [Boolean]
|
3060
3174
|
#
|
3061
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3175
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#412
|
3062
3176
|
def shorthand_asgn?; end
|
3063
3177
|
|
3064
3178
|
# Returns the index of the receiver node in its siblings. (Sibling index
|
@@ -3067,70 +3181,70 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3067
3181
|
#
|
3068
3182
|
# @return [Integer, nil] the index of the receiver node in its siblings
|
3069
3183
|
#
|
3070
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3184
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#171
|
3071
3185
|
def sibling_index; end
|
3072
3186
|
|
3073
3187
|
# @return [Boolean]
|
3074
3188
|
#
|
3075
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3189
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#345
|
3076
3190
|
def single_line?; end
|
3077
3191
|
|
3078
3192
|
# NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
|
3079
3193
|
#
|
3080
3194
|
# @return [String, nil]
|
3081
3195
|
#
|
3082
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3196
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#253
|
3083
3197
|
def source; end
|
3084
3198
|
|
3085
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3199
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#279
|
3086
3200
|
def source_length; end
|
3087
3201
|
|
3088
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3202
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#257
|
3089
3203
|
def source_range; end
|
3090
3204
|
|
3091
3205
|
# @return [Boolean]
|
3092
3206
|
#
|
3093
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3207
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#444
|
3094
3208
|
def special_keyword?; end
|
3095
3209
|
|
3096
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3210
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3097
3211
|
def splat_type?; end
|
3098
3212
|
|
3099
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3213
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#291
|
3100
3214
|
def str_content(param0 = T.unsafe(nil)); end
|
3101
3215
|
|
3102
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3216
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3103
3217
|
def str_type?; end
|
3104
3218
|
|
3105
3219
|
# @deprecated Use `:class_constructor?`
|
3106
3220
|
#
|
3107
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3221
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#519
|
3108
3222
|
def struct_constructor?(param0 = T.unsafe(nil)); end
|
3109
3223
|
|
3110
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3224
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3111
3225
|
def super_type?; end
|
3112
3226
|
|
3113
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3227
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3114
3228
|
def sym_type?; end
|
3115
3229
|
|
3116
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3230
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3117
3231
|
def true_type?; end
|
3118
3232
|
|
3119
3233
|
# @return [Boolean]
|
3120
3234
|
#
|
3121
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3235
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#367
|
3122
3236
|
def truthy_literal?; end
|
3123
3237
|
|
3124
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3238
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3125
3239
|
def undef_type?; end
|
3126
3240
|
|
3127
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3241
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3128
3242
|
def unless_guard_type?; end
|
3129
3243
|
|
3130
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3244
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3131
3245
|
def until_post_type?; end
|
3132
3246
|
|
3133
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3247
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3134
3248
|
def until_type?; end
|
3135
3249
|
|
3136
3250
|
# Override `AST::Node#updated` so that `AST::Processor` does not try to
|
@@ -3139,7 +3253,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3139
3253
|
# identical subtrees. Rather, the entire AST must be copied any time any
|
3140
3254
|
# part of it is changed.
|
3141
3255
|
#
|
3142
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3256
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#160
|
3143
3257
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
3144
3258
|
|
3145
3259
|
# Some expressions are evaluated for their value, some for their side
|
@@ -3153,72 +3267,72 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
3153
3267
|
#
|
3154
3268
|
# @return [Boolean]
|
3155
3269
|
#
|
3156
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3270
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#545
|
3157
3271
|
def value_used?; end
|
3158
3272
|
|
3159
3273
|
# @return [Boolean]
|
3160
3274
|
#
|
3161
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3275
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#400
|
3162
3276
|
def variable?; end
|
3163
3277
|
|
3164
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3278
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3165
3279
|
def when_type?; end
|
3166
3280
|
|
3167
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3281
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3168
3282
|
def while_post_type?; end
|
3169
3283
|
|
3170
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3284
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3171
3285
|
def while_type?; end
|
3172
3286
|
|
3173
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3287
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3174
3288
|
def xstr_type?; end
|
3175
3289
|
|
3176
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3290
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3177
3291
|
def yield_type?; end
|
3178
3292
|
|
3179
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3293
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
3180
3294
|
def zsuper_type?; end
|
3181
3295
|
|
3182
3296
|
protected
|
3183
3297
|
|
3184
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3298
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#130
|
3185
3299
|
def parent=(node); end
|
3186
3300
|
|
3187
3301
|
private
|
3188
3302
|
|
3189
3303
|
# @return [Boolean]
|
3190
3304
|
#
|
3191
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3305
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#604
|
3192
3306
|
def begin_value_used?; end
|
3193
3307
|
|
3194
3308
|
# @return [Boolean]
|
3195
3309
|
#
|
3196
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3310
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#615
|
3197
3311
|
def case_if_value_used?; end
|
3198
3312
|
|
3199
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3313
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#305
|
3200
3314
|
def defined_module0(param0 = T.unsafe(nil)); end
|
3201
3315
|
|
3202
3316
|
# @return [Boolean]
|
3203
3317
|
#
|
3204
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3318
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#609
|
3205
3319
|
def for_value_used?; end
|
3206
3320
|
|
3207
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3321
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#651
|
3208
3322
|
def parent_module_name_for_block(ancestor); end
|
3209
3323
|
|
3210
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3324
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#639
|
3211
3325
|
def parent_module_name_for_sclass(sclass_node); end
|
3212
3326
|
|
3213
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3327
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#626
|
3214
3328
|
def parent_module_name_part(node); end
|
3215
3329
|
|
3216
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3330
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#594
|
3217
3331
|
def visit_ancestors(types); end
|
3218
3332
|
|
3219
3333
|
# @return [Boolean]
|
3220
3334
|
#
|
3221
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
3335
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#621
|
3222
3336
|
def while_until_value_used?; end
|
3223
3337
|
end
|
3224
3338
|
|
@@ -3259,6 +3373,12 @@ RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
|
|
3259
3373
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#60
|
3260
3374
|
RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
|
3261
3375
|
|
3376
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#87
|
3377
|
+
RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array)
|
3378
|
+
|
3379
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#88
|
3380
|
+
RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash)
|
3381
|
+
|
3262
3382
|
# @api private
|
3263
3383
|
#
|
3264
3384
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#50
|
@@ -3353,67 +3473,69 @@ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set)
|
|
3353
3473
|
# - With no block, but one capture: the capture is returned.
|
3354
3474
|
# - With no block, but multiple captures: captures are returned as an array.
|
3355
3475
|
# - With no block and no captures: #match returns `true`.
|
3476
|
+
#
|
3477
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5
|
3356
3478
|
class RuboCop::AST::NodePattern
|
3357
3479
|
include ::RuboCop::AST::NodePattern::MethodDefiner
|
3358
3480
|
extend ::Forwardable
|
3359
3481
|
|
3360
3482
|
# @return [NodePattern] a new instance of NodePattern
|
3361
3483
|
#
|
3362
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3484
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#77
|
3363
3485
|
def initialize(str, compiler: T.unsafe(nil)); end
|
3364
3486
|
|
3365
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3487
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90
|
3366
3488
|
def ==(other); end
|
3367
3489
|
|
3368
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3490
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#107
|
3369
3491
|
def as_json(_options = T.unsafe(nil)); end
|
3370
3492
|
|
3371
3493
|
# Returns the value of attribute ast.
|
3372
3494
|
#
|
3373
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3495
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3374
3496
|
def ast; end
|
3375
3497
|
|
3376
|
-
# source://forwardable/1.3.
|
3498
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3377
3499
|
def captures(*args, **_arg1, &block); end
|
3378
3500
|
|
3379
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3501
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
|
3380
3502
|
def encode_with(coder); end
|
3381
3503
|
|
3382
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3504
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90
|
3383
3505
|
def eql?(other); end
|
3384
3506
|
|
3385
3507
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119
|
3386
3508
|
def freeze; end
|
3387
3509
|
|
3388
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3510
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#115
|
3389
3511
|
def init_with(coder); end
|
3390
3512
|
|
3391
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3513
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#103
|
3392
3514
|
def marshal_dump; end
|
3393
3515
|
|
3394
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3516
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#99
|
3395
3517
|
def marshal_load(pattern); end
|
3396
3518
|
|
3397
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3519
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#85
|
3398
3520
|
def match(*args, **rest, &block); end
|
3399
3521
|
|
3400
3522
|
# Returns the value of attribute match_code.
|
3401
3523
|
#
|
3402
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3524
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3403
3525
|
def match_code; end
|
3404
3526
|
|
3405
|
-
# source://forwardable/1.3.
|
3527
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3406
3528
|
def named_parameters(*args, **_arg1, &block); end
|
3407
3529
|
|
3408
3530
|
# Returns the value of attribute pattern.
|
3409
3531
|
#
|
3410
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3532
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3411
3533
|
def pattern; end
|
3412
3534
|
|
3413
|
-
# source://forwardable/1.3.
|
3535
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3414
3536
|
def positional_parameters(*args, **_arg1, &block); end
|
3415
3537
|
|
3416
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3538
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
|
3417
3539
|
def to_s; end
|
3418
3540
|
|
3419
3541
|
class << self
|
@@ -3421,7 +3543,7 @@ class RuboCop::AST::NodePattern
|
|
3421
3543
|
#
|
3422
3544
|
# @yield [element]
|
3423
3545
|
#
|
3424
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
3546
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#59
|
3425
3547
|
def descend(element, &block); end
|
3426
3548
|
end
|
3427
3549
|
end
|
@@ -3430,6 +3552,8 @@ end
|
|
3430
3552
|
#
|
3431
3553
|
# Doc on how this fits in the compiling process:
|
3432
3554
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
3555
|
+
#
|
3556
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#10
|
3433
3557
|
class RuboCop::AST::NodePattern::Builder
|
3434
3558
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#17
|
3435
3559
|
def emit_atom(type, value); end
|
@@ -3467,6 +3591,8 @@ class RuboCop::AST::NodePattern::Builder
|
|
3467
3591
|
end
|
3468
3592
|
|
3469
3593
|
# A NodePattern comment, simplified version of ::Parser::Source::Comment
|
3594
|
+
#
|
3595
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#7
|
3470
3596
|
class RuboCop::AST::NodePattern::Comment
|
3471
3597
|
# @param range [Parser::Source::Range]
|
3472
3598
|
# @return [Comment] a new instance of Comment
|
@@ -3509,6 +3635,8 @@ end
|
|
3509
3635
|
#
|
3510
3636
|
# Doc on how this fits in the compiling process:
|
3511
3637
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
3638
|
+
#
|
3639
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11
|
3512
3640
|
class RuboCop::AST::NodePattern::Compiler
|
3513
3641
|
extend ::Forwardable
|
3514
3642
|
|
@@ -3517,7 +3645,7 @@ class RuboCop::AST::NodePattern::Compiler
|
|
3517
3645
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
|
3518
3646
|
def initialize; end
|
3519
3647
|
|
3520
|
-
# source://forwardable/1.3.
|
3648
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3521
3649
|
def bind(*args, **_arg1, &block); end
|
3522
3650
|
|
3523
3651
|
# Returns the value of attribute binding.
|
@@ -3589,6 +3717,8 @@ end
|
|
3589
3717
|
#
|
3590
3718
|
# Doc on how this fits in the compiling process:
|
3591
3719
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
3720
|
+
#
|
3721
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#12
|
3592
3722
|
class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
|
3593
3723
|
private
|
3594
3724
|
|
@@ -3626,6 +3756,8 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod
|
|
3626
3756
|
end
|
3627
3757
|
|
3628
3758
|
# Holds the list of bound variable names
|
3759
|
+
#
|
3760
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#8
|
3629
3761
|
class RuboCop::AST::NodePattern::Compiler::Binding
|
3630
3762
|
# @return [Binding] a new instance of Binding
|
3631
3763
|
#
|
@@ -3649,13 +3781,15 @@ class RuboCop::AST::NodePattern::Compiler::Binding
|
|
3649
3781
|
end
|
3650
3782
|
|
3651
3783
|
# Variant of the Compiler with tracing information for nodes
|
3784
|
+
#
|
3785
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#10
|
3652
3786
|
class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler
|
3653
3787
|
# @return [Debug] a new instance of Debug
|
3654
3788
|
#
|
3655
3789
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
|
3656
3790
|
def initialize; end
|
3657
3791
|
|
3658
|
-
# source://forwardable/1.3.
|
3792
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3659
3793
|
def comments(*args, **_arg1, &block); end
|
3660
3794
|
|
3661
3795
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128
|
@@ -3669,11 +3803,13 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
|
|
3669
3803
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132
|
3670
3804
|
def parser; end
|
3671
3805
|
|
3672
|
-
# source://forwardable/1.3.
|
3806
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3673
3807
|
def tokens(*args, **_arg1, &block); end
|
3674
3808
|
end
|
3675
3809
|
|
3676
3810
|
# @api private
|
3811
|
+
#
|
3812
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#36
|
3677
3813
|
class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer
|
3678
3814
|
# @api private
|
3679
3815
|
# @return [Colorizer] a new instance of Colorizer
|
@@ -3729,6 +3865,8 @@ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::
|
|
3729
3865
|
# Consider constructor is private
|
3730
3866
|
#
|
3731
3867
|
# @api private
|
3868
|
+
#
|
3869
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46
|
3732
3870
|
class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
|
3733
3871
|
# @api private
|
3734
3872
|
# @return [Hash] a map for {character_position => color}
|
@@ -3820,6 +3958,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
|
|
3820
3958
|
end
|
3821
3959
|
|
3822
3960
|
# @api private
|
3961
|
+
#
|
3962
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#139
|
3823
3963
|
module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
3824
3964
|
# @api private
|
3825
3965
|
#
|
@@ -3840,17 +3980,23 @@ module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
|
3840
3980
|
end
|
3841
3981
|
|
3842
3982
|
# @api private
|
3983
|
+
#
|
3984
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156
|
3843
3985
|
class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler
|
3844
3986
|
include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
3845
3987
|
end
|
3846
3988
|
|
3847
3989
|
# @api private
|
3990
|
+
#
|
3991
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#161
|
3848
3992
|
class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler
|
3849
3993
|
include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
3850
3994
|
end
|
3851
3995
|
|
3852
3996
|
# Compiled node pattern requires a named parameter `trace`,
|
3853
3997
|
# which should be an instance of this class
|
3998
|
+
#
|
3999
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#13
|
3854
4000
|
class RuboCop::AST::NodePattern::Compiler::Debug::Trace
|
3855
4001
|
# @return [Trace] a new instance of Trace
|
3856
4002
|
#
|
@@ -3877,6 +4023,8 @@ end
|
|
3877
4023
|
#
|
3878
4024
|
# Doc on how this fits in the compiling process:
|
3879
4025
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
4026
|
+
#
|
4027
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#13
|
3880
4028
|
class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
|
3881
4029
|
# @return [NodePatternSubcompiler] a new instance of NodePatternSubcompiler
|
3882
4030
|
#
|
@@ -3971,6 +4119,8 @@ end
|
|
3971
4119
|
# Doc on how this fits in the compiling process:
|
3972
4120
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
3973
4121
|
#
|
4122
|
+
#
|
4123
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17
|
3974
4124
|
class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
|
3975
4125
|
# Calls `compile_sequence`; the actual `compile` method
|
3976
4126
|
# will be used for the different terms of the sequence.
|
@@ -4134,6 +4284,8 @@ RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.uns
|
|
4134
4284
|
#
|
4135
4285
|
# Doc on how this fits in the compiling process:
|
4136
4286
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
4287
|
+
#
|
4288
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#12
|
4137
4289
|
class RuboCop::AST::NodePattern::Compiler::Subcompiler
|
4138
4290
|
# @return [Subcompiler] a new instance of Subcompiler
|
4139
4291
|
#
|
@@ -4176,12 +4328,15 @@ class RuboCop::AST::NodePattern::Compiler::Subcompiler
|
|
4176
4328
|
end
|
4177
4329
|
end
|
4178
4330
|
|
4331
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#53
|
4179
4332
|
class RuboCop::AST::NodePattern::Invalid < ::StandardError; end
|
4180
4333
|
|
4181
4334
|
# Lexer class for `NodePattern`
|
4182
4335
|
#
|
4183
4336
|
# Doc on how this fits in the compiling process:
|
4184
4337
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
4338
|
+
#
|
4339
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#18
|
4185
4340
|
class RuboCop::AST::NodePattern::Lexer < ::RuboCop::AST::NodePattern::LexerRex
|
4186
4341
|
# @return [Lexer] a new instance of Lexer
|
4187
4342
|
#
|
@@ -4230,6 +4385,8 @@ RuboCop::AST::NodePattern::Lexer::Error = RuboCop::AST::NodePattern::LexerRex::S
|
|
4230
4385
|
RuboCop::AST::NodePattern::Lexer::REGEXP_OPTIONS = T.let(T.unsafe(nil), Hash)
|
4231
4386
|
|
4232
4387
|
# The generated lexer RuboCop::AST::NodePattern::LexerRex
|
4388
|
+
#
|
4389
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#23
|
4233
4390
|
class RuboCop::AST::NodePattern::LexerRex
|
4234
4391
|
# Yields on the current action.
|
4235
4392
|
#
|
@@ -4315,6 +4472,8 @@ RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
|
|
4315
4472
|
|
4316
4473
|
# :startdoc:
|
4317
4474
|
# :stopdoc:
|
4475
|
+
#
|
4476
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#36
|
4318
4477
|
class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError; end
|
4319
4478
|
|
4320
4479
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#30
|
@@ -4329,9 +4488,12 @@ RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp)
|
|
4329
4488
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#28
|
4330
4489
|
RuboCop::AST::NodePattern::LexerRex::SYMBOL_NAME = T.let(T.unsafe(nil), Regexp)
|
4331
4490
|
|
4491
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#37
|
4332
4492
|
class RuboCop::AST::NodePattern::LexerRex::ScanError < ::RuboCop::AST::NodePattern::LexerRex::LexerError; end
|
4333
4493
|
|
4334
4494
|
# Helpers for defining methods based on a pattern string
|
4495
|
+
#
|
4496
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#28
|
4335
4497
|
module RuboCop::AST::NodePattern::Macros
|
4336
4498
|
# Define a method which applies a pattern to an AST node
|
4337
4499
|
#
|
@@ -4356,6 +4518,8 @@ module RuboCop::AST::NodePattern::Macros
|
|
4356
4518
|
end
|
4357
4519
|
|
4358
4520
|
# Functionality to turn `match_code` into methods/lambda
|
4521
|
+
#
|
4522
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#7
|
4359
4523
|
module RuboCop::AST::NodePattern::MethodDefiner
|
4360
4524
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#37
|
4361
4525
|
def as_lambda; end
|
@@ -4411,6 +4575,8 @@ module RuboCop::AST::NodePattern::MethodDefiner
|
|
4411
4575
|
end
|
4412
4576
|
|
4413
4577
|
# Base class for AST Nodes of a `NodePattern`
|
4578
|
+
#
|
4579
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7
|
4414
4580
|
class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
4415
4581
|
include ::RuboCop::AST::Descendence
|
4416
4582
|
extend ::Forwardable
|
@@ -4476,6 +4642,8 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
|
4476
4642
|
end
|
4477
4643
|
|
4478
4644
|
# Node class for `<int str ...>`
|
4645
|
+
#
|
4646
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#176
|
4479
4647
|
class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
|
4480
4648
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4481
4649
|
|
@@ -4498,8 +4666,10 @@ end
|
|
4498
4666
|
RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
|
4499
4667
|
|
4500
4668
|
# Node class for `$something`
|
4669
|
+
#
|
4670
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#93
|
4501
4671
|
class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
|
4502
|
-
# source://forwardable/1.3.
|
4672
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4503
4673
|
def arity(*args, **_arg1, &block); end
|
4504
4674
|
|
4505
4675
|
# @return [Boolean]
|
@@ -4513,10 +4683,11 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No
|
|
4513
4683
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101
|
4514
4684
|
def nb_captures; end
|
4515
4685
|
|
4516
|
-
# source://forwardable/1.3.
|
4686
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4517
4687
|
def rest?(*args, **_arg1, &block); end
|
4518
4688
|
end
|
4519
4689
|
|
4690
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82
|
4520
4691
|
module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4521
4692
|
# @raise [NodePattern::Invalid]
|
4522
4693
|
#
|
@@ -4539,6 +4710,8 @@ RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
|
|
4539
4710
|
RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
|
4540
4711
|
|
4541
4712
|
# Node class for `predicate?(:arg, :list)`
|
4713
|
+
#
|
4714
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#127
|
4542
4715
|
class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
|
4543
4716
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132
|
4544
4717
|
def arg_list; end
|
@@ -4548,6 +4721,8 @@ class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::
|
|
4548
4721
|
end
|
4549
4722
|
|
4550
4723
|
# Node class for `int+`
|
4724
|
+
#
|
4725
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139
|
4551
4726
|
class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
|
4552
4727
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4553
4728
|
|
@@ -4562,6 +4737,8 @@ end
|
|
4562
4737
|
RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
|
4563
4738
|
|
4564
4739
|
# Node class for `...`
|
4740
|
+
#
|
4741
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#158
|
4565
4742
|
class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
|
4566
4743
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166
|
4567
4744
|
def arity; end
|
@@ -4579,6 +4756,8 @@ end
|
|
4579
4756
|
RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
|
4580
4757
|
|
4581
4758
|
# Node class for `(type first second ...)`
|
4759
|
+
#
|
4760
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#114
|
4582
4761
|
class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
|
4583
4762
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4584
4763
|
|
@@ -4589,6 +4768,8 @@ class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::N
|
|
4589
4768
|
end
|
4590
4769
|
|
4591
4770
|
# A list (potentially empty) of nodes; part of a Union
|
4771
|
+
#
|
4772
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#202
|
4592
4773
|
class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
|
4593
4774
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
4594
4775
|
|
@@ -4600,6 +4781,8 @@ class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern
|
|
4600
4781
|
end
|
4601
4782
|
|
4602
4783
|
# Node class for `{ ... }`
|
4784
|
+
#
|
4785
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#220
|
4603
4786
|
class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
|
4604
4787
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#221
|
4605
4788
|
def arity; end
|
@@ -4613,6 +4796,8 @@ end
|
|
4613
4796
|
#
|
4614
4797
|
# Doc on how this fits in the compiling process:
|
4615
4798
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
4799
|
+
#
|
4800
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12
|
4616
4801
|
class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
4617
4802
|
extend ::Forwardable
|
4618
4803
|
|
@@ -4733,28 +4918,28 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
|
4733
4918
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463
|
4734
4919
|
def _reduce_none(val, _values); end
|
4735
4920
|
|
4736
|
-
# source://forwardable/1.3.
|
4921
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4737
4922
|
def emit_atom(*args, **_arg1, &block); end
|
4738
4923
|
|
4739
|
-
# source://forwardable/1.3.
|
4924
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4740
4925
|
def emit_call(*args, **_arg1, &block); end
|
4741
4926
|
|
4742
|
-
# source://forwardable/1.3.
|
4927
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4743
4928
|
def emit_capture(*args, **_arg1, &block); end
|
4744
4929
|
|
4745
|
-
# source://forwardable/1.3.
|
4930
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4746
4931
|
def emit_list(*args, **_arg1, &block); end
|
4747
4932
|
|
4748
|
-
# source://forwardable/1.3.
|
4933
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4749
4934
|
def emit_unary_op(*args, **_arg1, &block); end
|
4750
4935
|
|
4751
|
-
# source://forwardable/1.3.
|
4936
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4752
4937
|
def emit_union(*args, **_arg1, &block); end
|
4753
4938
|
|
4754
4939
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
|
4755
4940
|
def inspect; end
|
4756
4941
|
|
4757
|
-
# source://forwardable/1.3.
|
4942
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4758
4943
|
def next_token(*args, **_arg1, &block); end
|
4759
4944
|
|
4760
4945
|
# (Similar API to `parser` gem)
|
@@ -4797,6 +4982,8 @@ RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), Fals
|
|
4797
4982
|
RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
|
4798
4983
|
|
4799
4984
|
# Overrides Parser to use `WithMeta` variants and provide additional methods
|
4985
|
+
#
|
4986
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#8
|
4800
4987
|
class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser
|
4801
4988
|
# Returns the value of attribute comments.
|
4802
4989
|
#
|
@@ -4813,6 +5000,8 @@ class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern:
|
|
4813
5000
|
end
|
4814
5001
|
|
4815
5002
|
# Overrides Builder to emit nodes with locations
|
5003
|
+
#
|
5004
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#39
|
4816
5005
|
class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::NodePattern::Builder
|
4817
5006
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#40
|
4818
5007
|
def emit_atom(type, token); end
|
@@ -4842,6 +5031,8 @@ class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::Nod
|
|
4842
5031
|
end
|
4843
5032
|
|
4844
5033
|
# Overrides Lexer to token locations and comments
|
5034
|
+
#
|
5035
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#10
|
4845
5036
|
class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodePattern::Lexer
|
4846
5037
|
# @return [Lexer] a new instance of Lexer
|
4847
5038
|
#
|
@@ -4866,6 +5057,8 @@ class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodeP
|
|
4866
5057
|
end
|
4867
5058
|
|
4868
5059
|
# Utility to assign a set of values to a constant
|
5060
|
+
#
|
5061
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#7
|
4869
5062
|
module RuboCop::AST::NodePattern::Sets
|
4870
5063
|
class << self
|
4871
5064
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#31
|
@@ -5228,6 +5421,8 @@ RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set)
|
|
5228
5421
|
RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String)
|
5229
5422
|
|
5230
5423
|
# Common functionality for primitive numeric nodes: `int`, `float`, ...
|
5424
|
+
#
|
5425
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6
|
5231
5426
|
module RuboCop::AST::NumericNode
|
5232
5427
|
# Checks whether this is literal has a sign.
|
5233
5428
|
#
|
@@ -5246,6 +5441,8 @@ RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
5246
5441
|
# A node extension for `op_asgn` nodes.
|
5247
5442
|
# This will be used in place of a plain node when the builder constructs
|
5248
5443
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
5444
|
+
#
|
5445
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#8
|
5249
5446
|
class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
|
5250
5447
|
# @return [AsgnNode] the assignment node
|
5251
5448
|
#
|
@@ -5277,6 +5474,8 @@ end
|
|
5277
5474
|
# A node extension for `op_asgn` nodes.
|
5278
5475
|
# This will be used in place of a plain node when the builder constructs
|
5279
5476
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
5477
|
+
#
|
5478
|
+
# source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#8
|
5280
5479
|
class RuboCop::AST::OrAsgnNode < ::RuboCop::AST::OpAsgnNode
|
5281
5480
|
# The operator being used for assignment as a symbol.
|
5282
5481
|
#
|
@@ -5289,6 +5488,8 @@ end
|
|
5289
5488
|
# A node extension for `or` nodes. This will be used in place of a plain
|
5290
5489
|
# node when the builder constructs the AST, making its methods available
|
5291
5490
|
# to all `or` nodes within RuboCop.
|
5491
|
+
#
|
5492
|
+
# source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#8
|
5292
5493
|
class RuboCop::AST::OrNode < ::RuboCop::AST::Node
|
5293
5494
|
include ::RuboCop::AST::BinaryOperatorNode
|
5294
5495
|
include ::RuboCop::AST::PredicateOperatorNode
|
@@ -5313,6 +5514,8 @@ end
|
|
5313
5514
|
# A node extension for `pair` nodes. This will be used in place of a plain
|
5314
5515
|
# node when the builder constructs the AST, making its methods available
|
5315
5516
|
# to all `pair` nodes within RuboCop.
|
5517
|
+
#
|
5518
|
+
# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#8
|
5316
5519
|
class RuboCop::AST::PairNode < ::RuboCop::AST::Node
|
5317
5520
|
include ::RuboCop::AST::HashElementNode
|
5318
5521
|
|
@@ -5379,6 +5582,8 @@ RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String)
|
|
5379
5582
|
# Common functionality for nodes that are parameterized:
|
5380
5583
|
# `send`, `super`, `zsuper`, `def`, `defs`
|
5381
5584
|
# and (modern only): `index`, `indexasgn`, `lambda`
|
5585
|
+
#
|
5586
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#10
|
5382
5587
|
module RuboCop::AST::ParameterizedNode
|
5383
5588
|
# Checks whether this node has any arguments.
|
5384
5589
|
#
|
@@ -5442,19 +5647,21 @@ end
|
|
5442
5647
|
# Requires implementing `first_argument_index`
|
5443
5648
|
# Implements `arguments` as `children[first_argument_index..-1]`
|
5444
5649
|
# and optimizes other calls
|
5650
|
+
#
|
5651
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#83
|
5445
5652
|
module RuboCop::AST::ParameterizedNode::RestArguments
|
5446
5653
|
include ::RuboCop::AST::ParameterizedNode
|
5447
5654
|
|
5448
5655
|
# @return [Array<Node>] arguments, if any
|
5449
5656
|
#
|
5450
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#
|
5657
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#89
|
5451
5658
|
def arguments; end
|
5452
5659
|
|
5453
5660
|
# Checks whether this node has any arguments.
|
5454
5661
|
#
|
5455
5662
|
# @return [Boolean] whether this node has any arguments
|
5456
5663
|
#
|
5457
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#
|
5664
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#119
|
5458
5665
|
def arguments?; end
|
5459
5666
|
|
5460
5667
|
# A shorthand for getting the first argument of the node.
|
@@ -5463,7 +5670,7 @@ module RuboCop::AST::ParameterizedNode::RestArguments
|
|
5463
5670
|
# @return [Node, nil] the first argument of the node,
|
5464
5671
|
# or `nil` if there are no arguments
|
5465
5672
|
#
|
5466
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#
|
5673
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#103
|
5467
5674
|
def first_argument; end
|
5468
5675
|
|
5469
5676
|
# A shorthand for getting the last argument of the node.
|
@@ -5472,13 +5679,18 @@ module RuboCop::AST::ParameterizedNode::RestArguments
|
|
5472
5679
|
# @return [Node, nil] the last argument of the node,
|
5473
5680
|
# or `nil` if there are no arguments
|
5474
5681
|
#
|
5475
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#
|
5682
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#112
|
5476
5683
|
def last_argument; end
|
5477
5684
|
end
|
5478
5685
|
|
5686
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#86
|
5687
|
+
RuboCop::AST::ParameterizedNode::RestArguments::EMPTY_ARGUMENTS = T.let(T.unsafe(nil), Array)
|
5688
|
+
|
5479
5689
|
# A specialized `ParameterizedNode` for node that have a single child
|
5480
5690
|
# containing either `nil`, an argument, or a `begin` node with all the
|
5481
5691
|
# arguments
|
5692
|
+
#
|
5693
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#66
|
5482
5694
|
module RuboCop::AST::ParameterizedNode::WrappedArguments
|
5483
5695
|
include ::RuboCop::AST::ParameterizedNode
|
5484
5696
|
|
@@ -5490,6 +5702,8 @@ end
|
|
5490
5702
|
|
5491
5703
|
# Common functionality for nodes that are predicates:
|
5492
5704
|
# `or`, `and` ...
|
5705
|
+
#
|
5706
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#7
|
5493
5707
|
module RuboCop::AST::PredicateOperatorNode
|
5494
5708
|
# Checks whether this is a logical operator.
|
5495
5709
|
#
|
@@ -5528,6 +5742,8 @@ RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String)
|
|
5528
5742
|
# A node extension for `procarg0` nodes.
|
5529
5743
|
# This will be used in place of a plain node when the builder constructs
|
5530
5744
|
# the AST, making its methods available to all `arg` nodes within RuboCop.
|
5745
|
+
#
|
5746
|
+
# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#8
|
5531
5747
|
class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode
|
5532
5748
|
# Returns the name of an argument.
|
5533
5749
|
#
|
@@ -5540,9 +5756,9 @@ end
|
|
5540
5756
|
# ProcessedSource contains objects which are generated by Parser
|
5541
5757
|
# and other information such as disabled lines for cops.
|
5542
5758
|
# It also provides a convenient way to access source lines.
|
5759
|
+
#
|
5760
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#11
|
5543
5761
|
class RuboCop::AST::ProcessedSource
|
5544
|
-
include ::RuboCop::Ext::ProcessedSource
|
5545
|
-
|
5546
5762
|
# @return [ProcessedSource] a new instance of ProcessedSource
|
5547
5763
|
#
|
5548
5764
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#26
|
@@ -5553,7 +5769,7 @@ class RuboCop::AST::ProcessedSource
|
|
5553
5769
|
|
5554
5770
|
# Returns the value of attribute ast.
|
5555
5771
|
#
|
5556
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5772
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5557
5773
|
def ast; end
|
5558
5774
|
|
5559
5775
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
|
@@ -5566,7 +5782,7 @@ class RuboCop::AST::ProcessedSource
|
|
5566
5782
|
|
5567
5783
|
# Returns the value of attribute buffer.
|
5568
5784
|
#
|
5569
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5785
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5570
5786
|
def buffer; end
|
5571
5787
|
|
5572
5788
|
# Raw source checksum for tracking infinite loops.
|
@@ -5589,7 +5805,7 @@ class RuboCop::AST::ProcessedSource
|
|
5589
5805
|
|
5590
5806
|
# Returns the value of attribute comments.
|
5591
5807
|
#
|
5592
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5808
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5593
5809
|
def comments; end
|
5594
5810
|
|
5595
5811
|
# Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
|
@@ -5611,7 +5827,7 @@ class RuboCop::AST::ProcessedSource
|
|
5611
5827
|
|
5612
5828
|
# Returns the value of attribute diagnostics.
|
5613
5829
|
#
|
5614
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5830
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5615
5831
|
def diagnostics; end
|
5616
5832
|
|
5617
5833
|
# @deprecated Use `comments.each`
|
@@ -5667,12 +5883,12 @@ class RuboCop::AST::ProcessedSource
|
|
5667
5883
|
|
5668
5884
|
# Returns the value of attribute parser_error.
|
5669
5885
|
#
|
5670
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5886
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5671
5887
|
def parser_error; end
|
5672
5888
|
|
5673
5889
|
# Returns the value of attribute path.
|
5674
5890
|
#
|
5675
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5891
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5676
5892
|
def path; end
|
5677
5893
|
|
5678
5894
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
|
@@ -5680,12 +5896,12 @@ class RuboCop::AST::ProcessedSource
|
|
5680
5896
|
|
5681
5897
|
# Returns the value of attribute raw_source.
|
5682
5898
|
#
|
5683
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5899
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5684
5900
|
def raw_source; end
|
5685
5901
|
|
5686
5902
|
# Returns the value of attribute ruby_version.
|
5687
5903
|
#
|
5688
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5904
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5689
5905
|
def ruby_version; end
|
5690
5906
|
|
5691
5907
|
# The tokens list is always sorted by token position, except for cases when heredoc
|
@@ -5702,7 +5918,7 @@ class RuboCop::AST::ProcessedSource
|
|
5702
5918
|
|
5703
5919
|
# Returns the value of attribute tokens.
|
5704
5920
|
#
|
5705
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5921
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
5706
5922
|
def tokens; end
|
5707
5923
|
|
5708
5924
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#166
|
@@ -5740,12 +5956,12 @@ class RuboCop::AST::ProcessedSource
|
|
5740
5956
|
def tokenize(parser); end
|
5741
5957
|
|
5742
5958
|
class << self
|
5743
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5959
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5744
5960
|
def from_file(path, ruby_version); end
|
5745
5961
|
end
|
5746
5962
|
end
|
5747
5963
|
|
5748
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5964
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
|
5749
5965
|
RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
|
5750
5966
|
|
5751
5967
|
# @api private
|
@@ -5756,6 +5972,8 @@ RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String)
|
|
5756
5972
|
# A node extension for `irange` and `erange` nodes. This will be used in
|
5757
5973
|
# place of a plain node when the builder constructs the AST, making its
|
5758
5974
|
# methods available to all `irange` and `erange` nodes within RuboCop.
|
5975
|
+
#
|
5976
|
+
# source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#8
|
5759
5977
|
class RuboCop::AST::RangeNode < ::RuboCop::AST::Node
|
5760
5978
|
# source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#9
|
5761
5979
|
def begin; end
|
@@ -5767,9 +5985,9 @@ end
|
|
5767
5985
|
# A node extension for `regexp` nodes. This will be used in place of a plain
|
5768
5986
|
# node when the builder constructs the AST, making its methods available
|
5769
5987
|
# to all `regexp` nodes within RuboCop.
|
5988
|
+
#
|
5989
|
+
# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#8
|
5770
5990
|
class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node
|
5771
|
-
include ::RuboCop::Ext::RegexpNode
|
5772
|
-
|
5773
5991
|
# @return [String] a string of regexp content
|
5774
5992
|
#
|
5775
5993
|
# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#37
|
@@ -5861,6 +6079,8 @@ RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash)
|
|
5861
6079
|
# A node extension for `resbody` nodes. This will be used in place of a
|
5862
6080
|
# plain node when the builder constructs the AST, making its methods
|
5863
6081
|
# available to all `resbody` nodes within RuboCop.
|
6082
|
+
#
|
6083
|
+
# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#8
|
5864
6084
|
class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node
|
5865
6085
|
# Returns the body of the `rescue` clause.
|
5866
6086
|
#
|
@@ -5894,6 +6114,8 @@ end
|
|
5894
6114
|
# A node extension for `rescue` nodes. This will be used in place of a
|
5895
6115
|
# plain node when the builder constructs the AST, making its methods
|
5896
6116
|
# available to all `rescue` nodes within RuboCop.
|
6117
|
+
#
|
6118
|
+
# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#8
|
5897
6119
|
class RuboCop::AST::RescueNode < ::RuboCop::AST::Node
|
5898
6120
|
# Returns the body of the rescue node.
|
5899
6121
|
#
|
@@ -5937,6 +6159,8 @@ end
|
|
5937
6159
|
# A node extension for `return` nodes. This will be used in place of a
|
5938
6160
|
# plain node when the builder constructs the AST, making its methods
|
5939
6161
|
# available to all `return` nodes within RuboCop.
|
6162
|
+
#
|
6163
|
+
# source://rubocop-ast//lib/rubocop/ast/node/return_node.rb#8
|
5940
6164
|
class RuboCop::AST::ReturnNode < ::RuboCop::AST::Node
|
5941
6165
|
include ::RuboCop::AST::ParameterizedNode
|
5942
6166
|
include ::RuboCop::AST::ParameterizedNode::WrappedArguments
|
@@ -5945,6 +6169,8 @@ end
|
|
5945
6169
|
# Responsible for compatibility with main gem
|
5946
6170
|
#
|
5947
6171
|
# @api private
|
6172
|
+
#
|
6173
|
+
# source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#8
|
5948
6174
|
module RuboCop::AST::RuboCopCompatibility
|
5949
6175
|
# @api private
|
5950
6176
|
#
|
@@ -5960,6 +6186,8 @@ RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Has
|
|
5960
6186
|
# A node extension for `sclass` nodes. This will be used in place of a
|
5961
6187
|
# plain node when the builder constructs the AST, making its methods
|
5962
6188
|
# available to all `sclass` nodes within RuboCop.
|
6189
|
+
#
|
6190
|
+
# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#8
|
5963
6191
|
class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node
|
5964
6192
|
# The body of this `sclass` node.
|
5965
6193
|
#
|
@@ -5979,6 +6207,8 @@ end
|
|
5979
6207
|
# A node extension for `send` nodes. This will be used in place of a plain
|
5980
6208
|
# node when the builder constructs the AST, making its methods available
|
5981
6209
|
# to all `send` nodes within RuboCop.
|
6210
|
+
#
|
6211
|
+
# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#8
|
5982
6212
|
class RuboCop::AST::SendNode < ::RuboCop::AST::Node
|
5983
6213
|
include ::RuboCop::AST::ParameterizedNode
|
5984
6214
|
include ::RuboCop::AST::ParameterizedNode::RestArguments
|
@@ -5988,9 +6218,14 @@ class RuboCop::AST::SendNode < ::RuboCop::AST::Node
|
|
5988
6218
|
# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#13
|
5989
6219
|
def attribute_accessor?(param0 = T.unsafe(nil)); end
|
5990
6220
|
|
6221
|
+
# @return [Boolean]
|
6222
|
+
#
|
6223
|
+
# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#18
|
6224
|
+
def send_type?; end
|
6225
|
+
|
5991
6226
|
private
|
5992
6227
|
|
5993
|
-
# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#
|
6228
|
+
# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#24
|
5994
6229
|
def first_argument_index; end
|
5995
6230
|
end
|
5996
6231
|
|
@@ -5998,6 +6233,8 @@ end
|
|
5998
6233
|
# `Parser::AST::Sexp`.
|
5999
6234
|
#
|
6000
6235
|
# @see https://www.rubydoc.info/gems/ast/AST/Sexp
|
6236
|
+
#
|
6237
|
+
# source://rubocop-ast//lib/rubocop/ast/sexp.rb#9
|
6001
6238
|
module RuboCop::AST::Sexp
|
6002
6239
|
# Creates a {Node} with type `type` and children `children`.
|
6003
6240
|
#
|
@@ -6008,6 +6245,8 @@ end
|
|
6008
6245
|
# A node extension for `str`, `dstr`, and `xstr` nodes. This will be used
|
6009
6246
|
# in place of a plain node when the builder constructs the AST, making
|
6010
6247
|
# its methods available to all `str` nodes within RuboCop.
|
6248
|
+
#
|
6249
|
+
# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#8
|
6011
6250
|
class RuboCop::AST::StrNode < ::RuboCop::AST::Node
|
6012
6251
|
include ::RuboCop::AST::BasicLiteralNode
|
6013
6252
|
|
@@ -6025,6 +6264,8 @@ end
|
|
6025
6264
|
# A node extension for `super`- and `zsuper` nodes. This will be used in
|
6026
6265
|
# place of a plain node when the builder constructs the AST, making its
|
6027
6266
|
# methods available to all `super`- and `zsuper` nodes within RuboCop.
|
6267
|
+
#
|
6268
|
+
# source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#8
|
6028
6269
|
class RuboCop::AST::SuperNode < ::RuboCop::AST::Node
|
6029
6270
|
include ::RuboCop::AST::ParameterizedNode
|
6030
6271
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
@@ -6045,163 +6286,172 @@ end
|
|
6045
6286
|
# A node extension for `sym` nodes. This will be used in place of a
|
6046
6287
|
# plain node when the builder constructs the AST, making its methods
|
6047
6288
|
# available to all `sym` nodes within RuboCop.
|
6289
|
+
#
|
6290
|
+
# source://rubocop-ast//lib/rubocop/ast/node/symbol_node.rb#8
|
6048
6291
|
class RuboCop::AST::SymbolNode < ::RuboCop::AST::Node
|
6049
6292
|
include ::RuboCop::AST::BasicLiteralNode
|
6050
6293
|
end
|
6051
6294
|
|
6052
6295
|
# A basic wrapper around Parser's tokens.
|
6296
|
+
#
|
6297
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#6
|
6053
6298
|
class RuboCop::AST::Token
|
6054
6299
|
# @return [Token] a new instance of Token
|
6055
6300
|
#
|
6056
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6301
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#17
|
6057
6302
|
def initialize(pos, type, text); end
|
6058
6303
|
|
6059
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6304
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#32
|
6060
6305
|
def begin_pos; end
|
6061
6306
|
|
6062
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6307
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#28
|
6063
6308
|
def column; end
|
6064
6309
|
|
6065
6310
|
# @return [Boolean]
|
6066
6311
|
#
|
6067
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6312
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#101
|
6068
6313
|
def comma?; end
|
6069
6314
|
|
6070
6315
|
# Type Predicates
|
6071
6316
|
#
|
6072
6317
|
# @return [Boolean]
|
6073
6318
|
#
|
6074
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6319
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#57
|
6075
6320
|
def comment?; end
|
6076
6321
|
|
6077
6322
|
# @return [Boolean]
|
6078
6323
|
#
|
6079
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6324
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#105
|
6080
6325
|
def dot?; end
|
6081
6326
|
|
6082
6327
|
# @return [Boolean]
|
6083
6328
|
#
|
6084
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6329
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#117
|
6085
6330
|
def end?; end
|
6086
6331
|
|
6087
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6332
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#36
|
6088
6333
|
def end_pos; end
|
6089
6334
|
|
6090
6335
|
# @return [Boolean]
|
6091
6336
|
#
|
6092
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6337
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#121
|
6093
6338
|
def equal_sign?; end
|
6094
6339
|
|
6095
6340
|
# @return [Boolean]
|
6096
6341
|
#
|
6097
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6342
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#65
|
6098
6343
|
def left_array_bracket?; end
|
6099
6344
|
|
6100
6345
|
# @return [Boolean]
|
6101
6346
|
#
|
6102
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6347
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#81
|
6103
6348
|
def left_brace?; end
|
6104
6349
|
|
6105
6350
|
# @return [Boolean]
|
6106
6351
|
#
|
6107
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6352
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#73
|
6108
6353
|
def left_bracket?; end
|
6109
6354
|
|
6110
6355
|
# @return [Boolean]
|
6111
6356
|
#
|
6112
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6357
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#85
|
6113
6358
|
def left_curly_brace?; end
|
6114
6359
|
|
6115
6360
|
# @return [Boolean]
|
6116
6361
|
#
|
6117
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6362
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#93
|
6118
6363
|
def left_parens?; end
|
6119
6364
|
|
6120
6365
|
# @return [Boolean]
|
6121
6366
|
#
|
6122
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6367
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#69
|
6123
6368
|
def left_ref_bracket?; end
|
6124
6369
|
|
6125
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6370
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#24
|
6126
6371
|
def line; end
|
6127
6372
|
|
6128
6373
|
# @return [Boolean]
|
6129
6374
|
#
|
6130
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6375
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#125
|
6131
6376
|
def new_line?; end
|
6132
6377
|
|
6133
6378
|
# Returns the value of attribute pos.
|
6134
6379
|
#
|
6135
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6380
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#9
|
6136
6381
|
def pos; end
|
6137
6382
|
|
6138
6383
|
# @return [Boolean]
|
6139
6384
|
#
|
6140
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6385
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#109
|
6141
6386
|
def regexp_dots?; end
|
6142
6387
|
|
6143
6388
|
# @return [Boolean]
|
6144
6389
|
#
|
6145
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6390
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#113
|
6146
6391
|
def rescue_modifier?; end
|
6147
6392
|
|
6148
6393
|
# @return [Boolean]
|
6149
6394
|
#
|
6150
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6395
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#77
|
6151
6396
|
def right_bracket?; end
|
6152
6397
|
|
6153
6398
|
# @return [Boolean]
|
6154
6399
|
#
|
6155
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6400
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#89
|
6156
6401
|
def right_curly_brace?; end
|
6157
6402
|
|
6158
6403
|
# @return [Boolean]
|
6159
6404
|
#
|
6160
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6405
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#97
|
6161
6406
|
def right_parens?; end
|
6162
6407
|
|
6163
6408
|
# @return [Boolean]
|
6164
6409
|
#
|
6165
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6410
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#61
|
6166
6411
|
def semicolon?; end
|
6167
6412
|
|
6168
6413
|
# Checks if there is whitespace after token
|
6169
6414
|
#
|
6170
6415
|
# @return [Boolean]
|
6171
6416
|
#
|
6172
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6417
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#45
|
6173
6418
|
def space_after?; end
|
6174
6419
|
|
6175
6420
|
# Checks if there is whitespace before token
|
6176
6421
|
#
|
6177
6422
|
# @return [Boolean]
|
6178
6423
|
#
|
6179
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6424
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#50
|
6180
6425
|
def space_before?; end
|
6181
6426
|
|
6182
6427
|
# Returns the value of attribute text.
|
6183
6428
|
#
|
6184
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6429
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#9
|
6185
6430
|
def text; end
|
6186
6431
|
|
6187
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6432
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#40
|
6188
6433
|
def to_s; end
|
6189
6434
|
|
6190
6435
|
# Returns the value of attribute type.
|
6191
6436
|
#
|
6192
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6437
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#9
|
6193
6438
|
def type; end
|
6194
6439
|
|
6195
6440
|
class << self
|
6196
|
-
# source://rubocop-ast//lib/rubocop/ast/token.rb#
|
6441
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#11
|
6197
6442
|
def from_parser_token(parser_token); end
|
6198
6443
|
end
|
6199
6444
|
end
|
6200
6445
|
|
6446
|
+
# source://rubocop-ast//lib/rubocop/ast/token.rb#7
|
6447
|
+
RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array)
|
6448
|
+
|
6201
6449
|
# Provides methods for traversing an AST.
|
6202
6450
|
# Does not transform an AST; for that, use Parser::AST::Processor.
|
6203
6451
|
# Override methods to perform custom processing. Remember to call `super`
|
6204
6452
|
# if you want to recursively process descendant nodes.
|
6453
|
+
#
|
6454
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#9
|
6205
6455
|
module RuboCop::AST::Traversal
|
6206
6456
|
extend ::RuboCop::AST::Traversal::CallbackCompiler
|
6207
6457
|
|
@@ -6600,6 +6850,8 @@ module RuboCop::AST::Traversal
|
|
6600
6850
|
end
|
6601
6851
|
|
6602
6852
|
# @api private
|
6853
|
+
#
|
6854
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#25
|
6603
6855
|
module RuboCop::AST::Traversal::CallbackCompiler
|
6604
6856
|
# @api private
|
6605
6857
|
#
|
@@ -6630,6 +6882,8 @@ RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash)
|
|
6630
6882
|
# Only for debugging.
|
6631
6883
|
#
|
6632
6884
|
# @api private
|
6885
|
+
#
|
6886
|
+
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#12
|
6633
6887
|
class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end
|
6634
6888
|
|
6635
6889
|
# source://rubocop-ast//lib/rubocop/ast/traversal.rb#100
|
@@ -6641,6 +6895,8 @@ RuboCop::AST::Traversal::TYPE_TO_METHOD = T.let(T.unsafe(nil), Hash)
|
|
6641
6895
|
# A node extension for `until` nodes. This will be used in place of a plain
|
6642
6896
|
# node when the builder constructs the AST, making its methods available
|
6643
6897
|
# to all `until` nodes within RuboCop.
|
6898
|
+
#
|
6899
|
+
# source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#8
|
6644
6900
|
class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
|
6645
6901
|
include ::RuboCop::AST::ConditionalNode
|
6646
6902
|
include ::RuboCop::AST::ModifierNode
|
@@ -6668,6 +6924,7 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
|
|
6668
6924
|
def keyword; end
|
6669
6925
|
end
|
6670
6926
|
|
6927
|
+
# source://rubocop-ast//lib/rubocop/ast/version.rb#5
|
6671
6928
|
module RuboCop::AST::Version; end
|
6672
6929
|
|
6673
6930
|
# source://rubocop-ast//lib/rubocop/ast/version.rb#6
|
@@ -6676,6 +6933,8 @@ RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String)
|
|
6676
6933
|
# A node extension for `when` nodes. This will be used in place of a plain
|
6677
6934
|
# node when the builder constructs the AST, making its methods available
|
6678
6935
|
# to all `when` nodes within RuboCop.
|
6936
|
+
#
|
6937
|
+
# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#8
|
6679
6938
|
class RuboCop::AST::WhenNode < ::RuboCop::AST::Node
|
6680
6939
|
# Returns the body of the `when` node.
|
6681
6940
|
#
|
@@ -6714,6 +6973,8 @@ end
|
|
6714
6973
|
# A node extension for `while` nodes. This will be used in place of a plain
|
6715
6974
|
# node when the builder constructs the AST, making its methods available
|
6716
6975
|
# to all `while` nodes within RuboCop.
|
6976
|
+
#
|
6977
|
+
# source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#8
|
6717
6978
|
class RuboCop::AST::WhileNode < ::RuboCop::AST::Node
|
6718
6979
|
include ::RuboCop::AST::ConditionalNode
|
6719
6980
|
include ::RuboCop::AST::ModifierNode
|
@@ -6744,6 +7005,8 @@ end
|
|
6744
7005
|
# A node extension for `yield` nodes. This will be used in place of a plain
|
6745
7006
|
# node when the builder constructs the AST, making its methods available
|
6746
7007
|
# to all `yield` nodes within RuboCop.
|
7008
|
+
#
|
7009
|
+
# source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#8
|
6747
7010
|
class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
|
6748
7011
|
include ::RuboCop::AST::ParameterizedNode
|
6749
7012
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
@@ -6761,30 +7024,11 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
|
|
6761
7024
|
def node_parts; end
|
6762
7025
|
end
|
6763
7026
|
|
6764
|
-
|
6765
|
-
class RuboCop::Error < ::StandardError; end
|
6766
|
-
class RuboCop::IncorrectCopNameError < ::StandardError; end
|
6767
|
-
|
6768
|
-
# source://rubocop/1.41.0/lib/rubocop/ast_aliases.rb#5
|
7027
|
+
# source://rubocop/1.43.0/lib/rubocop/ast_aliases.rb#5
|
6769
7028
|
RuboCop::NodePattern = RuboCop::AST::NodePattern
|
6770
7029
|
|
6771
|
-
|
6772
|
-
module RuboCop::OptionsHelp; end
|
6773
|
-
|
6774
|
-
# source://rubocop/1.41.0/lib/rubocop/options.rb#470
|
6775
|
-
RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array)
|
6776
|
-
|
6777
|
-
# source://rubocop/1.41.0/lib/rubocop/options.rb#469
|
6778
|
-
RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String)
|
6779
|
-
|
6780
|
-
# source://rubocop/1.41.0/lib/rubocop/options.rb#472
|
6781
|
-
RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash)
|
6782
|
-
|
6783
|
-
# source://rubocop/1.41.0/lib/rubocop/ast_aliases.rb#6
|
7030
|
+
# source://rubocop/1.43.0/lib/rubocop/ast_aliases.rb#6
|
6784
7031
|
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
6785
7032
|
|
6786
|
-
# source://rubocop/1.
|
7033
|
+
# source://rubocop/1.43.0/lib/rubocop/ast_aliases.rb#7
|
6787
7034
|
RuboCop::Token = RuboCop::AST::Token
|
6788
|
-
|
6789
|
-
class RuboCop::ValidationError < ::RuboCop::Error; end
|
6790
|
-
class RuboCop::Warning < ::StandardError; end
|