activerecord-ejection_seat 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +11 -8
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +48 -61
- data/README.md +29 -8
- 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.2.rbi +6022 -0
- data/sorbet/rbi/gems/activerecord@7.0.4.2.rbi +37791 -0
- data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +18127 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.0.rbi +11570 -0
- data/sorbet/rbi/gems/irb@1.6.2.rbi +35 -50
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.2.rbi → language_server-protocol@3.17.0.3.rbi} +0 -0
- data/sorbet/rbi/gems/minitest@5.17.0.rbi +2319 -0
- data/sorbet/rbi/gems/{parser@3.1.3.0.rbi → parser@3.2.1.0.rbi} +1302 -927
- data/sorbet/rbi/gems/{prettier_print@1.1.0.rbi → prettier_print@1.2.0.rbi} +0 -0
- data/sorbet/rbi/gems/{regexp_parser@2.6.1.rbi → regexp_parser@2.7.0.rbi} +598 -144
- data/sorbet/rbi/gems/{rubocop-ast@1.24.0.rbi → rubocop-ast@1.26.0.rbi} +777 -533
- data/sorbet/rbi/gems/rubocop-minitest@0.27.0.rbi +2386 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.6.11.rbi → rubocop-sorbet@0.7.0.rbi} +158 -114
- data/sorbet/rbi/gems/{rubocop@1.41.0.rbi → rubocop@1.45.1.rbi} +3841 -1338
- data/sorbet/rbi/gems/{ruby-lsp@0.3.7.rbi → ruby-lsp@0.4.0.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@6.0.0.rbi} +0 -0
- data/sorbet/rbi/gems/{tapioca@0.10.4.rbi → tapioca@0.10.5.rbi} +279 -96
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
- 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 +39 -37
- 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/concurrent-ruby@1.1.10.rbi +0 -8
- 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
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -8
|
@@ -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,477 @@ 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
|
|
683
|
+
def compact_blank(*args, **_arg1, &block); end
|
|
684
|
+
|
|
685
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
686
|
+
def compact_blank!(*args, **_arg1, &block); end
|
|
687
|
+
|
|
688
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
642
689
|
def concat(*args, **_arg1, &block); end
|
|
643
690
|
|
|
644
|
-
# source://forwardable/1.3.
|
|
691
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
645
692
|
def count(*args, **_arg1, &block); end
|
|
646
693
|
|
|
647
|
-
# source://forwardable/1.3.
|
|
694
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
648
695
|
def cycle(*args, **_arg1, &block); end
|
|
649
696
|
|
|
650
|
-
# source://forwardable/1.3.
|
|
697
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
651
698
|
def deconstruct(*args, **_arg1, &block); end
|
|
652
699
|
|
|
653
|
-
# source://forwardable/1.3.
|
|
700
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
654
701
|
def delete(*args, **_arg1, &block); end
|
|
655
702
|
|
|
656
|
-
# source://forwardable/1.3.
|
|
703
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
657
704
|
def delete_at(*args, **_arg1, &block); end
|
|
658
705
|
|
|
659
|
-
# source://forwardable/1.3.
|
|
706
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
660
707
|
def delete_if(*args, **_arg1, &block); end
|
|
661
708
|
|
|
662
|
-
# source://forwardable/1.3.
|
|
709
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
663
710
|
def detect(*args, **_arg1, &block); end
|
|
664
711
|
|
|
665
|
-
# source://forwardable/1.3.
|
|
712
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
666
713
|
def difference(*args, **_arg1, &block); end
|
|
667
714
|
|
|
668
|
-
# source://forwardable/1.3.
|
|
715
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
669
716
|
def dig(*args, **_arg1, &block); end
|
|
670
717
|
|
|
671
|
-
# source://forwardable/1.3.
|
|
718
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
672
719
|
def drop(*args, **_arg1, &block); end
|
|
673
720
|
|
|
674
|
-
# source://forwardable/1.3.
|
|
721
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
675
722
|
def drop_while(*args, **_arg1, &block); end
|
|
676
723
|
|
|
677
|
-
# source://forwardable/1.3.
|
|
724
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
678
725
|
def each(*args, **_arg1, &block); end
|
|
679
726
|
|
|
680
|
-
# source://forwardable/1.3.
|
|
727
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
681
728
|
def each_cons(*args, **_arg1, &block); end
|
|
682
729
|
|
|
683
|
-
# source://forwardable/1.3.
|
|
730
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
684
731
|
def each_entry(*args, **_arg1, &block); end
|
|
685
732
|
|
|
686
|
-
# source://forwardable/1.3.
|
|
733
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
687
734
|
def each_index(*args, **_arg1, &block); end
|
|
688
735
|
|
|
689
|
-
# source://forwardable/1.3.
|
|
736
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
690
737
|
def each_slice(*args, **_arg1, &block); end
|
|
691
738
|
|
|
692
|
-
# source://forwardable/1.3.
|
|
739
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
693
740
|
def each_with_index(*args, **_arg1, &block); end
|
|
694
741
|
|
|
695
|
-
# source://forwardable/1.3.
|
|
742
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
696
743
|
def each_with_object(*args, **_arg1, &block); end
|
|
697
744
|
|
|
698
|
-
# source://forwardable/1.3.
|
|
745
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
699
746
|
def empty?(*args, **_arg1, &block); end
|
|
700
747
|
|
|
701
|
-
# source://forwardable/1.3.
|
|
748
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
702
749
|
def entries(*args, **_arg1, &block); end
|
|
703
750
|
|
|
704
|
-
# source://forwardable/1.3.
|
|
751
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
752
|
+
def exclude?(*args, **_arg1, &block); end
|
|
753
|
+
|
|
754
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
755
|
+
def excluding(*args, **_arg1, &block); end
|
|
756
|
+
|
|
757
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
758
|
+
def extract_options!(*args, **_arg1, &block); end
|
|
759
|
+
|
|
760
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
705
761
|
def fetch(*args, **_arg1, &block); end
|
|
706
762
|
|
|
707
|
-
# source://forwardable/1.3.
|
|
763
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
708
764
|
def fill(*args, **_arg1, &block); end
|
|
709
765
|
|
|
710
|
-
# source://forwardable/1.3.
|
|
766
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
711
767
|
def filter(*args, **_arg1, &block); end
|
|
712
768
|
|
|
713
|
-
# source://forwardable/1.3.
|
|
769
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
714
770
|
def filter!(*args, **_arg1, &block); end
|
|
715
771
|
|
|
716
|
-
# source://forwardable/1.3.
|
|
772
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
717
773
|
def filter_map(*args, **_arg1, &block); end
|
|
718
774
|
|
|
719
|
-
# source://forwardable/1.3.
|
|
775
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
720
776
|
def find(*args, **_arg1, &block); end
|
|
721
777
|
|
|
722
|
-
# source://forwardable/1.3.
|
|
778
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
723
779
|
def find_all(*args, **_arg1, &block); end
|
|
724
780
|
|
|
725
|
-
# source://forwardable/1.3.
|
|
781
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
726
782
|
def find_index(*args, **_arg1, &block); end
|
|
727
783
|
|
|
728
|
-
# source://forwardable/1.3.
|
|
784
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
729
785
|
def first(*args, **_arg1, &block); end
|
|
730
786
|
|
|
731
|
-
# source://forwardable/1.3.
|
|
787
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
732
788
|
def flat_map(*args, **_arg1, &block); end
|
|
733
789
|
|
|
734
|
-
# source://forwardable/1.3.
|
|
790
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
735
791
|
def flatten(*args, **_arg1, &block); end
|
|
736
792
|
|
|
737
|
-
# source://forwardable/1.3.
|
|
793
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
738
794
|
def flatten!(*args, **_arg1, &block); end
|
|
739
795
|
|
|
740
|
-
# source://forwardable/1.3.
|
|
796
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
741
797
|
def grep(*args, **_arg1, &block); end
|
|
742
798
|
|
|
743
|
-
# source://forwardable/1.3.
|
|
799
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
744
800
|
def grep_v(*args, **_arg1, &block); end
|
|
745
801
|
|
|
746
|
-
# source://forwardable/1.3.
|
|
802
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
747
803
|
def group_by(*args, **_arg1, &block); end
|
|
748
804
|
|
|
749
|
-
# source://forwardable/1.3.
|
|
805
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
806
|
+
def in_order_of(*args, **_arg1, &block); end
|
|
807
|
+
|
|
808
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
750
809
|
def include?(*args, **_arg1, &block); end
|
|
751
810
|
|
|
752
|
-
# source://forwardable/1.3.
|
|
811
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
812
|
+
def including(*args, **_arg1, &block); end
|
|
813
|
+
|
|
814
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
753
815
|
def index(*args, **_arg1, &block); end
|
|
754
816
|
|
|
755
|
-
# source://forwardable/1.3.
|
|
817
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
818
|
+
def index_by(*args, **_arg1, &block); end
|
|
819
|
+
|
|
820
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
821
|
+
def index_with(*args, **_arg1, &block); end
|
|
822
|
+
|
|
823
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
756
824
|
def inject(*args, **_arg1, &block); end
|
|
757
825
|
|
|
758
|
-
# source://forwardable/1.3.
|
|
826
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
759
827
|
def insert(*args, **_arg1, &block); end
|
|
760
828
|
|
|
761
|
-
# source://forwardable/1.3.
|
|
829
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
762
830
|
def intersect?(*args, **_arg1, &block); end
|
|
763
831
|
|
|
764
|
-
# source://forwardable/1.3.
|
|
832
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
765
833
|
def intersection(*args, **_arg1, &block); end
|
|
766
834
|
|
|
767
|
-
# source://forwardable/1.3.
|
|
835
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
768
836
|
def join(*args, **_arg1, &block); end
|
|
769
837
|
|
|
770
|
-
# source://forwardable/1.3.
|
|
838
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
771
839
|
def keep_if(*args, **_arg1, &block); end
|
|
772
840
|
|
|
773
|
-
# source://forwardable/1.3.
|
|
841
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
774
842
|
def last(*args, **_arg1, &block); end
|
|
775
843
|
|
|
776
|
-
# source://forwardable/1.3.
|
|
844
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
777
845
|
def lazy(*args, **_arg1, &block); end
|
|
778
846
|
|
|
779
|
-
# source://forwardable/1.3.
|
|
847
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
780
848
|
def length(*args, **_arg1, &block); end
|
|
781
849
|
|
|
782
|
-
# source://forwardable/1.3.
|
|
850
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
851
|
+
def many?(*args, **_arg1, &block); end
|
|
852
|
+
|
|
853
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
783
854
|
def map(*args, **_arg1, &block); end
|
|
784
855
|
|
|
785
|
-
# source://forwardable/1.3.
|
|
856
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
786
857
|
def map!(*args, **_arg1, &block); end
|
|
787
858
|
|
|
788
|
-
# source://forwardable/1.3.
|
|
859
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
789
860
|
def max(*args, **_arg1, &block); end
|
|
790
861
|
|
|
791
|
-
# source://forwardable/1.3.
|
|
862
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
792
863
|
def max_by(*args, **_arg1, &block); end
|
|
793
864
|
|
|
794
|
-
# source://forwardable/1.3.
|
|
865
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
866
|
+
def maximum(*args, **_arg1, &block); end
|
|
867
|
+
|
|
868
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
795
869
|
def member?(*args, **_arg1, &block); end
|
|
796
870
|
|
|
797
|
-
# source://forwardable/1.3.
|
|
871
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
798
872
|
def min(*args, **_arg1, &block); end
|
|
799
873
|
|
|
800
|
-
# source://forwardable/1.3.
|
|
874
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
801
875
|
def min_by(*args, **_arg1, &block); end
|
|
802
876
|
|
|
803
|
-
# source://forwardable/1.3.
|
|
877
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
878
|
+
def minimum(*args, **_arg1, &block); end
|
|
879
|
+
|
|
880
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
804
881
|
def minmax(*args, **_arg1, &block); end
|
|
805
882
|
|
|
806
|
-
# source://forwardable/1.3.
|
|
883
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
807
884
|
def minmax_by(*args, **_arg1, &block); end
|
|
808
885
|
|
|
809
|
-
# source://forwardable/1.3.
|
|
886
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
810
887
|
def none?(*args, **_arg1, &block); end
|
|
811
888
|
|
|
812
|
-
# source://forwardable/1.3.
|
|
889
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
813
890
|
def one?(*args, **_arg1, &block); end
|
|
814
891
|
|
|
815
|
-
# source://forwardable/1.3.
|
|
892
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
816
893
|
def pack(*args, **_arg1, &block); end
|
|
817
894
|
|
|
818
|
-
# source://forwardable/1.3.
|
|
895
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
819
896
|
def partition(*args, **_arg1, &block); end
|
|
820
897
|
|
|
821
|
-
# source://forwardable/1.3.
|
|
898
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
822
899
|
def permutation(*args, **_arg1, &block); end
|
|
823
900
|
|
|
824
|
-
# source://forwardable/1.3.
|
|
901
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
902
|
+
def pick(*args, **_arg1, &block); end
|
|
903
|
+
|
|
904
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
825
905
|
def place(*args, **_arg1, &block); end
|
|
826
906
|
|
|
827
|
-
# source://forwardable/1.3.
|
|
907
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
908
|
+
def pluck(*args, **_arg1, &block); end
|
|
909
|
+
|
|
910
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
828
911
|
def pop(*args, **_arg1, &block); end
|
|
829
912
|
|
|
830
|
-
# source://forwardable/1.3.
|
|
913
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
831
914
|
def prepend(*args, **_arg1, &block); end
|
|
832
915
|
|
|
833
|
-
# source://forwardable/1.3.
|
|
916
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
834
917
|
def product(*args, **_arg1, &block); end
|
|
835
918
|
|
|
836
|
-
# source://forwardable/1.3.
|
|
919
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
837
920
|
def push(*args, **_arg1, &block); end
|
|
838
921
|
|
|
839
|
-
# source://forwardable/1.3.
|
|
922
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
840
923
|
def rassoc(*args, **_arg1, &block); end
|
|
841
924
|
|
|
842
|
-
# source://forwardable/1.3.
|
|
925
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
843
926
|
def reduce(*args, **_arg1, &block); end
|
|
844
927
|
|
|
845
|
-
# source://forwardable/1.3.
|
|
928
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
846
929
|
def reject(*args, **_arg1, &block); end
|
|
847
930
|
|
|
848
|
-
# source://forwardable/1.3.
|
|
931
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
849
932
|
def reject!(*args, **_arg1, &block); end
|
|
850
933
|
|
|
851
|
-
# source://forwardable/1.3.
|
|
934
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
852
935
|
def repeated_combination(*args, **_arg1, &block); end
|
|
853
936
|
|
|
854
|
-
# source://forwardable/1.3.
|
|
937
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
855
938
|
def repeated_permutation(*args, **_arg1, &block); end
|
|
856
939
|
|
|
857
|
-
# source://forwardable/1.3.
|
|
940
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
858
941
|
def replace(*args, **_arg1, &block); end
|
|
859
942
|
|
|
860
|
-
# source://forwardable/1.3.
|
|
943
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
861
944
|
def reverse(*args, **_arg1, &block); end
|
|
862
945
|
|
|
863
|
-
# source://forwardable/1.3.
|
|
946
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
864
947
|
def reverse!(*args, **_arg1, &block); end
|
|
865
948
|
|
|
866
|
-
# source://forwardable/1.3.
|
|
949
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
867
950
|
def reverse_each(*args, **_arg1, &block); end
|
|
868
951
|
|
|
869
|
-
# source://forwardable/1.3.
|
|
952
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
870
953
|
def rindex(*args, **_arg1, &block); end
|
|
871
954
|
|
|
872
|
-
# source://forwardable/1.3.
|
|
955
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
873
956
|
def rotate(*args, **_arg1, &block); end
|
|
874
957
|
|
|
875
|
-
# source://forwardable/1.3.
|
|
958
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
876
959
|
def rotate!(*args, **_arg1, &block); end
|
|
877
960
|
|
|
878
|
-
# source://forwardable/1.3.
|
|
961
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
879
962
|
def sample(*args, **_arg1, &block); end
|
|
880
963
|
|
|
881
|
-
# source://forwardable/1.3.
|
|
964
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
882
965
|
def select(*args, **_arg1, &block); end
|
|
883
966
|
|
|
884
|
-
# source://forwardable/1.3.
|
|
967
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
885
968
|
def select!(*args, **_arg1, &block); end
|
|
886
969
|
|
|
887
|
-
# source://forwardable/1.3.
|
|
970
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
888
971
|
def shelljoin(*args, **_arg1, &block); end
|
|
889
972
|
|
|
890
|
-
# source://forwardable/1.3.
|
|
973
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
891
974
|
def shift(*args, **_arg1, &block); end
|
|
892
975
|
|
|
893
|
-
# source://forwardable/1.3.
|
|
976
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
894
977
|
def shuffle(*args, **_arg1, &block); end
|
|
895
978
|
|
|
896
|
-
# source://forwardable/1.3.
|
|
979
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
897
980
|
def shuffle!(*args, **_arg1, &block); end
|
|
898
981
|
|
|
899
|
-
# source://forwardable/1.3.
|
|
982
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
900
983
|
def size(*args, **_arg1, &block); end
|
|
901
984
|
|
|
902
|
-
# source://forwardable/1.3.
|
|
985
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
903
986
|
def slice(*args, **_arg1, &block); end
|
|
904
987
|
|
|
905
|
-
# source://forwardable/1.3.
|
|
988
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
906
989
|
def slice!(*args, **_arg1, &block); end
|
|
907
990
|
|
|
908
|
-
# source://forwardable/1.3.
|
|
991
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
909
992
|
def slice_after(*args, **_arg1, &block); end
|
|
910
993
|
|
|
911
|
-
# source://forwardable/1.3.
|
|
994
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
912
995
|
def slice_before(*args, **_arg1, &block); end
|
|
913
996
|
|
|
914
|
-
# source://forwardable/1.3.
|
|
997
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
915
998
|
def slice_when(*args, **_arg1, &block); end
|
|
916
999
|
|
|
917
|
-
# source://forwardable/1.3.
|
|
1000
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1001
|
+
def sole(*args, **_arg1, &block); end
|
|
1002
|
+
|
|
1003
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
918
1004
|
def sort(*args, **_arg1, &block); end
|
|
919
1005
|
|
|
920
|
-
# source://forwardable/1.3.
|
|
1006
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
921
1007
|
def sort!(*args, **_arg1, &block); end
|
|
922
1008
|
|
|
923
|
-
# source://forwardable/1.3.
|
|
1009
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
924
1010
|
def sort_by(*args, **_arg1, &block); end
|
|
925
1011
|
|
|
926
|
-
# source://forwardable/1.3.
|
|
1012
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
927
1013
|
def sort_by!(*args, **_arg1, &block); end
|
|
928
1014
|
|
|
929
|
-
# source://forwardable/1.3.
|
|
1015
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
930
1016
|
def sum(*args, **_arg1, &block); end
|
|
931
1017
|
|
|
932
|
-
# source://forwardable/1.3.
|
|
1018
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
933
1019
|
def take(*args, **_arg1, &block); end
|
|
934
1020
|
|
|
935
|
-
# source://forwardable/1.3.
|
|
1021
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
936
1022
|
def take_while(*args, **_arg1, &block); end
|
|
937
1023
|
|
|
938
|
-
# source://forwardable/1.3.
|
|
1024
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
939
1025
|
def tally(*args, **_arg1, &block); end
|
|
940
1026
|
|
|
941
|
-
# source://forwardable/1.3.
|
|
1027
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
942
1028
|
def to_ary(*args, **_arg1, &block); end
|
|
943
1029
|
|
|
944
|
-
# source://forwardable/1.3.
|
|
1030
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1031
|
+
def to_default_s(*args, **_arg1, &block); end
|
|
1032
|
+
|
|
1033
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1034
|
+
def to_formatted_s(*args, **_arg1, &block); end
|
|
1035
|
+
|
|
1036
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1037
|
+
def to_fs(*args, **_arg1, &block); end
|
|
1038
|
+
|
|
1039
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
945
1040
|
def to_h(*args, **_arg1, &block); end
|
|
946
1041
|
|
|
947
|
-
# source://forwardable/1.3.
|
|
1042
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1043
|
+
def to_sentence(*args, **_arg1, &block); end
|
|
1044
|
+
|
|
1045
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
948
1046
|
def to_set(*args, **_arg1, &block); end
|
|
949
1047
|
|
|
950
|
-
# source://forwardable/1.3.
|
|
1048
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1049
|
+
def to_xml(*args, **_arg1, &block); end
|
|
1050
|
+
|
|
1051
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
951
1052
|
def transpose(*args, **_arg1, &block); end
|
|
952
1053
|
|
|
953
|
-
# source://forwardable/1.3.
|
|
1054
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
954
1055
|
def union(*args, **_arg1, &block); end
|
|
955
1056
|
|
|
956
|
-
# source://forwardable/1.3.
|
|
1057
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
957
1058
|
def uniq(*args, **_arg1, &block); end
|
|
958
1059
|
|
|
959
|
-
# source://forwardable/1.3.
|
|
1060
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
960
1061
|
def uniq!(*args, **_arg1, &block); end
|
|
961
1062
|
|
|
962
|
-
# source://forwardable/1.3.
|
|
1063
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
963
1064
|
def unshift(*args, **_arg1, &block); end
|
|
964
1065
|
|
|
965
|
-
# source://forwardable/1.3.
|
|
1066
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
966
1067
|
def values_at(*args, **_arg1, &block); end
|
|
967
1068
|
|
|
968
|
-
# source://forwardable/1.3.
|
|
1069
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1070
|
+
def without(*args, **_arg1, &block); end
|
|
1071
|
+
|
|
1072
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
969
1073
|
def zip(*args, **_arg1, &block); end
|
|
970
1074
|
|
|
971
|
-
# source://forwardable/1.3.
|
|
1075
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
972
1076
|
def |(*args, **_arg1, &block); end
|
|
973
1077
|
end
|
|
974
1078
|
|
|
@@ -979,6 +1083,8 @@ RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array)
|
|
|
979
1083
|
# `if`, `while`, `until`, `case`.
|
|
980
1084
|
# This currently doesn't include `when` nodes, because they have multiple
|
|
981
1085
|
# conditions, and need to be checked for that.
|
|
1086
|
+
#
|
|
1087
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#9
|
|
982
1088
|
module RuboCop::AST::ConditionalNode
|
|
983
1089
|
# Returns the body associated with the condition. This works together with
|
|
984
1090
|
# each node's custom destructuring method to select the correct part of
|
|
@@ -1015,6 +1121,8 @@ module RuboCop::AST::ConditionalNode
|
|
|
1015
1121
|
end
|
|
1016
1122
|
|
|
1017
1123
|
# A node extension for `const` nodes.
|
|
1124
|
+
#
|
|
1125
|
+
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6
|
|
1018
1126
|
class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
|
1019
1127
|
# @return [Boolean] if the constant starts with `::` (aka s(:cbase))
|
|
1020
1128
|
#
|
|
@@ -1061,9 +1169,23 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
|
|
1061
1169
|
def short_name; end
|
|
1062
1170
|
end
|
|
1063
1171
|
|
|
1172
|
+
# A node extension for `csend` nodes. This will be used in place of a plain
|
|
1173
|
+
# node when the builder constructs the AST, making its methods available
|
|
1174
|
+
# to all `csend` nodes within RuboCop.
|
|
1175
|
+
#
|
|
1176
|
+
# source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#8
|
|
1177
|
+
class RuboCop::AST::CsendNode < ::RuboCop::AST::SendNode
|
|
1178
|
+
# @return [Boolean]
|
|
1179
|
+
#
|
|
1180
|
+
# source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#9
|
|
1181
|
+
def send_type?; end
|
|
1182
|
+
end
|
|
1183
|
+
|
|
1064
1184
|
# A node extension for `def` nodes. This will be used in place of a plain
|
|
1065
1185
|
# node when the builder constructs the AST, making its methods available
|
|
1066
1186
|
# to all `def` nodes within RuboCop.
|
|
1187
|
+
#
|
|
1188
|
+
# source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#8
|
|
1067
1189
|
class RuboCop::AST::DefNode < ::RuboCop::AST::Node
|
|
1068
1190
|
include ::RuboCop::AST::ParameterizedNode
|
|
1069
1191
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
|
@@ -1125,6 +1247,8 @@ end
|
|
|
1125
1247
|
# A node extension for `defined?` nodes. This will be used in place of a
|
|
1126
1248
|
# plain node when the builder constructs the AST, making its methods
|
|
1127
1249
|
# available to all `send` nodes within RuboCop.
|
|
1250
|
+
#
|
|
1251
|
+
# source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#8
|
|
1128
1252
|
class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node
|
|
1129
1253
|
include ::RuboCop::AST::ParameterizedNode
|
|
1130
1254
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
|
@@ -1139,6 +1263,8 @@ end
|
|
|
1139
1263
|
|
|
1140
1264
|
# Common functionality for primitive literal nodes: `sym`, `str`,
|
|
1141
1265
|
# `int`, `float`, ...
|
|
1266
|
+
#
|
|
1267
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#7
|
|
1142
1268
|
module RuboCop::AST::Descendence
|
|
1143
1269
|
# Returns an array of child nodes.
|
|
1144
1270
|
# This is a shorthand for `node.each_child_node.to_a`.
|
|
@@ -1153,7 +1279,7 @@ module RuboCop::AST::Descendence
|
|
|
1153
1279
|
#
|
|
1154
1280
|
# @return [Array<Node>] an array of descendant nodes
|
|
1155
1281
|
#
|
|
1156
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
|
1282
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#72
|
|
1157
1283
|
def descendants; end
|
|
1158
1284
|
|
|
1159
1285
|
# Calls the given block for each child node.
|
|
@@ -1181,7 +1307,7 @@ module RuboCop::AST::Descendence
|
|
|
1181
1307
|
# @return [Enumerator] if no block is given
|
|
1182
1308
|
# @yieldparam node [Node] each descendant node
|
|
1183
1309
|
#
|
|
1184
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
|
1310
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#60
|
|
1185
1311
|
def each_descendant(*types, &block); end
|
|
1186
1312
|
|
|
1187
1313
|
# Calls the given block for the receiver and each descendant node in
|
|
@@ -1198,18 +1324,20 @@ module RuboCop::AST::Descendence
|
|
|
1198
1324
|
# @return [Enumerator] if no block is given
|
|
1199
1325
|
# @yieldparam node [Node] each node
|
|
1200
1326
|
#
|
|
1201
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
|
1327
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#95
|
|
1202
1328
|
def each_node(*types, &block); end
|
|
1203
1329
|
|
|
1204
1330
|
protected
|
|
1205
1331
|
|
|
1206
|
-
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#
|
|
1332
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#107
|
|
1207
1333
|
def visit_descendants(types, &block); end
|
|
1208
1334
|
end
|
|
1209
1335
|
|
|
1210
1336
|
# A node extension for `dstr` nodes. This will be used
|
|
1211
1337
|
# in place of a plain node when the builder constructs the AST, making
|
|
1212
1338
|
# its methods available to all `dstr` nodes within RuboCop.
|
|
1339
|
+
#
|
|
1340
|
+
# source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#8
|
|
1213
1341
|
class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode
|
|
1214
1342
|
# source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#9
|
|
1215
1343
|
def value; end
|
|
@@ -1218,6 +1346,8 @@ end
|
|
|
1218
1346
|
# A node extension for `ensure` nodes. This will be used in place of a plain
|
|
1219
1347
|
# node when the builder constructs the AST, making its methods available
|
|
1220
1348
|
# to all `ensure` nodes within RuboCop.
|
|
1349
|
+
#
|
|
1350
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#8
|
|
1221
1351
|
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
|
1222
1352
|
# Returns the body of the `ensure` clause.
|
|
1223
1353
|
#
|
|
@@ -1227,9 +1357,12 @@ class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
|
|
1227
1357
|
def body; end
|
|
1228
1358
|
end
|
|
1229
1359
|
|
|
1360
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5
|
|
1230
1361
|
module RuboCop::AST::Ext; end
|
|
1231
1362
|
|
|
1232
1363
|
# Extensions to Parser::AST::Range
|
|
1364
|
+
#
|
|
1365
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#7
|
|
1233
1366
|
module RuboCop::AST::Ext::Range
|
|
1234
1367
|
# If `exclude_end` is `true`, then the range will be exclusive.
|
|
1235
1368
|
#
|
|
@@ -1250,11 +1383,15 @@ module RuboCop::AST::Ext::Range
|
|
|
1250
1383
|
end
|
|
1251
1384
|
|
|
1252
1385
|
# Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6-
|
|
1386
|
+
#
|
|
1387
|
+
# source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7
|
|
1253
1388
|
module RuboCop::AST::Ext::RangeMinMax; end
|
|
1254
1389
|
|
|
1255
1390
|
# A node extension for `float` nodes. This will be used in place of a plain
|
|
1256
1391
|
# node when the builder constructs the AST, making its methods available to
|
|
1257
1392
|
# all `float` nodes within RuboCop.
|
|
1393
|
+
#
|
|
1394
|
+
# source://rubocop-ast//lib/rubocop/ast/node/float_node.rb#8
|
|
1258
1395
|
class RuboCop::AST::FloatNode < ::RuboCop::AST::Node
|
|
1259
1396
|
include ::RuboCop::AST::BasicLiteralNode
|
|
1260
1397
|
include ::RuboCop::AST::NumericNode
|
|
@@ -1263,6 +1400,8 @@ end
|
|
|
1263
1400
|
# A node extension for `for` nodes. This will be used in place of a plain
|
|
1264
1401
|
# node when the builder constructs the AST, making its methods available
|
|
1265
1402
|
# to all `for` nodes within RuboCop.
|
|
1403
|
+
#
|
|
1404
|
+
# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#8
|
|
1266
1405
|
class RuboCop::AST::ForNode < ::RuboCop::AST::Node
|
|
1267
1406
|
# Returns the body of the `for` loop.
|
|
1268
1407
|
#
|
|
@@ -1326,6 +1465,8 @@ end
|
|
|
1326
1465
|
#
|
|
1327
1466
|
# The main RuboCop runs in legacy mode; this node is only used
|
|
1328
1467
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true`
|
|
1468
|
+
#
|
|
1469
|
+
# source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#23
|
|
1329
1470
|
class RuboCop::AST::ForwardArgsNode < ::RuboCop::AST::Node
|
|
1330
1471
|
include ::RuboCop::AST::CollectionNode
|
|
1331
1472
|
|
|
@@ -1338,6 +1479,8 @@ end
|
|
|
1338
1479
|
|
|
1339
1480
|
# Common functionality for nodes that can be used as hash elements:
|
|
1340
1481
|
# `pair`, `kwsplat`
|
|
1482
|
+
#
|
|
1483
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#7
|
|
1341
1484
|
module RuboCop::AST::HashElementNode
|
|
1342
1485
|
# Returns the delta between this element's delimiter and the argument's.
|
|
1343
1486
|
#
|
|
@@ -1393,6 +1536,8 @@ end
|
|
|
1393
1536
|
|
|
1394
1537
|
# A helper class for comparing the positions of different parts of a
|
|
1395
1538
|
# `pair` node.
|
|
1539
|
+
#
|
|
1540
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#67
|
|
1396
1541
|
class RuboCop::AST::HashElementNode::HashElementDelta
|
|
1397
1542
|
# @raise [ArgumentError]
|
|
1398
1543
|
# @return [HashElementDelta] a new instance of HashElementDelta
|
|
@@ -1438,6 +1583,8 @@ end
|
|
|
1438
1583
|
# A node extension for `hash` nodes. This will be used in place of a plain
|
|
1439
1584
|
# node when the builder constructs the AST, making its methods available
|
|
1440
1585
|
# to all `hash` nodes within RuboCop.
|
|
1586
|
+
#
|
|
1587
|
+
# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#8
|
|
1441
1588
|
class RuboCop::AST::HashNode < ::RuboCop::AST::Node
|
|
1442
1589
|
# Checks whether the `hash` literal is delimited by curly braces.
|
|
1443
1590
|
#
|
|
@@ -1535,6 +1682,8 @@ end
|
|
|
1535
1682
|
# A node extension for `if` nodes. This will be used in place of a plain
|
|
1536
1683
|
# node when the builder constructs the AST, making its methods available
|
|
1537
1684
|
# to all `if` nodes within RuboCop.
|
|
1685
|
+
#
|
|
1686
|
+
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#8
|
|
1538
1687
|
class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1539
1688
|
include ::RuboCop::AST::ConditionalNode
|
|
1540
1689
|
include ::RuboCop::AST::ModifierNode
|
|
@@ -1666,6 +1815,8 @@ end
|
|
|
1666
1815
|
# A node extension for `in` nodes. This will be used in place of a plain
|
|
1667
1816
|
# node when the builder constructs the AST, making its methods available
|
|
1668
1817
|
# to all `in` nodes within RuboCop.
|
|
1818
|
+
#
|
|
1819
|
+
# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#8
|
|
1669
1820
|
class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node
|
|
1670
1821
|
# Returns the body of the `in` node.
|
|
1671
1822
|
#
|
|
@@ -1710,6 +1861,8 @@ end
|
|
|
1710
1861
|
#
|
|
1711
1862
|
# The main RuboCop runs in legacy mode; this node is only used
|
|
1712
1863
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_index=true`
|
|
1864
|
+
#
|
|
1865
|
+
# source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#19
|
|
1713
1866
|
class RuboCop::AST::IndexNode < ::RuboCop::AST::Node
|
|
1714
1867
|
include ::RuboCop::AST::ParameterizedNode
|
|
1715
1868
|
include ::RuboCop::AST::ParameterizedNode::RestArguments
|
|
@@ -1761,6 +1914,8 @@ end
|
|
|
1761
1914
|
#
|
|
1762
1915
|
# The main RuboCop runs in legacy mode; this node is only used
|
|
1763
1916
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_index=true`
|
|
1917
|
+
#
|
|
1918
|
+
# source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#21
|
|
1764
1919
|
class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node
|
|
1765
1920
|
include ::RuboCop::AST::ParameterizedNode
|
|
1766
1921
|
include ::RuboCop::AST::ParameterizedNode::RestArguments
|
|
@@ -1799,6 +1954,8 @@ end
|
|
|
1799
1954
|
# A node extension for `int` nodes. This will be used in place of a plain
|
|
1800
1955
|
# node when the builder constructs the AST, making its methods available to
|
|
1801
1956
|
# all `int` nodes within RuboCop.
|
|
1957
|
+
#
|
|
1958
|
+
# source://rubocop-ast//lib/rubocop/ast/node/int_node.rb#8
|
|
1802
1959
|
class RuboCop::AST::IntNode < ::RuboCop::AST::Node
|
|
1803
1960
|
include ::RuboCop::AST::BasicLiteralNode
|
|
1804
1961
|
include ::RuboCop::AST::NumericNode
|
|
@@ -1807,6 +1964,8 @@ end
|
|
|
1807
1964
|
# A node extension for `kwsplat` nodes. This will be used in place of a
|
|
1808
1965
|
# plain node when the builder constructs the AST, making its methods
|
|
1809
1966
|
# available to all `kwsplat` nodes within RuboCop.
|
|
1967
|
+
#
|
|
1968
|
+
# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#8
|
|
1810
1969
|
class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node
|
|
1811
1970
|
include ::RuboCop::AST::HashElementNode
|
|
1812
1971
|
|
|
@@ -1863,6 +2022,8 @@ RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String)
|
|
|
1863
2022
|
#
|
|
1864
2023
|
# The main RuboCop runs in legacy mode; this node is only used
|
|
1865
2024
|
# if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true`
|
|
2025
|
+
#
|
|
2026
|
+
# source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#23
|
|
1866
2027
|
class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
|
|
1867
2028
|
include ::RuboCop::AST::ParameterizedNode
|
|
1868
2029
|
include ::RuboCop::AST::ParameterizedNode::RestArguments
|
|
@@ -1918,6 +2079,8 @@ end
|
|
|
1918
2079
|
# Common functionality for nodes that are a kind of method dispatch:
|
|
1919
2080
|
# `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`,
|
|
1920
2081
|
# and (modern only): `index`, `indexasgn`, `lambda`
|
|
2082
|
+
#
|
|
2083
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#8
|
|
1921
2084
|
module RuboCop::AST::MethodDispatchNode
|
|
1922
2085
|
include ::RuboCop::AST::MethodIdentifierPredicates
|
|
1923
2086
|
extend ::RuboCop::AST::NodePattern::Macros
|
|
@@ -2163,6 +2326,8 @@ RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array
|
|
|
2163
2326
|
# `send`, `csend`, `def`, `defs`, `super`, `zsuper`
|
|
2164
2327
|
#
|
|
2165
2328
|
# @note this mixin expects `#method_name` and `#receiver` to be implemented
|
|
2329
|
+
#
|
|
2330
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#9
|
|
2166
2331
|
module RuboCop::AST::MethodIdentifierPredicates
|
|
2167
2332
|
# Checks whether the method is an assignment method.
|
|
2168
2333
|
#
|
|
@@ -2338,6 +2503,8 @@ RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil)
|
|
|
2338
2503
|
|
|
2339
2504
|
# Common functionality for nodes that can be used as modifiers:
|
|
2340
2505
|
# `if`, `while`, `until`
|
|
2506
|
+
#
|
|
2507
|
+
# source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#7
|
|
2341
2508
|
module RuboCop::AST::ModifierNode
|
|
2342
2509
|
# Checks whether the node is in a modifier form, i.e. a condition
|
|
2343
2510
|
# trailing behind an expression.
|
|
@@ -2351,6 +2518,8 @@ end
|
|
|
2351
2518
|
# A node extension for `module` nodes. This will be used in place of a
|
|
2352
2519
|
# plain node when the builder constructs the AST, making its methods
|
|
2353
2520
|
# available to all `module` nodes within RuboCop.
|
|
2521
|
+
#
|
|
2522
|
+
# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#8
|
|
2354
2523
|
class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node
|
|
2355
2524
|
# The body of this `module` node.
|
|
2356
2525
|
#
|
|
@@ -2370,6 +2539,8 @@ end
|
|
|
2370
2539
|
# A node extension for `next` nodes. This will be used in place of a
|
|
2371
2540
|
# plain node when the builder constructs the AST, making its methods
|
|
2372
2541
|
# available to all `next` nodes within RuboCop.
|
|
2542
|
+
#
|
|
2543
|
+
# source://rubocop-ast//lib/rubocop/ast/node/next_node.rb#8
|
|
2373
2544
|
class RuboCop::AST::NextNode < ::RuboCop::AST::Node
|
|
2374
2545
|
include ::RuboCop::AST::ParameterizedNode
|
|
2375
2546
|
include ::RuboCop::AST::ParameterizedNode::WrappedArguments
|
|
@@ -2390,28 +2561,29 @@ end
|
|
|
2390
2561
|
#
|
|
2391
2562
|
# # Find the first lvar node under the receiver node.
|
|
2392
2563
|
# lvar_node = node.each_descendant.find(&:lvar_type?)
|
|
2564
|
+
#
|
|
2565
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#21
|
|
2393
2566
|
class RuboCop::AST::Node < ::Parser::AST::Node
|
|
2394
2567
|
include ::RuboCop::AST::Sexp
|
|
2395
2568
|
include ::RuboCop::AST::Descendence
|
|
2396
|
-
include ::RuboCop::RSpec::Node
|
|
2397
2569
|
extend ::RuboCop::AST::NodePattern::Macros
|
|
2398
2570
|
|
|
2399
2571
|
# @return [Node] a new instance of Node
|
|
2400
2572
|
# @see https://www.rubydoc.info/gems/ast/AST/Node:initialize
|
|
2401
2573
|
#
|
|
2402
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2574
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#92
|
|
2403
2575
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
|
2404
2576
|
|
|
2405
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2577
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2406
2578
|
def __ENCODING___type?; end
|
|
2407
2579
|
|
|
2408
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2580
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2409
2581
|
def __FILE___type?; end
|
|
2410
2582
|
|
|
2411
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2583
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2412
2584
|
def __LINE___type?; end
|
|
2413
2585
|
|
|
2414
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2586
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2415
2587
|
def alias_type?; end
|
|
2416
2588
|
|
|
2417
2589
|
# Returns an array of ancestor nodes.
|
|
@@ -2419,173 +2591,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
2419
2591
|
#
|
|
2420
2592
|
# @return [Array<Node>] an array of ancestor nodes
|
|
2421
2593
|
#
|
|
2422
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2594
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#247
|
|
2423
2595
|
def ancestors; end
|
|
2424
2596
|
|
|
2425
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2597
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2426
2598
|
def and_asgn_type?; end
|
|
2427
2599
|
|
|
2428
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2600
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2429
2601
|
def and_type?; end
|
|
2430
2602
|
|
|
2431
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2603
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2432
2604
|
def arg_expr_type?; end
|
|
2433
2605
|
|
|
2434
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2606
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2435
2607
|
def arg_type?; end
|
|
2436
2608
|
|
|
2437
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2609
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2438
2610
|
def args_type?; end
|
|
2439
2611
|
|
|
2440
2612
|
# @return [Boolean]
|
|
2441
2613
|
#
|
|
2442
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2614
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#464
|
|
2443
2615
|
def argument?; end
|
|
2444
2616
|
|
|
2445
2617
|
# @return [Boolean]
|
|
2446
2618
|
#
|
|
2447
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2619
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#468
|
|
2448
2620
|
def argument_type?; end
|
|
2449
2621
|
|
|
2450
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2622
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2451
2623
|
def array_pattern_type?; end
|
|
2452
2624
|
|
|
2453
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2625
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2454
2626
|
def array_pattern_with_tail_type?; end
|
|
2455
2627
|
|
|
2456
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2628
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2457
2629
|
def array_type?; end
|
|
2458
2630
|
|
|
2459
2631
|
# @return [Boolean]
|
|
2460
2632
|
#
|
|
2461
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2633
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#416
|
|
2462
2634
|
def assignment?; end
|
|
2463
2635
|
|
|
2464
2636
|
# Some cops treat the shovel operator as a kind of assignment.
|
|
2465
2637
|
#
|
|
2466
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2638
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#355
|
|
2467
2639
|
def assignment_or_similar?(param0 = T.unsafe(nil)); end
|
|
2468
2640
|
|
|
2469
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2641
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2470
2642
|
def back_ref_type?; end
|
|
2471
2643
|
|
|
2472
2644
|
# @return [Boolean]
|
|
2473
2645
|
#
|
|
2474
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2646
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#420
|
|
2475
2647
|
def basic_conditional?; end
|
|
2476
2648
|
|
|
2477
2649
|
# @return [Boolean]
|
|
2478
2650
|
#
|
|
2479
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2651
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#363
|
|
2480
2652
|
def basic_literal?; end
|
|
2481
2653
|
|
|
2482
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2654
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2483
2655
|
def begin_type?; end
|
|
2484
2656
|
|
|
2485
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2657
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2486
2658
|
def block_pass_type?; end
|
|
2487
2659
|
|
|
2488
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2660
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2489
2661
|
def block_type?; end
|
|
2490
2662
|
|
|
2491
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2663
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2492
2664
|
def blockarg_expr_type?; end
|
|
2493
2665
|
|
|
2494
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2666
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2495
2667
|
def blockarg_type?; end
|
|
2496
2668
|
|
|
2497
2669
|
# @return [Boolean]
|
|
2498
2670
|
#
|
|
2499
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2671
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#472
|
|
2500
2672
|
def boolean_type?; end
|
|
2501
2673
|
|
|
2502
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2674
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2503
2675
|
def break_type?; end
|
|
2504
2676
|
|
|
2505
2677
|
# @return [Boolean]
|
|
2506
2678
|
#
|
|
2507
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2679
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#456
|
|
2508
2680
|
def call_type?; end
|
|
2509
2681
|
|
|
2510
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2682
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2511
2683
|
def case_match_type?; end
|
|
2512
2684
|
|
|
2513
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2685
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2514
2686
|
def case_type?; end
|
|
2515
2687
|
|
|
2516
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2688
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2517
2689
|
def casgn_type?; end
|
|
2518
2690
|
|
|
2519
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2691
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2520
2692
|
def cbase_type?; end
|
|
2521
2693
|
|
|
2522
2694
|
# @return [Boolean]
|
|
2523
2695
|
#
|
|
2524
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2696
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#460
|
|
2525
2697
|
def chained?; end
|
|
2526
2698
|
|
|
2527
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2699
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#512
|
|
2528
2700
|
def class_constructor?(param0 = T.unsafe(nil)); end
|
|
2529
2701
|
|
|
2530
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2702
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#530
|
|
2531
2703
|
def class_definition?(param0 = T.unsafe(nil)); end
|
|
2532
2704
|
|
|
2533
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2705
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2534
2706
|
def class_type?; end
|
|
2535
2707
|
|
|
2536
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2708
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#144
|
|
2537
2709
|
def complete!; end
|
|
2538
2710
|
|
|
2539
2711
|
# @return [Boolean]
|
|
2540
2712
|
#
|
|
2541
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2713
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#149
|
|
2542
2714
|
def complete?; end
|
|
2543
2715
|
|
|
2544
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2716
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2545
2717
|
def complex_type?; end
|
|
2546
2718
|
|
|
2547
2719
|
# @return [Boolean]
|
|
2548
2720
|
#
|
|
2549
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2721
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#424
|
|
2550
2722
|
def conditional?; end
|
|
2551
2723
|
|
|
2552
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2724
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#293
|
|
2553
2725
|
def const_name; end
|
|
2554
2726
|
|
|
2555
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2727
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2556
2728
|
def const_pattern_type?; end
|
|
2557
2729
|
|
|
2558
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2730
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2559
2731
|
def const_type?; end
|
|
2560
2732
|
|
|
2561
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2733
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2562
2734
|
def csend_type?; end
|
|
2563
2735
|
|
|
2564
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2736
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2565
2737
|
def cvar_type?; end
|
|
2566
2738
|
|
|
2567
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2739
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2568
2740
|
def cvasgn_type?; end
|
|
2569
2741
|
|
|
2570
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2742
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2571
2743
|
def def_type?; end
|
|
2572
2744
|
|
|
2573
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2745
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#314
|
|
2574
2746
|
def defined_module; end
|
|
2575
2747
|
|
|
2576
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2748
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#319
|
|
2577
2749
|
def defined_module_name; end
|
|
2578
2750
|
|
|
2579
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2751
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2580
2752
|
def defined_type?; end
|
|
2581
2753
|
|
|
2582
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2754
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2583
2755
|
def defs_type?; end
|
|
2584
2756
|
|
|
2585
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2757
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2586
2758
|
def dstr_type?; end
|
|
2587
2759
|
|
|
2588
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2760
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2589
2761
|
def dsym_type?; end
|
|
2590
2762
|
|
|
2591
2763
|
# Calls the given block for each ancestor node from parent to root.
|
|
@@ -2598,163 +2770,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
2598
2770
|
# @return [Enumerator] if no block is given
|
|
2599
2771
|
# @yieldparam node [Node] each ancestor node
|
|
2600
2772
|
#
|
|
2601
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2773
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#235
|
|
2602
2774
|
def each_ancestor(*types, &block); end
|
|
2603
2775
|
|
|
2604
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2776
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2605
2777
|
def eflipflop_type?; end
|
|
2606
2778
|
|
|
2607
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2779
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2608
2780
|
def empty_else_type?; end
|
|
2609
2781
|
|
|
2610
2782
|
# @return [Boolean]
|
|
2611
2783
|
#
|
|
2612
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2784
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#349
|
|
2613
2785
|
def empty_source?; end
|
|
2614
2786
|
|
|
2615
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2787
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2616
2788
|
def ensure_type?; end
|
|
2617
2789
|
|
|
2618
2790
|
# @return [Boolean]
|
|
2619
2791
|
#
|
|
2620
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2792
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#408
|
|
2621
2793
|
def equals_asgn?; end
|
|
2622
2794
|
|
|
2623
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2795
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2624
2796
|
def erange_type?; end
|
|
2625
2797
|
|
|
2626
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2798
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2627
2799
|
def false_type?; end
|
|
2628
2800
|
|
|
2629
2801
|
# @return [Boolean]
|
|
2630
2802
|
#
|
|
2631
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2803
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#371
|
|
2632
2804
|
def falsey_literal?; end
|
|
2633
2805
|
|
|
2634
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2806
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2635
2807
|
def find_pattern_type?; end
|
|
2636
2808
|
|
|
2637
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2809
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#261
|
|
2638
2810
|
def first_line; end
|
|
2639
2811
|
|
|
2640
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2812
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2641
2813
|
def float_type?; end
|
|
2642
2814
|
|
|
2643
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2815
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2644
2816
|
def for_type?; end
|
|
2645
2817
|
|
|
2646
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2818
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2647
2819
|
def forward_arg_type?; end
|
|
2648
2820
|
|
|
2649
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2821
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2650
2822
|
def forward_args_type?; end
|
|
2651
2823
|
|
|
2652
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2824
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2653
2825
|
def forwarded_args_type?; end
|
|
2654
2826
|
|
|
2655
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2827
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2656
2828
|
def forwarded_kwrestarg_type?; end
|
|
2657
2829
|
|
|
2658
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2830
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2659
2831
|
def forwarded_restarg_type?; end
|
|
2660
2832
|
|
|
2661
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2833
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#509
|
|
2662
2834
|
def global_const?(param0 = T.unsafe(nil), param1); end
|
|
2663
2835
|
|
|
2664
2836
|
# @return [Boolean]
|
|
2665
2837
|
#
|
|
2666
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2838
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#484
|
|
2667
2839
|
def guard_clause?; end
|
|
2668
2840
|
|
|
2669
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2841
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2670
2842
|
def gvar_type?; end
|
|
2671
2843
|
|
|
2672
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2844
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2673
2845
|
def gvasgn_type?; end
|
|
2674
2846
|
|
|
2675
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2847
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2676
2848
|
def hash_pattern_type?; end
|
|
2677
2849
|
|
|
2678
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2850
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2679
2851
|
def hash_type?; end
|
|
2680
2852
|
|
|
2681
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2853
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2682
2854
|
def ident_type?; end
|
|
2683
2855
|
|
|
2684
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2856
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2685
2857
|
def if_guard_type?; end
|
|
2686
2858
|
|
|
2687
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2859
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2688
2860
|
def if_type?; end
|
|
2689
2861
|
|
|
2690
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2862
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2691
2863
|
def iflipflop_type?; end
|
|
2692
2864
|
|
|
2693
2865
|
# @return [Boolean]
|
|
2694
2866
|
#
|
|
2695
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2867
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#379
|
|
2696
2868
|
def immutable_literal?; end
|
|
2697
2869
|
|
|
2698
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2870
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2699
2871
|
def in_match_type?; end
|
|
2700
2872
|
|
|
2701
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2873
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2702
2874
|
def in_pattern_type?; end
|
|
2703
2875
|
|
|
2704
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2876
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2705
2877
|
def index_type?; end
|
|
2706
2878
|
|
|
2707
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2879
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2708
2880
|
def indexasgn_type?; end
|
|
2709
2881
|
|
|
2710
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2882
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2711
2883
|
def int_type?; end
|
|
2712
2884
|
|
|
2713
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2885
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2714
2886
|
def irange_type?; end
|
|
2715
2887
|
|
|
2716
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2888
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2717
2889
|
def ivar_type?; end
|
|
2718
2890
|
|
|
2719
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2891
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2720
2892
|
def ivasgn_type?; end
|
|
2721
2893
|
|
|
2722
2894
|
# @return [Boolean]
|
|
2723
2895
|
#
|
|
2724
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2896
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#437
|
|
2725
2897
|
def keyword?; end
|
|
2726
2898
|
|
|
2727
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2899
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2728
2900
|
def kwarg_type?; end
|
|
2729
2901
|
|
|
2730
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2902
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2731
2903
|
def kwargs_type?; end
|
|
2732
2904
|
|
|
2733
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2905
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2734
2906
|
def kwbegin_type?; end
|
|
2735
2907
|
|
|
2736
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2908
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2737
2909
|
def kwnilarg_type?; end
|
|
2738
2910
|
|
|
2739
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2911
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2740
2912
|
def kwoptarg_type?; end
|
|
2741
2913
|
|
|
2742
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2914
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2743
2915
|
def kwrestarg_type?; end
|
|
2744
2916
|
|
|
2745
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2917
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2746
2918
|
def kwsplat_type?; end
|
|
2747
2919
|
|
|
2748
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2920
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#503
|
|
2749
2921
|
def lambda?(param0 = T.unsafe(nil)); end
|
|
2750
2922
|
|
|
2751
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2923
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#506
|
|
2752
2924
|
def lambda_or_proc?(param0 = T.unsafe(nil)); end
|
|
2753
2925
|
|
|
2754
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2926
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2755
2927
|
def lambda_type?; end
|
|
2756
2928
|
|
|
2757
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2929
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#265
|
|
2758
2930
|
def last_line; end
|
|
2759
2931
|
|
|
2760
2932
|
# Use is discouraged, this is a potentially slow method and can lead
|
|
@@ -2762,7 +2934,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
2762
2934
|
#
|
|
2763
2935
|
# @return [Node, nil] the left (aka previous) sibling
|
|
2764
2936
|
#
|
|
2765
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2937
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#187
|
|
2766
2938
|
def left_sibling; end
|
|
2767
2939
|
|
|
2768
2940
|
# Use is discouraged, this is a potentially slow method and can lead
|
|
@@ -2770,94 +2942,94 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
2770
2942
|
#
|
|
2771
2943
|
# @return [Array<Node>] the left (aka previous) siblings
|
|
2772
2944
|
#
|
|
2773
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2945
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#197
|
|
2774
2946
|
def left_siblings; end
|
|
2775
2947
|
|
|
2776
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2948
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#269
|
|
2777
2949
|
def line_count; end
|
|
2778
2950
|
|
|
2779
2951
|
# @return [Boolean]
|
|
2780
2952
|
#
|
|
2781
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2953
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#359
|
|
2782
2954
|
def literal?; end
|
|
2783
2955
|
|
|
2784
2956
|
# NOTE: `loop { }` is a normal method call and thus not a loop keyword.
|
|
2785
2957
|
#
|
|
2786
2958
|
# @return [Boolean]
|
|
2787
2959
|
#
|
|
2788
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2960
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#433
|
|
2789
2961
|
def loop_keyword?; end
|
|
2790
2962
|
|
|
2791
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2963
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2792
2964
|
def lvar_type?; end
|
|
2793
2965
|
|
|
2794
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2966
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2795
2967
|
def lvasgn_type?; end
|
|
2796
2968
|
|
|
2797
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2969
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2798
2970
|
def masgn_type?; end
|
|
2799
2971
|
|
|
2800
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2972
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2801
2973
|
def match_alt_type?; end
|
|
2802
2974
|
|
|
2803
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2975
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2804
2976
|
def match_as_type?; end
|
|
2805
2977
|
|
|
2806
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2978
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2807
2979
|
def match_current_line_type?; end
|
|
2808
2980
|
|
|
2809
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2981
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#491
|
|
2810
2982
|
def match_guard_clause?(param0 = T.unsafe(nil)); end
|
|
2811
2983
|
|
|
2812
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2984
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2813
2985
|
def match_nil_pattern_type?; end
|
|
2814
2986
|
|
|
2815
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2987
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2816
2988
|
def match_pattern_p_type?; end
|
|
2817
2989
|
|
|
2818
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2990
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2819
2991
|
def match_pattern_type?; end
|
|
2820
2992
|
|
|
2821
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2993
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2822
2994
|
def match_rest_type?; end
|
|
2823
2995
|
|
|
2824
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2996
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2825
2997
|
def match_var_type?; end
|
|
2826
2998
|
|
|
2827
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
2999
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2828
3000
|
def match_with_lvasgn_type?; end
|
|
2829
3001
|
|
|
2830
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3002
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2831
3003
|
def match_with_trailing_comma_type?; end
|
|
2832
3004
|
|
|
2833
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3005
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2834
3006
|
def mlhs_type?; end
|
|
2835
3007
|
|
|
2836
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3008
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#537
|
|
2837
3009
|
def module_definition?(param0 = T.unsafe(nil)); end
|
|
2838
3010
|
|
|
2839
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3011
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2840
3012
|
def module_type?; end
|
|
2841
3013
|
|
|
2842
3014
|
# Predicates
|
|
2843
3015
|
#
|
|
2844
3016
|
# @return [Boolean]
|
|
2845
3017
|
#
|
|
2846
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3018
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#341
|
|
2847
3019
|
def multiline?; end
|
|
2848
3020
|
|
|
2849
3021
|
# @return [Boolean]
|
|
2850
3022
|
#
|
|
2851
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3023
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#375
|
|
2852
3024
|
def mutable_literal?; end
|
|
2853
3025
|
|
|
2854
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3026
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#671
|
|
2855
3027
|
def new_class_or_module_block?(param0 = T.unsafe(nil)); end
|
|
2856
3028
|
|
|
2857
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3029
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2858
3030
|
def next_type?; end
|
|
2859
3031
|
|
|
2860
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3032
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2861
3033
|
def nil_type?; end
|
|
2862
3034
|
|
|
2863
3035
|
# Common destructuring method. This can be used to normalize
|
|
@@ -2867,98 +3039,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
2867
3039
|
#
|
|
2868
3040
|
# @return [Array<Node>] the different parts of the ndde
|
|
2869
3041
|
#
|
|
2870
|
-
# source://
|
|
3042
|
+
# source://ast/2.4.2/lib/ast/node.rb#56
|
|
2871
3043
|
def node_parts; end
|
|
2872
3044
|
|
|
2873
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3045
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#275
|
|
2874
3046
|
def nonempty_line_count; end
|
|
2875
3047
|
|
|
2876
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3048
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2877
3049
|
def not_type?; end
|
|
2878
3050
|
|
|
2879
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3051
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2880
3052
|
def nth_ref_type?; end
|
|
2881
3053
|
|
|
2882
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3054
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2883
3055
|
def numargs_type?; end
|
|
2884
3056
|
|
|
2885
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3057
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2886
3058
|
def numblock_type?; end
|
|
2887
3059
|
|
|
2888
3060
|
# @return [Boolean]
|
|
2889
3061
|
#
|
|
2890
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3062
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#476
|
|
2891
3063
|
def numeric_type?; end
|
|
2892
3064
|
|
|
2893
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3065
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2894
3066
|
def objc_kwarg_type?; end
|
|
2895
3067
|
|
|
2896
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3068
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2897
3069
|
def objc_restarg_type?; end
|
|
2898
3070
|
|
|
2899
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3071
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2900
3072
|
def objc_varargs_type?; end
|
|
2901
3073
|
|
|
2902
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3074
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2903
3075
|
def op_asgn_type?; end
|
|
2904
3076
|
|
|
2905
3077
|
# @return [Boolean]
|
|
2906
3078
|
#
|
|
2907
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3079
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#448
|
|
2908
3080
|
def operator_keyword?; end
|
|
2909
3081
|
|
|
2910
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3082
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2911
3083
|
def optarg_type?; end
|
|
2912
3084
|
|
|
2913
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3085
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2914
3086
|
def or_asgn_type?; end
|
|
2915
3087
|
|
|
2916
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3088
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2917
3089
|
def or_type?; end
|
|
2918
3090
|
|
|
2919
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3091
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2920
3092
|
def pair_type?; end
|
|
2921
3093
|
|
|
2922
3094
|
# Returns the parent node, or `nil` if the receiver is a root node.
|
|
2923
3095
|
#
|
|
2924
3096
|
# @return [Node, nil] the parent node or `nil`
|
|
2925
3097
|
#
|
|
2926
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3098
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#126
|
|
2927
3099
|
def parent; end
|
|
2928
3100
|
|
|
2929
3101
|
# @return [Boolean]
|
|
2930
3102
|
#
|
|
2931
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3103
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#135
|
|
2932
3104
|
def parent?; end
|
|
2933
3105
|
|
|
2934
3106
|
# Searching the AST
|
|
2935
3107
|
#
|
|
2936
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3108
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#325
|
|
2937
3109
|
def parent_module_name; end
|
|
2938
3110
|
|
|
2939
3111
|
# @return [Boolean]
|
|
2940
3112
|
#
|
|
2941
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3113
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#452
|
|
2942
3114
|
def parenthesized_call?; end
|
|
2943
3115
|
|
|
2944
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3116
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2945
3117
|
def pin_type?; end
|
|
2946
3118
|
|
|
2947
3119
|
# @return [Boolean]
|
|
2948
3120
|
#
|
|
2949
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3121
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#428
|
|
2950
3122
|
def post_condition_loop?; end
|
|
2951
3123
|
|
|
2952
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3124
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2953
3125
|
def postexe_type?; end
|
|
2954
3126
|
|
|
2955
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3127
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2956
3128
|
def preexe_type?; end
|
|
2957
3129
|
|
|
2958
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3130
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#496
|
|
2959
3131
|
def proc?(param0 = T.unsafe(nil)); end
|
|
2960
3132
|
|
|
2961
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3133
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2962
3134
|
def procarg0_type?; end
|
|
2963
3135
|
|
|
2964
3136
|
# Some expressions are evaluated for their value, some for their side
|
|
@@ -2971,56 +3143,56 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
2971
3143
|
#
|
|
2972
3144
|
# @return [Boolean]
|
|
2973
3145
|
#
|
|
2974
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3146
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#582
|
|
2975
3147
|
def pure?; end
|
|
2976
3148
|
|
|
2977
3149
|
# @return [Boolean]
|
|
2978
3150
|
#
|
|
2979
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3151
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#480
|
|
2980
3152
|
def range_type?; end
|
|
2981
3153
|
|
|
2982
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3154
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2983
3155
|
def rational_type?; end
|
|
2984
3156
|
|
|
2985
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3157
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#286
|
|
2986
3158
|
def receiver(param0 = T.unsafe(nil)); end
|
|
2987
3159
|
|
|
2988
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3160
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#386
|
|
2989
3161
|
def recursive_basic_literal?; end
|
|
2990
3162
|
|
|
2991
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3163
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#386
|
|
2992
3164
|
def recursive_literal?; end
|
|
2993
3165
|
|
|
2994
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3166
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
2995
3167
|
def redo_type?; end
|
|
2996
3168
|
|
|
2997
3169
|
# @return [Boolean]
|
|
2998
3170
|
#
|
|
2999
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3171
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#404
|
|
3000
3172
|
def reference?; end
|
|
3001
3173
|
|
|
3002
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3174
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3003
3175
|
def regexp_type?; end
|
|
3004
3176
|
|
|
3005
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3177
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3006
3178
|
def regopt_type?; end
|
|
3007
3179
|
|
|
3008
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3180
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3009
3181
|
def resbody_type?; end
|
|
3010
3182
|
|
|
3011
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3183
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3012
3184
|
def rescue_type?; end
|
|
3013
3185
|
|
|
3014
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3186
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3015
3187
|
def restarg_expr_type?; end
|
|
3016
3188
|
|
|
3017
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3189
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3018
3190
|
def restarg_type?; end
|
|
3019
3191
|
|
|
3020
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3192
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3021
3193
|
def retry_type?; end
|
|
3022
3194
|
|
|
3023
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3195
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3024
3196
|
def return_type?; end
|
|
3025
3197
|
|
|
3026
3198
|
# Use is discouraged, this is a potentially slow method and can lead
|
|
@@ -3028,7 +3200,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
3028
3200
|
#
|
|
3029
3201
|
# @return [Node, nil] the right (aka next) sibling
|
|
3030
3202
|
#
|
|
3031
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3203
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#178
|
|
3032
3204
|
def right_sibling; end
|
|
3033
3205
|
|
|
3034
3206
|
# Use is discouraged, this is a potentially slow method and can lead
|
|
@@ -3036,29 +3208,34 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
3036
3208
|
#
|
|
3037
3209
|
# @return [Array<Node>] the right (aka next) siblings
|
|
3038
3210
|
#
|
|
3039
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3211
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#206
|
|
3040
3212
|
def right_siblings; end
|
|
3041
3213
|
|
|
3042
3214
|
# @return [Boolean]
|
|
3043
3215
|
#
|
|
3044
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3216
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#140
|
|
3045
3217
|
def root?; end
|
|
3046
3218
|
|
|
3047
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3219
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3048
3220
|
def sclass_type?; end
|
|
3049
3221
|
|
|
3050
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3222
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3051
3223
|
def self_type?; end
|
|
3052
3224
|
|
|
3053
|
-
#
|
|
3225
|
+
# Most nodes are of 'send' type, so this method is defined
|
|
3226
|
+
# separately to make this check as fast as possible.
|
|
3227
|
+
#
|
|
3228
|
+
# @return [Boolean]
|
|
3229
|
+
#
|
|
3230
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#119
|
|
3054
3231
|
def send_type?; end
|
|
3055
3232
|
|
|
3056
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3233
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3057
3234
|
def shadowarg_type?; end
|
|
3058
3235
|
|
|
3059
3236
|
# @return [Boolean]
|
|
3060
3237
|
#
|
|
3061
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3238
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#412
|
|
3062
3239
|
def shorthand_asgn?; end
|
|
3063
3240
|
|
|
3064
3241
|
# Returns the index of the receiver node in its siblings. (Sibling index
|
|
@@ -3067,70 +3244,70 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
3067
3244
|
#
|
|
3068
3245
|
# @return [Integer, nil] the index of the receiver node in its siblings
|
|
3069
3246
|
#
|
|
3070
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3247
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#171
|
|
3071
3248
|
def sibling_index; end
|
|
3072
3249
|
|
|
3073
3250
|
# @return [Boolean]
|
|
3074
3251
|
#
|
|
3075
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3252
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#345
|
|
3076
3253
|
def single_line?; end
|
|
3077
3254
|
|
|
3078
3255
|
# NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}`
|
|
3079
3256
|
#
|
|
3080
3257
|
# @return [String, nil]
|
|
3081
3258
|
#
|
|
3082
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3259
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#253
|
|
3083
3260
|
def source; end
|
|
3084
3261
|
|
|
3085
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3262
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#279
|
|
3086
3263
|
def source_length; end
|
|
3087
3264
|
|
|
3088
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3265
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#257
|
|
3089
3266
|
def source_range; end
|
|
3090
3267
|
|
|
3091
3268
|
# @return [Boolean]
|
|
3092
3269
|
#
|
|
3093
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3270
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#444
|
|
3094
3271
|
def special_keyword?; end
|
|
3095
3272
|
|
|
3096
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3273
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3097
3274
|
def splat_type?; end
|
|
3098
3275
|
|
|
3099
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3276
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#291
|
|
3100
3277
|
def str_content(param0 = T.unsafe(nil)); end
|
|
3101
3278
|
|
|
3102
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3279
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3103
3280
|
def str_type?; end
|
|
3104
3281
|
|
|
3105
3282
|
# @deprecated Use `:class_constructor?`
|
|
3106
3283
|
#
|
|
3107
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3284
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#525
|
|
3108
3285
|
def struct_constructor?(param0 = T.unsafe(nil)); end
|
|
3109
3286
|
|
|
3110
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3287
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3111
3288
|
def super_type?; end
|
|
3112
3289
|
|
|
3113
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3290
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3114
3291
|
def sym_type?; end
|
|
3115
3292
|
|
|
3116
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3293
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3117
3294
|
def true_type?; end
|
|
3118
3295
|
|
|
3119
3296
|
# @return [Boolean]
|
|
3120
3297
|
#
|
|
3121
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3298
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#367
|
|
3122
3299
|
def truthy_literal?; end
|
|
3123
3300
|
|
|
3124
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3301
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3125
3302
|
def undef_type?; end
|
|
3126
3303
|
|
|
3127
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3304
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3128
3305
|
def unless_guard_type?; end
|
|
3129
3306
|
|
|
3130
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3307
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3131
3308
|
def until_post_type?; end
|
|
3132
3309
|
|
|
3133
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3310
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3134
3311
|
def until_type?; end
|
|
3135
3312
|
|
|
3136
3313
|
# Override `AST::Node#updated` so that `AST::Processor` does not try to
|
|
@@ -3139,7 +3316,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
3139
3316
|
# identical subtrees. Rather, the entire AST must be copied any time any
|
|
3140
3317
|
# part of it is changed.
|
|
3141
3318
|
#
|
|
3142
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3319
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#160
|
|
3143
3320
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
|
3144
3321
|
|
|
3145
3322
|
# Some expressions are evaluated for their value, some for their side
|
|
@@ -3153,72 +3330,72 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|
|
3153
3330
|
#
|
|
3154
3331
|
# @return [Boolean]
|
|
3155
3332
|
#
|
|
3156
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3333
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#551
|
|
3157
3334
|
def value_used?; end
|
|
3158
3335
|
|
|
3159
3336
|
# @return [Boolean]
|
|
3160
3337
|
#
|
|
3161
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3338
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#400
|
|
3162
3339
|
def variable?; end
|
|
3163
3340
|
|
|
3164
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3341
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3165
3342
|
def when_type?; end
|
|
3166
3343
|
|
|
3167
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3344
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3168
3345
|
def while_post_type?; end
|
|
3169
3346
|
|
|
3170
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3347
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3171
3348
|
def while_type?; end
|
|
3172
3349
|
|
|
3173
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3350
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3174
3351
|
def xstr_type?; end
|
|
3175
3352
|
|
|
3176
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3353
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3177
3354
|
def yield_type?; end
|
|
3178
3355
|
|
|
3179
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3356
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#111
|
|
3180
3357
|
def zsuper_type?; end
|
|
3181
3358
|
|
|
3182
3359
|
protected
|
|
3183
3360
|
|
|
3184
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3361
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#130
|
|
3185
3362
|
def parent=(node); end
|
|
3186
3363
|
|
|
3187
3364
|
private
|
|
3188
3365
|
|
|
3189
3366
|
# @return [Boolean]
|
|
3190
3367
|
#
|
|
3191
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3368
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#610
|
|
3192
3369
|
def begin_value_used?; end
|
|
3193
3370
|
|
|
3194
3371
|
# @return [Boolean]
|
|
3195
3372
|
#
|
|
3196
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3373
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#621
|
|
3197
3374
|
def case_if_value_used?; end
|
|
3198
3375
|
|
|
3199
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3376
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#305
|
|
3200
3377
|
def defined_module0(param0 = T.unsafe(nil)); end
|
|
3201
3378
|
|
|
3202
3379
|
# @return [Boolean]
|
|
3203
3380
|
#
|
|
3204
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3381
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#615
|
|
3205
3382
|
def for_value_used?; end
|
|
3206
3383
|
|
|
3207
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3384
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#657
|
|
3208
3385
|
def parent_module_name_for_block(ancestor); end
|
|
3209
3386
|
|
|
3210
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3387
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#645
|
|
3211
3388
|
def parent_module_name_for_sclass(sclass_node); end
|
|
3212
3389
|
|
|
3213
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3390
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#632
|
|
3214
3391
|
def parent_module_name_part(node); end
|
|
3215
3392
|
|
|
3216
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3393
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#600
|
|
3217
3394
|
def visit_ancestors(types); end
|
|
3218
3395
|
|
|
3219
3396
|
# @return [Boolean]
|
|
3220
3397
|
#
|
|
3221
|
-
# source://rubocop-ast//lib/rubocop/ast/node.rb#
|
|
3398
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#627
|
|
3222
3399
|
def while_until_value_used?; end
|
|
3223
3400
|
end
|
|
3224
3401
|
|
|
@@ -3259,6 +3436,12 @@ RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
|
|
|
3259
3436
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#60
|
|
3260
3437
|
RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
|
|
3261
3438
|
|
|
3439
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#87
|
|
3440
|
+
RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array)
|
|
3441
|
+
|
|
3442
|
+
# source://rubocop-ast//lib/rubocop/ast/node.rb#88
|
|
3443
|
+
RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash)
|
|
3444
|
+
|
|
3262
3445
|
# @api private
|
|
3263
3446
|
#
|
|
3264
3447
|
# source://rubocop-ast//lib/rubocop/ast/node.rb#50
|
|
@@ -3353,67 +3536,69 @@ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set)
|
|
|
3353
3536
|
# - With no block, but one capture: the capture is returned.
|
|
3354
3537
|
# - With no block, but multiple captures: captures are returned as an array.
|
|
3355
3538
|
# - With no block and no captures: #match returns `true`.
|
|
3539
|
+
#
|
|
3540
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5
|
|
3356
3541
|
class RuboCop::AST::NodePattern
|
|
3357
3542
|
include ::RuboCop::AST::NodePattern::MethodDefiner
|
|
3358
3543
|
extend ::Forwardable
|
|
3359
3544
|
|
|
3360
3545
|
# @return [NodePattern] a new instance of NodePattern
|
|
3361
3546
|
#
|
|
3362
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3547
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#77
|
|
3363
3548
|
def initialize(str, compiler: T.unsafe(nil)); end
|
|
3364
3549
|
|
|
3365
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3550
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90
|
|
3366
3551
|
def ==(other); end
|
|
3367
3552
|
|
|
3368
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3553
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#107
|
|
3369
3554
|
def as_json(_options = T.unsafe(nil)); end
|
|
3370
3555
|
|
|
3371
3556
|
# Returns the value of attribute ast.
|
|
3372
3557
|
#
|
|
3373
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3558
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
|
3374
3559
|
def ast; end
|
|
3375
3560
|
|
|
3376
|
-
# source://forwardable/1.3.
|
|
3561
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3377
3562
|
def captures(*args, **_arg1, &block); end
|
|
3378
3563
|
|
|
3379
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3564
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
|
|
3380
3565
|
def encode_with(coder); end
|
|
3381
3566
|
|
|
3382
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3567
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90
|
|
3383
3568
|
def eql?(other); end
|
|
3384
3569
|
|
|
3385
3570
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119
|
|
3386
3571
|
def freeze; end
|
|
3387
3572
|
|
|
3388
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3573
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#115
|
|
3389
3574
|
def init_with(coder); end
|
|
3390
3575
|
|
|
3391
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3576
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#103
|
|
3392
3577
|
def marshal_dump; end
|
|
3393
3578
|
|
|
3394
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3579
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#99
|
|
3395
3580
|
def marshal_load(pattern); end
|
|
3396
3581
|
|
|
3397
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3582
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#85
|
|
3398
3583
|
def match(*args, **rest, &block); end
|
|
3399
3584
|
|
|
3400
3585
|
# Returns the value of attribute match_code.
|
|
3401
3586
|
#
|
|
3402
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3587
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
|
3403
3588
|
def match_code; end
|
|
3404
3589
|
|
|
3405
|
-
# source://forwardable/1.3.
|
|
3590
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3406
3591
|
def named_parameters(*args, **_arg1, &block); end
|
|
3407
3592
|
|
|
3408
3593
|
# Returns the value of attribute pattern.
|
|
3409
3594
|
#
|
|
3410
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3595
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
|
3411
3596
|
def pattern; end
|
|
3412
3597
|
|
|
3413
|
-
# source://forwardable/1.3.
|
|
3598
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3414
3599
|
def positional_parameters(*args, **_arg1, &block); end
|
|
3415
3600
|
|
|
3416
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3601
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
|
|
3417
3602
|
def to_s; end
|
|
3418
3603
|
|
|
3419
3604
|
class << self
|
|
@@ -3421,7 +3606,7 @@ class RuboCop::AST::NodePattern
|
|
|
3421
3606
|
#
|
|
3422
3607
|
# @yield [element]
|
|
3423
3608
|
#
|
|
3424
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#
|
|
3609
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#59
|
|
3425
3610
|
def descend(element, &block); end
|
|
3426
3611
|
end
|
|
3427
3612
|
end
|
|
@@ -3430,6 +3615,8 @@ end
|
|
|
3430
3615
|
#
|
|
3431
3616
|
# Doc on how this fits in the compiling process:
|
|
3432
3617
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
3618
|
+
#
|
|
3619
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#10
|
|
3433
3620
|
class RuboCop::AST::NodePattern::Builder
|
|
3434
3621
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#17
|
|
3435
3622
|
def emit_atom(type, value); end
|
|
@@ -3467,6 +3654,8 @@ class RuboCop::AST::NodePattern::Builder
|
|
|
3467
3654
|
end
|
|
3468
3655
|
|
|
3469
3656
|
# A NodePattern comment, simplified version of ::Parser::Source::Comment
|
|
3657
|
+
#
|
|
3658
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#7
|
|
3470
3659
|
class RuboCop::AST::NodePattern::Comment
|
|
3471
3660
|
# @param range [Parser::Source::Range]
|
|
3472
3661
|
# @return [Comment] a new instance of Comment
|
|
@@ -3509,6 +3698,8 @@ end
|
|
|
3509
3698
|
#
|
|
3510
3699
|
# Doc on how this fits in the compiling process:
|
|
3511
3700
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
3701
|
+
#
|
|
3702
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11
|
|
3512
3703
|
class RuboCop::AST::NodePattern::Compiler
|
|
3513
3704
|
extend ::Forwardable
|
|
3514
3705
|
|
|
@@ -3517,7 +3708,7 @@ class RuboCop::AST::NodePattern::Compiler
|
|
|
3517
3708
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
|
|
3518
3709
|
def initialize; end
|
|
3519
3710
|
|
|
3520
|
-
# source://forwardable/1.3.
|
|
3711
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3521
3712
|
def bind(*args, **_arg1, &block); end
|
|
3522
3713
|
|
|
3523
3714
|
# Returns the value of attribute binding.
|
|
@@ -3589,6 +3780,8 @@ end
|
|
|
3589
3780
|
#
|
|
3590
3781
|
# Doc on how this fits in the compiling process:
|
|
3591
3782
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
3783
|
+
#
|
|
3784
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#12
|
|
3592
3785
|
class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
|
|
3593
3786
|
private
|
|
3594
3787
|
|
|
@@ -3626,6 +3819,8 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod
|
|
|
3626
3819
|
end
|
|
3627
3820
|
|
|
3628
3821
|
# Holds the list of bound variable names
|
|
3822
|
+
#
|
|
3823
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#8
|
|
3629
3824
|
class RuboCop::AST::NodePattern::Compiler::Binding
|
|
3630
3825
|
# @return [Binding] a new instance of Binding
|
|
3631
3826
|
#
|
|
@@ -3649,13 +3844,15 @@ class RuboCop::AST::NodePattern::Compiler::Binding
|
|
|
3649
3844
|
end
|
|
3650
3845
|
|
|
3651
3846
|
# Variant of the Compiler with tracing information for nodes
|
|
3847
|
+
#
|
|
3848
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#10
|
|
3652
3849
|
class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler
|
|
3653
3850
|
# @return [Debug] a new instance of Debug
|
|
3654
3851
|
#
|
|
3655
3852
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
|
|
3656
3853
|
def initialize; end
|
|
3657
3854
|
|
|
3658
|
-
# source://forwardable/1.3.
|
|
3855
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3659
3856
|
def comments(*args, **_arg1, &block); end
|
|
3660
3857
|
|
|
3661
3858
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128
|
|
@@ -3669,11 +3866,13 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
|
|
|
3669
3866
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132
|
|
3670
3867
|
def parser; end
|
|
3671
3868
|
|
|
3672
|
-
# source://forwardable/1.3.
|
|
3869
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3673
3870
|
def tokens(*args, **_arg1, &block); end
|
|
3674
3871
|
end
|
|
3675
3872
|
|
|
3676
3873
|
# @api private
|
|
3874
|
+
#
|
|
3875
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#36
|
|
3677
3876
|
class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer
|
|
3678
3877
|
# @api private
|
|
3679
3878
|
# @return [Colorizer] a new instance of Colorizer
|
|
@@ -3729,6 +3928,8 @@ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::
|
|
|
3729
3928
|
# Consider constructor is private
|
|
3730
3929
|
#
|
|
3731
3930
|
# @api private
|
|
3931
|
+
#
|
|
3932
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46
|
|
3732
3933
|
class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
|
|
3733
3934
|
# @api private
|
|
3734
3935
|
# @return [Hash] a map for {character_position => color}
|
|
@@ -3820,6 +4021,8 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
|
|
|
3820
4021
|
end
|
|
3821
4022
|
|
|
3822
4023
|
# @api private
|
|
4024
|
+
#
|
|
4025
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#139
|
|
3823
4026
|
module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
|
3824
4027
|
# @api private
|
|
3825
4028
|
#
|
|
@@ -3840,17 +4043,23 @@ module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
|
|
3840
4043
|
end
|
|
3841
4044
|
|
|
3842
4045
|
# @api private
|
|
4046
|
+
#
|
|
4047
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156
|
|
3843
4048
|
class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler
|
|
3844
4049
|
include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
|
3845
4050
|
end
|
|
3846
4051
|
|
|
3847
4052
|
# @api private
|
|
4053
|
+
#
|
|
4054
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#161
|
|
3848
4055
|
class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler
|
|
3849
4056
|
include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
|
|
3850
4057
|
end
|
|
3851
4058
|
|
|
3852
4059
|
# Compiled node pattern requires a named parameter `trace`,
|
|
3853
4060
|
# which should be an instance of this class
|
|
4061
|
+
#
|
|
4062
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#13
|
|
3854
4063
|
class RuboCop::AST::NodePattern::Compiler::Debug::Trace
|
|
3855
4064
|
# @return [Trace] a new instance of Trace
|
|
3856
4065
|
#
|
|
@@ -3877,6 +4086,8 @@ end
|
|
|
3877
4086
|
#
|
|
3878
4087
|
# Doc on how this fits in the compiling process:
|
|
3879
4088
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
4089
|
+
#
|
|
4090
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#13
|
|
3880
4091
|
class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
|
|
3881
4092
|
# @return [NodePatternSubcompiler] a new instance of NodePatternSubcompiler
|
|
3882
4093
|
#
|
|
@@ -3971,6 +4182,8 @@ end
|
|
|
3971
4182
|
# Doc on how this fits in the compiling process:
|
|
3972
4183
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
3973
4184
|
#
|
|
4185
|
+
#
|
|
4186
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17
|
|
3974
4187
|
class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
|
|
3975
4188
|
# Calls `compile_sequence`; the actual `compile` method
|
|
3976
4189
|
# will be used for the different terms of the sequence.
|
|
@@ -4134,6 +4347,8 @@ RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.uns
|
|
|
4134
4347
|
#
|
|
4135
4348
|
# Doc on how this fits in the compiling process:
|
|
4136
4349
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
4350
|
+
#
|
|
4351
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#12
|
|
4137
4352
|
class RuboCop::AST::NodePattern::Compiler::Subcompiler
|
|
4138
4353
|
# @return [Subcompiler] a new instance of Subcompiler
|
|
4139
4354
|
#
|
|
@@ -4176,12 +4391,15 @@ class RuboCop::AST::NodePattern::Compiler::Subcompiler
|
|
|
4176
4391
|
end
|
|
4177
4392
|
end
|
|
4178
4393
|
|
|
4394
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#53
|
|
4179
4395
|
class RuboCop::AST::NodePattern::Invalid < ::StandardError; end
|
|
4180
4396
|
|
|
4181
4397
|
# Lexer class for `NodePattern`
|
|
4182
4398
|
#
|
|
4183
4399
|
# Doc on how this fits in the compiling process:
|
|
4184
4400
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
4401
|
+
#
|
|
4402
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#18
|
|
4185
4403
|
class RuboCop::AST::NodePattern::Lexer < ::RuboCop::AST::NodePattern::LexerRex
|
|
4186
4404
|
# @return [Lexer] a new instance of Lexer
|
|
4187
4405
|
#
|
|
@@ -4230,6 +4448,8 @@ RuboCop::AST::NodePattern::Lexer::Error = RuboCop::AST::NodePattern::LexerRex::S
|
|
|
4230
4448
|
RuboCop::AST::NodePattern::Lexer::REGEXP_OPTIONS = T.let(T.unsafe(nil), Hash)
|
|
4231
4449
|
|
|
4232
4450
|
# The generated lexer RuboCop::AST::NodePattern::LexerRex
|
|
4451
|
+
#
|
|
4452
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#23
|
|
4233
4453
|
class RuboCop::AST::NodePattern::LexerRex
|
|
4234
4454
|
# Yields on the current action.
|
|
4235
4455
|
#
|
|
@@ -4315,6 +4535,8 @@ RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
|
|
|
4315
4535
|
|
|
4316
4536
|
# :startdoc:
|
|
4317
4537
|
# :stopdoc:
|
|
4538
|
+
#
|
|
4539
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#36
|
|
4318
4540
|
class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError; end
|
|
4319
4541
|
|
|
4320
4542
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#30
|
|
@@ -4329,9 +4551,12 @@ RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp)
|
|
|
4329
4551
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#28
|
|
4330
4552
|
RuboCop::AST::NodePattern::LexerRex::SYMBOL_NAME = T.let(T.unsafe(nil), Regexp)
|
|
4331
4553
|
|
|
4554
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#37
|
|
4332
4555
|
class RuboCop::AST::NodePattern::LexerRex::ScanError < ::RuboCop::AST::NodePattern::LexerRex::LexerError; end
|
|
4333
4556
|
|
|
4334
4557
|
# Helpers for defining methods based on a pattern string
|
|
4558
|
+
#
|
|
4559
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#28
|
|
4335
4560
|
module RuboCop::AST::NodePattern::Macros
|
|
4336
4561
|
# Define a method which applies a pattern to an AST node
|
|
4337
4562
|
#
|
|
@@ -4356,6 +4581,8 @@ module RuboCop::AST::NodePattern::Macros
|
|
|
4356
4581
|
end
|
|
4357
4582
|
|
|
4358
4583
|
# Functionality to turn `match_code` into methods/lambda
|
|
4584
|
+
#
|
|
4585
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#7
|
|
4359
4586
|
module RuboCop::AST::NodePattern::MethodDefiner
|
|
4360
4587
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#37
|
|
4361
4588
|
def as_lambda; end
|
|
@@ -4411,6 +4638,8 @@ module RuboCop::AST::NodePattern::MethodDefiner
|
|
|
4411
4638
|
end
|
|
4412
4639
|
|
|
4413
4640
|
# Base class for AST Nodes of a `NodePattern`
|
|
4641
|
+
#
|
|
4642
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7
|
|
4414
4643
|
class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
|
4415
4644
|
include ::RuboCop::AST::Descendence
|
|
4416
4645
|
extend ::Forwardable
|
|
@@ -4476,6 +4705,8 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
|
|
|
4476
4705
|
end
|
|
4477
4706
|
|
|
4478
4707
|
# Node class for `<int str ...>`
|
|
4708
|
+
#
|
|
4709
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#176
|
|
4479
4710
|
class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
|
|
4480
4711
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
|
4481
4712
|
|
|
@@ -4498,8 +4729,10 @@ end
|
|
|
4498
4729
|
RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
|
|
4499
4730
|
|
|
4500
4731
|
# Node class for `$something`
|
|
4732
|
+
#
|
|
4733
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#93
|
|
4501
4734
|
class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
|
|
4502
|
-
# source://forwardable/1.3.
|
|
4735
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4503
4736
|
def arity(*args, **_arg1, &block); end
|
|
4504
4737
|
|
|
4505
4738
|
# @return [Boolean]
|
|
@@ -4513,10 +4746,11 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No
|
|
|
4513
4746
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101
|
|
4514
4747
|
def nb_captures; end
|
|
4515
4748
|
|
|
4516
|
-
# source://forwardable/1.3.
|
|
4749
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4517
4750
|
def rest?(*args, **_arg1, &block); end
|
|
4518
4751
|
end
|
|
4519
4752
|
|
|
4753
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82
|
|
4520
4754
|
module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
|
4521
4755
|
# @raise [NodePattern::Invalid]
|
|
4522
4756
|
#
|
|
@@ -4539,6 +4773,8 @@ RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
|
|
|
4539
4773
|
RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
|
|
4540
4774
|
|
|
4541
4775
|
# Node class for `predicate?(:arg, :list)`
|
|
4776
|
+
#
|
|
4777
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#127
|
|
4542
4778
|
class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
|
|
4543
4779
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132
|
|
4544
4780
|
def arg_list; end
|
|
@@ -4548,6 +4784,8 @@ class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::
|
|
|
4548
4784
|
end
|
|
4549
4785
|
|
|
4550
4786
|
# Node class for `int+`
|
|
4787
|
+
#
|
|
4788
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139
|
|
4551
4789
|
class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
|
|
4552
4790
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
|
4553
4791
|
|
|
@@ -4562,6 +4800,8 @@ end
|
|
|
4562
4800
|
RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
|
|
4563
4801
|
|
|
4564
4802
|
# Node class for `...`
|
|
4803
|
+
#
|
|
4804
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#158
|
|
4565
4805
|
class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
|
|
4566
4806
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166
|
|
4567
4807
|
def arity; end
|
|
@@ -4579,6 +4819,8 @@ end
|
|
|
4579
4819
|
RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
|
|
4580
4820
|
|
|
4581
4821
|
# Node class for `(type first second ...)`
|
|
4822
|
+
#
|
|
4823
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#114
|
|
4582
4824
|
class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
|
|
4583
4825
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
|
4584
4826
|
|
|
@@ -4589,6 +4831,8 @@ class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::N
|
|
|
4589
4831
|
end
|
|
4590
4832
|
|
|
4591
4833
|
# A list (potentially empty) of nodes; part of a Union
|
|
4834
|
+
#
|
|
4835
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#202
|
|
4592
4836
|
class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
|
|
4593
4837
|
include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
|
|
4594
4838
|
|
|
@@ -4600,6 +4844,8 @@ class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern
|
|
|
4600
4844
|
end
|
|
4601
4845
|
|
|
4602
4846
|
# Node class for `{ ... }`
|
|
4847
|
+
#
|
|
4848
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#220
|
|
4603
4849
|
class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
|
|
4604
4850
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#221
|
|
4605
4851
|
def arity; end
|
|
@@ -4613,6 +4859,8 @@ end
|
|
|
4613
4859
|
#
|
|
4614
4860
|
# Doc on how this fits in the compiling process:
|
|
4615
4861
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
|
4862
|
+
#
|
|
4863
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12
|
|
4616
4864
|
class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
|
4617
4865
|
extend ::Forwardable
|
|
4618
4866
|
|
|
@@ -4733,28 +4981,28 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
|
|
4733
4981
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463
|
|
4734
4982
|
def _reduce_none(val, _values); end
|
|
4735
4983
|
|
|
4736
|
-
# source://forwardable/1.3.
|
|
4984
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4737
4985
|
def emit_atom(*args, **_arg1, &block); end
|
|
4738
4986
|
|
|
4739
|
-
# source://forwardable/1.3.
|
|
4987
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4740
4988
|
def emit_call(*args, **_arg1, &block); end
|
|
4741
4989
|
|
|
4742
|
-
# source://forwardable/1.3.
|
|
4990
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4743
4991
|
def emit_capture(*args, **_arg1, &block); end
|
|
4744
4992
|
|
|
4745
|
-
# source://forwardable/1.3.
|
|
4993
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4746
4994
|
def emit_list(*args, **_arg1, &block); end
|
|
4747
4995
|
|
|
4748
|
-
# source://forwardable/1.3.
|
|
4996
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4749
4997
|
def emit_unary_op(*args, **_arg1, &block); end
|
|
4750
4998
|
|
|
4751
|
-
# source://forwardable/1.3.
|
|
4999
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4752
5000
|
def emit_union(*args, **_arg1, &block); end
|
|
4753
5001
|
|
|
4754
5002
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
|
|
4755
5003
|
def inspect; end
|
|
4756
5004
|
|
|
4757
|
-
# source://forwardable/1.3.
|
|
5005
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
4758
5006
|
def next_token(*args, **_arg1, &block); end
|
|
4759
5007
|
|
|
4760
5008
|
# (Similar API to `parser` gem)
|
|
@@ -4797,6 +5045,8 @@ RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), Fals
|
|
|
4797
5045
|
RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
|
|
4798
5046
|
|
|
4799
5047
|
# Overrides Parser to use `WithMeta` variants and provide additional methods
|
|
5048
|
+
#
|
|
5049
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#8
|
|
4800
5050
|
class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser
|
|
4801
5051
|
# Returns the value of attribute comments.
|
|
4802
5052
|
#
|
|
@@ -4813,6 +5063,8 @@ class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern:
|
|
|
4813
5063
|
end
|
|
4814
5064
|
|
|
4815
5065
|
# Overrides Builder to emit nodes with locations
|
|
5066
|
+
#
|
|
5067
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#39
|
|
4816
5068
|
class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::NodePattern::Builder
|
|
4817
5069
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#40
|
|
4818
5070
|
def emit_atom(type, token); end
|
|
@@ -4842,6 +5094,8 @@ class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::Nod
|
|
|
4842
5094
|
end
|
|
4843
5095
|
|
|
4844
5096
|
# Overrides Lexer to token locations and comments
|
|
5097
|
+
#
|
|
5098
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#10
|
|
4845
5099
|
class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodePattern::Lexer
|
|
4846
5100
|
# @return [Lexer] a new instance of Lexer
|
|
4847
5101
|
#
|
|
@@ -4866,6 +5120,8 @@ class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodeP
|
|
|
4866
5120
|
end
|
|
4867
5121
|
|
|
4868
5122
|
# Utility to assign a set of values to a constant
|
|
5123
|
+
#
|
|
5124
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#7
|
|
4869
5125
|
module RuboCop::AST::NodePattern::Sets
|
|
4870
5126
|
class << self
|
|
4871
5127
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#31
|
|
@@ -4894,21 +5150,12 @@ RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set)
|
|
|
4894
5150
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4895
5151
|
RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set)
|
|
4896
5152
|
|
|
4897
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4898
|
-
RuboCop::AST::NodePattern::Sets::SET_1_2 = T.let(T.unsafe(nil), Set)
|
|
4899
|
-
|
|
4900
5153
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4901
5154
|
RuboCop::AST::NodePattern::Sets::SET_ABSTRACT_OVERRIDE_OVERRIDABLE_ETC = T.let(T.unsafe(nil), Set)
|
|
4902
5155
|
|
|
4903
5156
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4904
5157
|
RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
|
|
4905
5158
|
|
|
4906
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4907
|
-
RuboCop::AST::NodePattern::Sets::SET_ALL_CONTEXT = T.let(T.unsafe(nil), Set)
|
|
4908
|
-
|
|
4909
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4910
|
-
RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let(T.unsafe(nil), Set)
|
|
4911
|
-
|
|
4912
5159
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4913
5160
|
RuboCop::AST::NodePattern::Sets::SET_ANY_ALL_NORETURN_ETC = T.let(T.unsafe(nil), Set)
|
|
4914
5161
|
|
|
@@ -4921,24 +5168,9 @@ RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.l
|
|
|
4921
5168
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4922
5169
|
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
|
|
4923
5170
|
|
|
4924
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4925
|
-
RuboCop::AST::NodePattern::Sets::SET_BACKGROUND_SCENARIO_XSCENARIO_ETC = T.let(T.unsafe(nil), Set)
|
|
4926
|
-
|
|
4927
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4928
|
-
RuboCop::AST::NodePattern::Sets::SET_BEFORE_AFTER = T.let(T.unsafe(nil), Set)
|
|
4929
|
-
|
|
4930
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4931
|
-
RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set)
|
|
4932
|
-
|
|
4933
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4934
|
-
RuboCop::AST::NodePattern::Sets::SET_BE_TRUTHY_BE_FALSEY_BE_FALSY_ETC = T.let(T.unsafe(nil), Set)
|
|
4935
|
-
|
|
4936
5171
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4937
5172
|
RuboCop::AST::NodePattern::Sets::SET_BRANCH_REF_TAG = T.let(T.unsafe(nil), Set)
|
|
4938
5173
|
|
|
4939
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4940
|
-
RuboCop::AST::NodePattern::Sets::SET_CALL_RUN = T.let(T.unsafe(nil), Set)
|
|
4941
|
-
|
|
4942
5174
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4943
5175
|
RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set)
|
|
4944
5176
|
|
|
@@ -4958,10 +5190,10 @@ RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE = T.let(T.unsafe(nil), Set)
|
|
|
4958
5190
|
RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), Set)
|
|
4959
5191
|
|
|
4960
5192
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4961
|
-
RuboCop::AST::NodePattern::Sets::
|
|
5193
|
+
RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set)
|
|
4962
5194
|
|
|
4963
5195
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4964
|
-
RuboCop::AST::NodePattern::Sets::
|
|
5196
|
+
RuboCop::AST::NodePattern::Sets::SET_CONSTANTIZE_CONSTANTS_CONST_GET = T.let(T.unsafe(nil), Set)
|
|
4965
5197
|
|
|
4966
5198
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4967
5199
|
RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
|
|
@@ -4972,12 +5204,6 @@ RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set)
|
|
|
4972
5204
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4973
5205
|
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
|
|
4974
5206
|
|
|
4975
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4976
|
-
RuboCop::AST::NodePattern::Sets::SET_DOUBLE_SPY = T.let(T.unsafe(nil), Set)
|
|
4977
|
-
|
|
4978
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4979
|
-
RuboCop::AST::NodePattern::Sets::SET_EACH_EXAMPLE = T.let(T.unsafe(nil), Set)
|
|
4980
|
-
|
|
4981
5207
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4982
5208
|
RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe(nil), Set)
|
|
4983
5209
|
|
|
@@ -4985,25 +5211,19 @@ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe
|
|
|
4985
5211
|
RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set)
|
|
4986
5212
|
|
|
4987
5213
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4988
|
-
RuboCop::AST::NodePattern::Sets::
|
|
5214
|
+
RuboCop::AST::NodePattern::Sets::SET_ENV = T.let(T.unsafe(nil), Set)
|
|
4989
5215
|
|
|
4990
5216
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4991
5217
|
RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set)
|
|
4992
5218
|
|
|
4993
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4994
|
-
RuboCop::AST::NodePattern::Sets::SET_EXACTLY_AT_LEAST_AT_MOST = T.let(T.unsafe(nil), Set)
|
|
4995
|
-
|
|
4996
5219
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
4997
5220
|
RuboCop::AST::NodePattern::Sets::SET_EXIST_EXISTS = T.let(T.unsafe(nil), Set)
|
|
4998
5221
|
|
|
4999
5222
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5000
|
-
RuboCop::AST::NodePattern::Sets::
|
|
5223
|
+
RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set)
|
|
5001
5224
|
|
|
5002
5225
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5003
|
-
RuboCop::AST::NodePattern::Sets::
|
|
5004
|
-
|
|
5005
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5006
|
-
RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set)
|
|
5226
|
+
RuboCop::AST::NodePattern::Sets::SET_FILE_DIR = T.let(T.unsafe(nil), Set)
|
|
5007
5227
|
|
|
5008
5228
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5009
5229
|
RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set)
|
|
@@ -5014,6 +5234,9 @@ RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set)
|
|
|
5014
5234
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5015
5235
|
RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set)
|
|
5016
5236
|
|
|
5237
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5238
|
+
RuboCop::AST::NodePattern::Sets::SET_GETHOSTBYADDR_GETHOSTBYNAME = T.let(T.unsafe(nil), Set)
|
|
5239
|
+
|
|
5017
5240
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5018
5241
|
RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set)
|
|
5019
5242
|
|
|
@@ -5026,9 +5249,6 @@ RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.le
|
|
|
5026
5249
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5027
5250
|
RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set)
|
|
5028
5251
|
|
|
5029
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5030
|
-
RuboCop::AST::NodePattern::Sets::SET_IS_EXPECTED_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set)
|
|
5031
|
-
|
|
5032
5252
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5033
5253
|
RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set)
|
|
5034
5254
|
|
|
@@ -5056,9 +5276,6 @@ RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set)
|
|
|
5056
5276
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5057
5277
|
RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
|
|
5058
5278
|
|
|
5059
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5060
|
-
RuboCop::AST::NodePattern::Sets::SET_PENDING_SKIP = T.let(T.unsafe(nil), Set)
|
|
5061
|
-
|
|
5062
5279
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5063
5280
|
RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
|
|
5064
5281
|
|
|
@@ -5071,9 +5288,6 @@ RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED = T.let(T.unsafe(nil), Se
|
|
|
5071
5288
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5072
5289
|
RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set)
|
|
5073
5290
|
|
|
5074
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5075
|
-
RuboCop::AST::NodePattern::Sets::SET_PROC_LAMBDA = T.let(T.unsafe(nil), Set)
|
|
5076
|
-
|
|
5077
5291
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5078
5292
|
RuboCop::AST::NodePattern::Sets::SET_PROP_CONST = T.let(T.unsafe(nil), Set)
|
|
5079
5293
|
|
|
@@ -5083,27 +5297,12 @@ RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.
|
|
|
5083
5297
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5084
5298
|
RuboCop::AST::NodePattern::Sets::SET_PUBLIC_PROTECTED_PRIVATE_MODULE_FUNCTION = T.let(T.unsafe(nil), Set)
|
|
5085
5299
|
|
|
5086
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5087
|
-
RuboCop::AST::NodePattern::Sets::SET_RAISE_ERROR_RAISE_EXCEPTION = T.let(T.unsafe(nil), Set)
|
|
5088
|
-
|
|
5089
5300
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5090
5301
|
RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set)
|
|
5091
5302
|
|
|
5092
5303
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5093
5304
|
RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), Set)
|
|
5094
5305
|
|
|
5095
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5096
|
-
RuboCop::AST::NodePattern::Sets::SET_RECEIVE_HAVE_RECEIVED = T.let(T.unsafe(nil), Set)
|
|
5097
|
-
|
|
5098
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5099
|
-
RuboCop::AST::NodePattern::Sets::SET_RECEIVE_MESSAGE_CHAIN_STUB_CHAIN = T.let(T.unsafe(nil), Set)
|
|
5100
|
-
|
|
5101
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5102
|
-
RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGES_RECEIVE_MESSAGE_CHAIN_HAVE_RECEIVED = T.let(T.unsafe(nil), Set)
|
|
5103
|
-
|
|
5104
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5105
|
-
RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.unsafe(nil), Set)
|
|
5106
|
-
|
|
5107
5306
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5108
5307
|
RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
|
|
5109
5308
|
|
|
@@ -5119,9 +5318,6 @@ RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
|
|
|
5119
5318
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5120
5319
|
RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
|
|
5121
5320
|
|
|
5122
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5123
|
-
RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set)
|
|
5124
|
-
|
|
5125
5321
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5126
5322
|
RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set)
|
|
5127
5323
|
|
|
@@ -5152,9 +5348,6 @@ RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set)
|
|
|
5152
5348
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5153
5349
|
RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set)
|
|
5154
5350
|
|
|
5155
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5156
|
-
RuboCop::AST::NodePattern::Sets::SET_TO_TO_NOT_NOT_TO = T.let(T.unsafe(nil), Set)
|
|
5157
|
-
|
|
5158
5351
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
|
5159
5352
|
RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set)
|
|
5160
5353
|
|
|
@@ -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
|
|
@@ -5718,13 +5934,13 @@ class RuboCop::AST::ProcessedSource
|
|
|
5718
5934
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#190
|
|
5719
5935
|
def comment_index; end
|
|
5720
5936
|
|
|
5721
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
|
5937
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#278
|
|
5722
5938
|
def create_parser(ruby_version); end
|
|
5723
5939
|
|
|
5724
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
|
5940
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#294
|
|
5725
5941
|
def first_token_index(range_or_node); end
|
|
5726
5942
|
|
|
5727
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
|
5943
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#299
|
|
5728
5944
|
def last_token_index(range_or_node); end
|
|
5729
5945
|
|
|
5730
5946
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#196
|
|
@@ -5733,19 +5949,19 @@ class RuboCop::AST::ProcessedSource
|
|
|
5733
5949
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#230
|
|
5734
5950
|
def parser_class(ruby_version); end
|
|
5735
5951
|
|
|
5736
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
|
5952
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#304
|
|
5737
5953
|
def source_range(range_or_node); end
|
|
5738
5954
|
|
|
5739
5955
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#213
|
|
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.45.1/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.45.1/lib/rubocop/ast_aliases.rb#6
|
|
6784
7031
|
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
|
6785
7032
|
|
|
6786
|
-
# source://rubocop/1.
|
|
7033
|
+
# source://rubocop/1.45.1/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
|