mangrove 0.24.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -5
- data/lib/mangrove/result.rb +73 -64
- data/lib/mangrove/version.rb +1 -1
- data/rbi/mangrove.rbi +20 -0
- data/sorbet/rbi/annotations/rainbow.rbi +3 -3
- data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.5.1.rbi} +100 -48
- data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.2.rbi} +95 -74
- data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.24.0.rbi} +9 -1
- data/sorbet/rbi/gems/{parser@3.2.2.4.rbi → parser@3.3.2.0.rbi} +1267 -1282
- data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
- data/sorbet/rbi/gems/{psych@5.1.1.1.rbi → psych@5.1.2.rbi} +231 -267
- data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.0.rbi} +37 -36
- data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.2.1.rbi} +217 -73
- data/sorbet/rbi/gems/{rbi@0.1.3.rbi → rbi@0.1.13.rbi} +322 -166
- data/sorbet/rbi/gems/{rdoc@6.6.0.rbi → rdoc@6.7.0.rbi} +735 -685
- data/sorbet/rbi/gems/{regexp_parser@2.8.2.rbi → regexp_parser@2.9.2.rbi} +192 -169
- data/sorbet/rbi/gems/{reline@0.4.0.rbi → reline@0.5.8.rbi} +1 -0
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.2.8.rbi} +122 -109
- data/sorbet/rbi/gems/{rspec-core@3.12.2.rbi → rspec-core@3.13.0.rbi} +400 -300
- data/sorbet/rbi/gems/{rspec-expectations@3.12.3.rbi → rspec-expectations@3.13.0.rbi} +173 -119
- data/sorbet/rbi/gems/{rspec-mocks@3.12.6.rbi → rspec-mocks@3.13.1.rbi} +195 -160
- data/sorbet/rbi/gems/{rspec-support@3.12.1.rbi → rspec-support@3.13.1.rbi} +319 -298
- data/sorbet/rbi/gems/{rspec@3.12.0.rbi → rspec@3.13.0.rbi} +23 -22
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +315 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.31.3.rbi} +348 -285
- data/sorbet/rbi/gems/{rubocop-capybara@2.19.0.rbi → rubocop-capybara@2.20.0.rbi} +148 -65
- data/sorbet/rbi/gems/{rubocop-factory_bot@2.24.0.rbi → rubocop-factory_bot@2.25.1.rbi} +70 -20
- data/sorbet/rbi/gems/{rubocop-rspec@2.24.1.rbi → rubocop-rspec@2.30.0.rbi} +678 -389
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +911 -0
- data/sorbet/rbi/gems/{rubocop@1.57.1.rbi → rubocop@1.64.1.rbi} +3225 -1915
- data/sorbet/rbi/gems/{ruby-lsp@0.12.0.rbi → ruby-lsp@0.17.2.rbi} +1 -0
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.11.10.rbi → tapioca@0.14.3.rbi} +268 -234
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +57 -50
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +154 -82
- metadata +38 -38
- data/sorbet/rbi/gems/base64@0.1.1.rbi +0 -172
- data/sorbet/rbi/gems/irb@1.9.0.rbi +0 -342
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.15.1.rbi +0 -23922
- data/sorbet/rbi/gems/ruboclean@0.4.0.rbi +0 -189
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
- /data/sorbet/rbi/gems/{stringio@3.0.9.rbi → stringio@3.1.0.rbi} +0 -0
@@ -4,6 +4,7 @@
|
|
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
|
+
|
7
8
|
class Parser::Source::Range
|
8
9
|
include ::RuboCop::AST::Ext::Range
|
9
10
|
end
|
@@ -22,7 +23,7 @@ end
|
|
22
23
|
# node when the builder constructs the AST, making its methods available
|
23
24
|
# to all `alias` nodes within RuboCop.
|
24
25
|
#
|
25
|
-
# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#
|
26
|
+
# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#8
|
26
27
|
class RuboCop::AST::AliasNode < ::RuboCop::AST::Node
|
27
28
|
# Returns the new identifier as specified by the `alias`.
|
28
29
|
#
|
@@ -43,7 +44,7 @@ end
|
|
43
44
|
# This will be used in place of a plain node when the builder constructs
|
44
45
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
45
46
|
#
|
46
|
-
# source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#
|
47
|
+
# source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#8
|
47
48
|
class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode
|
48
49
|
# The operator being used for assignment as a symbol.
|
49
50
|
#
|
@@ -84,7 +85,7 @@ end
|
|
84
85
|
# This will be used in place of a plain node when the builder constructs
|
85
86
|
# the AST, making its methods available to all `arg` nodes within RuboCop.
|
86
87
|
#
|
87
|
-
# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#
|
88
|
+
# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#9
|
88
89
|
class RuboCop::AST::ArgNode < ::RuboCop::AST::Node
|
89
90
|
# Checks whether the argument has a default value
|
90
91
|
#
|
@@ -198,7 +199,7 @@ RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
|
|
198
199
|
# This will be used in place of a plain node when the builder constructs
|
199
200
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
200
201
|
#
|
201
|
-
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#
|
202
|
+
# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#8
|
202
203
|
class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node
|
203
204
|
# The expression being assigned to the variable.
|
204
205
|
#
|
@@ -275,7 +276,7 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
275
276
|
#
|
276
277
|
# @return [Array<Node>]
|
277
278
|
#
|
278
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
279
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#60
|
279
280
|
def argument_list; end
|
280
281
|
|
281
282
|
# The arguments of this block.
|
@@ -285,63 +286,81 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
285
286
|
#
|
286
287
|
# @return [Array<Node>]
|
287
288
|
#
|
288
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
289
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#48
|
289
290
|
def arguments; end
|
290
291
|
|
291
292
|
# Checks whether this block takes any arguments.
|
292
293
|
#
|
293
294
|
# @return [Boolean] whether this `block` node takes any arguments
|
294
295
|
#
|
295
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
296
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#85
|
296
297
|
def arguments?; end
|
297
298
|
|
298
299
|
# The body of this block.
|
299
300
|
#
|
300
301
|
# @return [Node, nil] the body of the `block` node or `nil`
|
301
302
|
#
|
302
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
303
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#71
|
303
304
|
def body; end
|
304
305
|
|
305
306
|
# Checks whether the `block` literal is delimited by curly braces.
|
306
307
|
#
|
307
308
|
# @return [Boolean] whether the `block` literal is enclosed in braces
|
308
309
|
#
|
309
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
310
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#92
|
310
311
|
def braces?; end
|
311
312
|
|
312
313
|
# The closing delimiter for this `block` literal.
|
313
314
|
#
|
314
315
|
# @return [String] the closing delimiter for the `block` literal
|
315
316
|
#
|
316
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
317
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#120
|
317
318
|
def closing_delimiter; end
|
318
319
|
|
319
320
|
# The delimiters for this `block` literal.
|
320
321
|
#
|
321
322
|
# @return [Array<String>] the delimiters for the `block` literal
|
322
323
|
#
|
323
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
324
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#106
|
324
325
|
def delimiters; end
|
325
326
|
|
327
|
+
# A shorthand for getting the first argument of this block.
|
328
|
+
# Equivalent to `arguments.first`.
|
329
|
+
#
|
330
|
+
# @return [Node, nil] the first argument of this block,
|
331
|
+
# or `nil` if there are no arguments
|
332
|
+
#
|
333
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#29
|
334
|
+
def first_argument; end
|
335
|
+
|
326
336
|
# Checks whether the `block` literal is delimited by `do`-`end` keywords.
|
327
337
|
#
|
328
338
|
# @return [Boolean] whether the `block` literal is enclosed in `do`-`end`
|
329
339
|
#
|
330
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
340
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#99
|
331
341
|
def keywords?; end
|
332
342
|
|
333
343
|
# Checks whether this `block` literal belongs to a lambda.
|
334
344
|
#
|
335
345
|
# @return [Boolean] whether the `block` literal belongs to a lambda
|
336
346
|
#
|
337
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
347
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#143
|
338
348
|
def lambda?; end
|
339
349
|
|
350
|
+
# A shorthand for getting the last argument of this block.
|
351
|
+
# Equivalent to `arguments.last`.
|
352
|
+
#
|
353
|
+
# @return [Node, nil] the last argument of this block,
|
354
|
+
# or `nil` if there are no arguments
|
355
|
+
#
|
356
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#38
|
357
|
+
def last_argument; end
|
358
|
+
|
340
359
|
# The name of the dispatched method as a symbol.
|
341
360
|
#
|
342
361
|
# @return [Symbol] the name of the dispatched method
|
343
362
|
#
|
344
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
363
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#78
|
345
364
|
def method_name; end
|
346
365
|
|
347
366
|
# Checks whether this is a multiline block. This is overridden here
|
@@ -349,14 +368,14 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
349
368
|
#
|
350
369
|
# @return [Boolean] whether the `block` literal is on a several lines
|
351
370
|
#
|
352
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
371
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#136
|
353
372
|
def multiline?; end
|
354
373
|
|
355
374
|
# The opening delimiter for this `block` literal.
|
356
375
|
#
|
357
376
|
# @return [String] the opening delimiter for the `block` literal
|
358
377
|
#
|
359
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
378
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#113
|
360
379
|
def opening_delimiter; end
|
361
380
|
|
362
381
|
# The `send` node associated with this block.
|
@@ -371,21 +390,21 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
|
|
371
390
|
#
|
372
391
|
# @return [Boolean] whether the `block` literal is on a single line
|
373
392
|
#
|
374
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
393
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#128
|
375
394
|
def single_line?; end
|
376
395
|
|
377
396
|
# Checks whether this node body is a void context.
|
378
397
|
#
|
379
398
|
# @return [Boolean] whether the `block` node body is a void context
|
380
399
|
#
|
381
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
400
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#150
|
382
401
|
def void_context?; end
|
383
402
|
|
384
403
|
private
|
385
404
|
|
386
405
|
# Numbered arguments of this `numblock`.
|
387
406
|
#
|
388
|
-
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#
|
407
|
+
# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#157
|
389
408
|
def numbered_arguments; end
|
390
409
|
end
|
391
410
|
|
@@ -549,7 +568,7 @@ end
|
|
549
568
|
# This will be used in place of a plain node when the builder constructs
|
550
569
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
551
570
|
#
|
552
|
-
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#
|
571
|
+
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8
|
553
572
|
class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
|
554
573
|
# The expression being assigned to the variable.
|
555
574
|
#
|
@@ -577,7 +596,7 @@ end
|
|
577
596
|
# node when the builder constructs the AST, making its methods available
|
578
597
|
# to all `class` nodes within RuboCop.
|
579
598
|
#
|
580
|
-
# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#
|
599
|
+
# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#8
|
581
600
|
class RuboCop::AST::ClassNode < ::RuboCop::AST::Node
|
582
601
|
# The body of this `class` node.
|
583
602
|
#
|
@@ -607,409 +626,409 @@ end
|
|
607
626
|
module RuboCop::AST::CollectionNode
|
608
627
|
extend ::Forwardable
|
609
628
|
|
610
|
-
# source://forwardable/1.3.
|
629
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
611
630
|
def &(*args, **_arg1, &block); end
|
612
631
|
|
613
|
-
# source://forwardable/1.3.
|
632
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
614
633
|
def *(*args, **_arg1, &block); end
|
615
634
|
|
616
|
-
# source://forwardable/1.3.
|
635
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
617
636
|
def +(*args, **_arg1, &block); end
|
618
637
|
|
619
|
-
# source://forwardable/1.3.
|
638
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
620
639
|
def -(*args, **_arg1, &block); end
|
621
640
|
|
622
|
-
# source://forwardable/1.3.
|
641
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
623
642
|
def <<(*args, **_arg1, &block); end
|
624
643
|
|
625
|
-
# source://forwardable/1.3.
|
644
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
626
645
|
def [](*args, **_arg1, &block); end
|
627
646
|
|
628
|
-
# source://forwardable/1.3.
|
647
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
629
648
|
def []=(*args, **_arg1, &block); end
|
630
649
|
|
631
|
-
# source://forwardable/1.3.
|
650
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
632
651
|
def all?(*args, **_arg1, &block); end
|
633
652
|
|
634
|
-
# source://forwardable/1.3.
|
653
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
635
654
|
def any?(*args, **_arg1, &block); end
|
636
655
|
|
637
|
-
# source://forwardable/1.3.
|
656
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
638
657
|
def append(*args, **_arg1, &block); end
|
639
658
|
|
640
|
-
# source://forwardable/1.3.
|
659
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
641
660
|
def assoc(*args, **_arg1, &block); end
|
642
661
|
|
643
|
-
# source://forwardable/1.3.
|
662
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
644
663
|
def at(*args, **_arg1, &block); end
|
645
664
|
|
646
|
-
# source://forwardable/1.3.
|
665
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
647
666
|
def bsearch(*args, **_arg1, &block); end
|
648
667
|
|
649
|
-
# source://forwardable/1.3.
|
668
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
650
669
|
def bsearch_index(*args, **_arg1, &block); end
|
651
670
|
|
652
|
-
# source://forwardable/1.3.
|
671
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
653
672
|
def chain(*args, **_arg1, &block); end
|
654
673
|
|
655
|
-
# source://forwardable/1.3.
|
674
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
656
675
|
def chunk(*args, **_arg1, &block); end
|
657
676
|
|
658
|
-
# source://forwardable/1.3.
|
677
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
659
678
|
def chunk_while(*args, **_arg1, &block); end
|
660
679
|
|
661
|
-
# source://forwardable/1.3.
|
680
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
662
681
|
def clear(*args, **_arg1, &block); end
|
663
682
|
|
664
|
-
# source://forwardable/1.3.
|
683
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
665
684
|
def collect(*args, **_arg1, &block); end
|
666
685
|
|
667
|
-
# source://forwardable/1.3.
|
686
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
668
687
|
def collect!(*args, **_arg1, &block); end
|
669
688
|
|
670
|
-
# source://forwardable/1.3.
|
689
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
671
690
|
def collect_concat(*args, **_arg1, &block); end
|
672
691
|
|
673
|
-
# source://forwardable/1.3.
|
692
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
674
693
|
def combination(*args, **_arg1, &block); end
|
675
694
|
|
676
|
-
# source://forwardable/1.3.
|
695
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
677
696
|
def compact(*args, **_arg1, &block); end
|
678
697
|
|
679
|
-
# source://forwardable/1.3.
|
698
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
680
699
|
def compact!(*args, **_arg1, &block); end
|
681
700
|
|
682
|
-
# source://forwardable/1.3.
|
701
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
683
702
|
def concat(*args, **_arg1, &block); end
|
684
703
|
|
685
|
-
# source://forwardable/1.3.
|
704
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
686
705
|
def count(*args, **_arg1, &block); end
|
687
706
|
|
688
|
-
# source://forwardable/1.3.
|
707
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
689
708
|
def cycle(*args, **_arg1, &block); end
|
690
709
|
|
691
|
-
# source://forwardable/1.3.
|
710
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
692
711
|
def deconstruct(*args, **_arg1, &block); end
|
693
712
|
|
694
|
-
# source://forwardable/1.3.
|
713
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
695
714
|
def delete(*args, **_arg1, &block); end
|
696
715
|
|
697
|
-
# source://forwardable/1.3.
|
716
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
698
717
|
def delete_at(*args, **_arg1, &block); end
|
699
718
|
|
700
|
-
# source://forwardable/1.3.
|
719
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
701
720
|
def delete_if(*args, **_arg1, &block); end
|
702
721
|
|
703
|
-
# source://forwardable/1.3.
|
722
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
704
723
|
def detect(*args, **_arg1, &block); end
|
705
724
|
|
706
|
-
# source://forwardable/1.3.
|
725
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
707
726
|
def difference(*args, **_arg1, &block); end
|
708
727
|
|
709
|
-
# source://forwardable/1.3.
|
728
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
710
729
|
def dig(*args, **_arg1, &block); end
|
711
730
|
|
712
|
-
# source://forwardable/1.3.
|
731
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
713
732
|
def drop(*args, **_arg1, &block); end
|
714
733
|
|
715
|
-
# source://forwardable/1.3.
|
734
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
716
735
|
def drop_while(*args, **_arg1, &block); end
|
717
736
|
|
718
|
-
# source://forwardable/1.3.
|
737
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
719
738
|
def each(*args, **_arg1, &block); end
|
720
739
|
|
721
|
-
# source://forwardable/1.3.
|
740
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
722
741
|
def each_cons(*args, **_arg1, &block); end
|
723
742
|
|
724
|
-
# source://forwardable/1.3.
|
743
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
725
744
|
def each_entry(*args, **_arg1, &block); end
|
726
745
|
|
727
|
-
# source://forwardable/1.3.
|
746
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
728
747
|
def each_index(*args, **_arg1, &block); end
|
729
748
|
|
730
|
-
# source://forwardable/1.3.
|
749
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
731
750
|
def each_slice(*args, **_arg1, &block); end
|
732
751
|
|
733
|
-
# source://forwardable/1.3.
|
752
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
734
753
|
def each_with_index(*args, **_arg1, &block); end
|
735
754
|
|
736
|
-
# source://forwardable/1.3.
|
755
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
737
756
|
def each_with_object(*args, **_arg1, &block); end
|
738
757
|
|
739
|
-
# source://forwardable/1.3.
|
758
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
740
759
|
def empty?(*args, **_arg1, &block); end
|
741
760
|
|
742
|
-
# source://forwardable/1.3.
|
761
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
743
762
|
def entries(*args, **_arg1, &block); end
|
744
763
|
|
745
|
-
# source://forwardable/1.3.
|
764
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
746
765
|
def fetch(*args, **_arg1, &block); end
|
747
766
|
|
748
|
-
# source://forwardable/1.3.
|
767
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
749
768
|
def fill(*args, **_arg1, &block); end
|
750
769
|
|
751
|
-
# source://forwardable/1.3.
|
770
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
752
771
|
def filter(*args, **_arg1, &block); end
|
753
772
|
|
754
|
-
# source://forwardable/1.3.
|
773
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
755
774
|
def filter!(*args, **_arg1, &block); end
|
756
775
|
|
757
|
-
# source://forwardable/1.3.
|
776
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
758
777
|
def filter_map(*args, **_arg1, &block); end
|
759
778
|
|
760
|
-
# source://forwardable/1.3.
|
779
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
761
780
|
def find(*args, **_arg1, &block); end
|
762
781
|
|
763
|
-
# source://forwardable/1.3.
|
782
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
764
783
|
def find_all(*args, **_arg1, &block); end
|
765
784
|
|
766
|
-
# source://forwardable/1.3.
|
785
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
767
786
|
def find_index(*args, **_arg1, &block); end
|
768
787
|
|
769
|
-
# source://forwardable/1.3.
|
788
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
770
789
|
def first(*args, **_arg1, &block); end
|
771
790
|
|
772
|
-
# source://forwardable/1.3.
|
791
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
773
792
|
def flat_map(*args, **_arg1, &block); end
|
774
793
|
|
775
|
-
# source://forwardable/1.3.
|
794
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
776
795
|
def flatten(*args, **_arg1, &block); end
|
777
796
|
|
778
|
-
# source://forwardable/1.3.
|
797
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
779
798
|
def flatten!(*args, **_arg1, &block); end
|
780
799
|
|
781
|
-
# source://forwardable/1.3.
|
800
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
782
801
|
def grep(*args, **_arg1, &block); end
|
783
802
|
|
784
|
-
# source://forwardable/1.3.
|
803
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
785
804
|
def grep_v(*args, **_arg1, &block); end
|
786
805
|
|
787
|
-
# source://forwardable/1.3.
|
806
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
788
807
|
def group_by(*args, **_arg1, &block); end
|
789
808
|
|
790
|
-
# source://forwardable/1.3.
|
809
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
791
810
|
def include?(*args, **_arg1, &block); end
|
792
811
|
|
793
|
-
# source://forwardable/1.3.
|
812
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
794
813
|
def index(*args, **_arg1, &block); end
|
795
814
|
|
796
|
-
# source://forwardable/1.3.
|
815
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
797
816
|
def inject(*args, **_arg1, &block); end
|
798
817
|
|
799
|
-
# source://forwardable/1.3.
|
818
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
800
819
|
def insert(*args, **_arg1, &block); end
|
801
820
|
|
802
|
-
# source://forwardable/1.3.
|
821
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
803
822
|
def intersect?(*args, **_arg1, &block); end
|
804
823
|
|
805
|
-
# source://forwardable/1.3.
|
824
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
806
825
|
def intersection(*args, **_arg1, &block); end
|
807
826
|
|
808
|
-
# source://forwardable/1.3.
|
827
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
809
828
|
def join(*args, **_arg1, &block); end
|
810
829
|
|
811
|
-
# source://forwardable/1.3.
|
830
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
812
831
|
def keep_if(*args, **_arg1, &block); end
|
813
832
|
|
814
|
-
# source://forwardable/1.3.
|
833
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
815
834
|
def last(*args, **_arg1, &block); end
|
816
835
|
|
817
|
-
# source://forwardable/1.3.
|
836
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
818
837
|
def lazy(*args, **_arg1, &block); end
|
819
838
|
|
820
|
-
# source://forwardable/1.3.
|
839
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
821
840
|
def length(*args, **_arg1, &block); end
|
822
841
|
|
823
|
-
# source://forwardable/1.3.
|
842
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
824
843
|
def map(*args, **_arg1, &block); end
|
825
844
|
|
826
|
-
# source://forwardable/1.3.
|
845
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
827
846
|
def map!(*args, **_arg1, &block); end
|
828
847
|
|
829
|
-
# source://forwardable/1.3.
|
848
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
830
849
|
def max(*args, **_arg1, &block); end
|
831
850
|
|
832
|
-
# source://forwardable/1.3.
|
851
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
833
852
|
def max_by(*args, **_arg1, &block); end
|
834
853
|
|
835
|
-
# source://forwardable/1.3.
|
854
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
836
855
|
def member?(*args, **_arg1, &block); end
|
837
856
|
|
838
|
-
# source://forwardable/1.3.
|
857
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
839
858
|
def min(*args, **_arg1, &block); end
|
840
859
|
|
841
|
-
# source://forwardable/1.3.
|
860
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
842
861
|
def min_by(*args, **_arg1, &block); end
|
843
862
|
|
844
|
-
# source://forwardable/1.3.
|
863
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
845
864
|
def minmax(*args, **_arg1, &block); end
|
846
865
|
|
847
|
-
# source://forwardable/1.3.
|
866
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
848
867
|
def minmax_by(*args, **_arg1, &block); end
|
849
868
|
|
850
|
-
# source://forwardable/1.3.
|
869
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
851
870
|
def none?(*args, **_arg1, &block); end
|
852
871
|
|
853
|
-
# source://forwardable/1.3.
|
872
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
854
873
|
def one?(*args, **_arg1, &block); end
|
855
874
|
|
856
|
-
# source://forwardable/1.3.
|
875
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
857
876
|
def pack(*args, **_arg1, &block); end
|
858
877
|
|
859
|
-
# source://forwardable/1.3.
|
878
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
860
879
|
def partition(*args, **_arg1, &block); end
|
861
880
|
|
862
|
-
# source://forwardable/1.3.
|
881
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
863
882
|
def permutation(*args, **_arg1, &block); end
|
864
883
|
|
865
|
-
# source://forwardable/1.3.
|
884
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
866
885
|
def place(*args, **_arg1, &block); end
|
867
886
|
|
868
|
-
# source://forwardable/1.3.
|
887
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
869
888
|
def pop(*args, **_arg1, &block); end
|
870
889
|
|
871
|
-
# source://forwardable/1.3.
|
890
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
872
891
|
def prepend(*args, **_arg1, &block); end
|
873
892
|
|
874
|
-
# source://forwardable/1.3.
|
893
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
875
894
|
def product(*args, **_arg1, &block); end
|
876
895
|
|
877
|
-
# source://forwardable/1.3.
|
896
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
878
897
|
def push(*args, **_arg1, &block); end
|
879
898
|
|
880
|
-
# source://forwardable/1.3.
|
899
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
881
900
|
def rassoc(*args, **_arg1, &block); end
|
882
901
|
|
883
|
-
# source://forwardable/1.3.
|
902
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
884
903
|
def reduce(*args, **_arg1, &block); end
|
885
904
|
|
886
|
-
# source://forwardable/1.3.
|
905
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
887
906
|
def reject(*args, **_arg1, &block); end
|
888
907
|
|
889
|
-
# source://forwardable/1.3.
|
908
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
890
909
|
def reject!(*args, **_arg1, &block); end
|
891
910
|
|
892
|
-
# source://forwardable/1.3.
|
911
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
893
912
|
def repeated_combination(*args, **_arg1, &block); end
|
894
913
|
|
895
|
-
# source://forwardable/1.3.
|
914
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
896
915
|
def repeated_permutation(*args, **_arg1, &block); end
|
897
916
|
|
898
|
-
# source://forwardable/1.3.
|
917
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
899
918
|
def replace(*args, **_arg1, &block); end
|
900
919
|
|
901
|
-
# source://forwardable/1.3.
|
920
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
902
921
|
def reverse(*args, **_arg1, &block); end
|
903
922
|
|
904
|
-
# source://forwardable/1.3.
|
923
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
905
924
|
def reverse!(*args, **_arg1, &block); end
|
906
925
|
|
907
|
-
# source://forwardable/1.3.
|
926
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
908
927
|
def reverse_each(*args, **_arg1, &block); end
|
909
928
|
|
910
|
-
# source://forwardable/1.3.
|
929
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
911
930
|
def rindex(*args, **_arg1, &block); end
|
912
931
|
|
913
|
-
# source://forwardable/1.3.
|
932
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
914
933
|
def rotate(*args, **_arg1, &block); end
|
915
934
|
|
916
|
-
# source://forwardable/1.3.
|
935
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
917
936
|
def rotate!(*args, **_arg1, &block); end
|
918
937
|
|
919
|
-
# source://forwardable/1.3.
|
938
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
920
939
|
def sample(*args, **_arg1, &block); end
|
921
940
|
|
922
|
-
# source://forwardable/1.3.
|
941
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
923
942
|
def select(*args, **_arg1, &block); end
|
924
943
|
|
925
|
-
# source://forwardable/1.3.
|
944
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
926
945
|
def select!(*args, **_arg1, &block); end
|
927
946
|
|
928
|
-
# source://forwardable/1.3.
|
947
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
929
948
|
def shelljoin(*args, **_arg1, &block); end
|
930
949
|
|
931
|
-
# source://forwardable/1.3.
|
950
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
932
951
|
def shift(*args, **_arg1, &block); end
|
933
952
|
|
934
|
-
# source://forwardable/1.3.
|
953
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
935
954
|
def shuffle(*args, **_arg1, &block); end
|
936
955
|
|
937
|
-
# source://forwardable/1.3.
|
956
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
938
957
|
def shuffle!(*args, **_arg1, &block); end
|
939
958
|
|
940
|
-
# source://forwardable/1.3.
|
959
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
941
960
|
def size(*args, **_arg1, &block); end
|
942
961
|
|
943
|
-
# source://forwardable/1.3.
|
962
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
944
963
|
def slice(*args, **_arg1, &block); end
|
945
964
|
|
946
|
-
# source://forwardable/1.3.
|
965
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
947
966
|
def slice!(*args, **_arg1, &block); end
|
948
967
|
|
949
|
-
# source://forwardable/1.3.
|
968
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
950
969
|
def slice_after(*args, **_arg1, &block); end
|
951
970
|
|
952
|
-
# source://forwardable/1.3.
|
971
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
953
972
|
def slice_before(*args, **_arg1, &block); end
|
954
973
|
|
955
|
-
# source://forwardable/1.3.
|
974
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
956
975
|
def slice_when(*args, **_arg1, &block); end
|
957
976
|
|
958
|
-
# source://forwardable/1.3.
|
977
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
959
978
|
def sort(*args, **_arg1, &block); end
|
960
979
|
|
961
|
-
# source://forwardable/1.3.
|
980
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
962
981
|
def sort!(*args, **_arg1, &block); end
|
963
982
|
|
964
|
-
# source://forwardable/1.3.
|
983
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
965
984
|
def sort_by(*args, **_arg1, &block); end
|
966
985
|
|
967
|
-
# source://forwardable/1.3.
|
986
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
968
987
|
def sort_by!(*args, **_arg1, &block); end
|
969
988
|
|
970
|
-
# source://forwardable/1.3.
|
989
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
971
990
|
def sum(*args, **_arg1, &block); end
|
972
991
|
|
973
|
-
# source://forwardable/1.3.
|
992
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
974
993
|
def take(*args, **_arg1, &block); end
|
975
994
|
|
976
|
-
# source://forwardable/1.3.
|
995
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
977
996
|
def take_while(*args, **_arg1, &block); end
|
978
997
|
|
979
|
-
# source://forwardable/1.3.
|
998
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
980
999
|
def tally(*args, **_arg1, &block); end
|
981
1000
|
|
982
|
-
# source://forwardable/1.3.
|
1001
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
983
1002
|
def to_ary(*args, **_arg1, &block); end
|
984
1003
|
|
985
|
-
# source://forwardable/1.3.
|
1004
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
986
1005
|
def to_h(*args, **_arg1, &block); end
|
987
1006
|
|
988
|
-
# source://forwardable/1.3.
|
1007
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
989
1008
|
def to_set(*args, **_arg1, &block); end
|
990
1009
|
|
991
|
-
# source://forwardable/1.3.
|
1010
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
992
1011
|
def transpose(*args, **_arg1, &block); end
|
993
1012
|
|
994
|
-
# source://forwardable/1.3.
|
1013
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
995
1014
|
def union(*args, **_arg1, &block); end
|
996
1015
|
|
997
|
-
# source://forwardable/1.3.
|
1016
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
998
1017
|
def uniq(*args, **_arg1, &block); end
|
999
1018
|
|
1000
|
-
# source://forwardable/1.3.
|
1019
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
1001
1020
|
def uniq!(*args, **_arg1, &block); end
|
1002
1021
|
|
1003
|
-
# source://forwardable/1.3.
|
1022
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
1004
1023
|
def unshift(*args, **_arg1, &block); end
|
1005
1024
|
|
1006
|
-
# source://forwardable/1.3.
|
1025
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
1007
1026
|
def values_at(*args, **_arg1, &block); end
|
1008
1027
|
|
1009
|
-
# source://forwardable/1.3.
|
1028
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
1010
1029
|
def zip(*args, **_arg1, &block); end
|
1011
1030
|
|
1012
|
-
# source://forwardable/1.3.
|
1031
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
1013
1032
|
def |(*args, **_arg1, &block); end
|
1014
1033
|
end
|
1015
1034
|
|
@@ -1059,7 +1078,7 @@ end
|
|
1059
1078
|
|
1060
1079
|
# A node extension for `const` nodes.
|
1061
1080
|
#
|
1062
|
-
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#
|
1081
|
+
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6
|
1063
1082
|
class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
1064
1083
|
# @return [Boolean] if the constant starts with `::` (aka s(:cbase))
|
1065
1084
|
#
|
@@ -1284,7 +1303,7 @@ end
|
|
1284
1303
|
# node when the builder constructs the AST, making its methods available
|
1285
1304
|
# to all `ensure` nodes within RuboCop.
|
1286
1305
|
#
|
1287
|
-
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#
|
1306
|
+
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#8
|
1288
1307
|
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
|
1289
1308
|
# Returns the body of the `ensure` clause.
|
1290
1309
|
#
|
@@ -1338,7 +1357,7 @@ end
|
|
1338
1357
|
# node when the builder constructs the AST, making its methods available
|
1339
1358
|
# to all `for` nodes within RuboCop.
|
1340
1359
|
#
|
1341
|
-
# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#
|
1360
|
+
# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#8
|
1342
1361
|
class RuboCop::AST::ForNode < ::RuboCop::AST::Node
|
1343
1362
|
# Returns the body of the `for` loop.
|
1344
1363
|
#
|
@@ -1521,7 +1540,7 @@ end
|
|
1521
1540
|
# node when the builder constructs the AST, making its methods available
|
1522
1541
|
# to all `hash` nodes within RuboCop.
|
1523
1542
|
#
|
1524
|
-
# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#
|
1543
|
+
# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#8
|
1525
1544
|
class RuboCop::AST::HashNode < ::RuboCop::AST::Node
|
1526
1545
|
# Checks whether the `hash` literal is delimited by curly braces.
|
1527
1546
|
#
|
@@ -1716,7 +1735,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node
|
|
1716
1735
|
# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#80
|
1717
1736
|
def modifier_form?; end
|
1718
1737
|
|
1719
|
-
#
|
1738
|
+
# Checks whether the `if` node has nested `if` nodes in any of its
|
1720
1739
|
# branches.
|
1721
1740
|
#
|
1722
1741
|
# @note This performs a shallow search.
|
@@ -1753,7 +1772,7 @@ end
|
|
1753
1772
|
# node when the builder constructs the AST, making its methods available
|
1754
1773
|
# to all `in` nodes within RuboCop.
|
1755
1774
|
#
|
1756
|
-
# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#
|
1775
|
+
# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#8
|
1757
1776
|
class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node
|
1758
1777
|
# Returns the body of the `in` node.
|
1759
1778
|
#
|
@@ -2470,7 +2489,7 @@ end
|
|
2470
2489
|
# plain node when the builder constructs the AST, making its methods
|
2471
2490
|
# available to all `module` nodes within RuboCop.
|
2472
2491
|
#
|
2473
|
-
# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#
|
2492
|
+
# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#8
|
2474
2493
|
class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node
|
2475
2494
|
# The body of this `module` node.
|
2476
2495
|
#
|
@@ -3509,7 +3528,7 @@ class RuboCop::AST::NodePattern
|
|
3509
3528
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3510
3529
|
def ast; end
|
3511
3530
|
|
3512
|
-
# source://forwardable/1.3.
|
3531
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3513
3532
|
def captures(*args, **_arg1, &block); end
|
3514
3533
|
|
3515
3534
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111
|
@@ -3538,7 +3557,7 @@ class RuboCop::AST::NodePattern
|
|
3538
3557
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3539
3558
|
def match_code; end
|
3540
3559
|
|
3541
|
-
# source://forwardable/1.3.
|
3560
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3542
3561
|
def named_parameters(*args, **_arg1, &block); end
|
3543
3562
|
|
3544
3563
|
# Returns the value of attribute pattern.
|
@@ -3546,7 +3565,7 @@ class RuboCop::AST::NodePattern
|
|
3546
3565
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73
|
3547
3566
|
def pattern; end
|
3548
3567
|
|
3549
|
-
# source://forwardable/1.3.
|
3568
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3550
3569
|
def positional_parameters(*args, **_arg1, &block); end
|
3551
3570
|
|
3552
3571
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95
|
@@ -3659,7 +3678,7 @@ class RuboCop::AST::NodePattern::Compiler
|
|
3659
3678
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15
|
3660
3679
|
def initialize; end
|
3661
3680
|
|
3662
|
-
# source://forwardable/1.3.
|
3681
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3663
3682
|
def bind(*args, **_arg1, &block); end
|
3664
3683
|
|
3665
3684
|
# Returns the value of attribute binding.
|
@@ -3796,14 +3815,14 @@ end
|
|
3796
3815
|
|
3797
3816
|
# Variant of the Compiler with tracing information for nodes
|
3798
3817
|
#
|
3799
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#
|
3818
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#10
|
3800
3819
|
class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler
|
3801
3820
|
# @return [Debug] a new instance of Debug
|
3802
3821
|
#
|
3803
3822
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123
|
3804
3823
|
def initialize; end
|
3805
3824
|
|
3806
|
-
# source://forwardable/1.3.
|
3825
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3807
3826
|
def comments(*args, **_arg1, &block); end
|
3808
3827
|
|
3809
3828
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128
|
@@ -3817,7 +3836,7 @@ class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::
|
|
3817
3836
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132
|
3818
3837
|
def parser; end
|
3819
3838
|
|
3820
|
-
# source://forwardable/1.3.
|
3839
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
3821
3840
|
def tokens(*args, **_arg1, &block); end
|
3822
3841
|
end
|
3823
3842
|
|
@@ -4172,6 +4191,9 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST:
|
|
4172
4191
|
|
4173
4192
|
private
|
4174
4193
|
|
4194
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20
|
4195
|
+
def compile(node); end
|
4196
|
+
|
4175
4197
|
# Compilation helpers
|
4176
4198
|
#
|
4177
4199
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#165
|
@@ -4681,9 +4703,9 @@ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
|
|
4681
4703
|
|
4682
4704
|
# Node class for `$something`
|
4683
4705
|
#
|
4684
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#
|
4706
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97
|
4685
4707
|
class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
|
4686
|
-
# source://forwardable/1.3.
|
4708
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4687
4709
|
def arity(*args, **_arg1, &block); end
|
4688
4710
|
|
4689
4711
|
# @return [Boolean]
|
@@ -4697,7 +4719,7 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No
|
|
4697
4719
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105
|
4698
4720
|
def nb_captures; end
|
4699
4721
|
|
4700
|
-
# source://forwardable/1.3.
|
4722
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4701
4723
|
def rest?(*args, **_arg1, &block); end
|
4702
4724
|
end
|
4703
4725
|
|
@@ -4811,7 +4833,7 @@ end
|
|
4811
4833
|
# Doc on how this fits in the compiling process:
|
4812
4834
|
# /docs/modules/ROOT/pages/node_pattern.adoc
|
4813
4835
|
#
|
4814
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4836
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12
|
4815
4837
|
class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
4816
4838
|
extend ::Forwardable
|
4817
4839
|
|
@@ -4820,140 +4842,140 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
|
|
4820
4842
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19
|
4821
4843
|
def initialize(builder = T.unsafe(nil)); end
|
4822
4844
|
|
4823
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4845
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#335
|
4824
4846
|
def _reduce_10(val, _values); end
|
4825
4847
|
|
4826
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4848
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#339
|
4827
4849
|
def _reduce_11(val, _values); end
|
4828
4850
|
|
4829
4851
|
# reduce 12 omitted
|
4830
4852
|
#
|
4831
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4853
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#345
|
4832
4854
|
def _reduce_13(val, _values); end
|
4833
4855
|
|
4834
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4856
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#349
|
4835
4857
|
def _reduce_14(val, _values); end
|
4836
4858
|
|
4837
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4859
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#353
|
4838
4860
|
def _reduce_15(val, _values); end
|
4839
4861
|
|
4840
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4862
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#357
|
4841
4863
|
def _reduce_16(val, _values); end
|
4842
4864
|
|
4843
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4865
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#361
|
4844
4866
|
def _reduce_17(val, _values); end
|
4845
4867
|
|
4846
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4868
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#365
|
4847
4869
|
def _reduce_18(val, _values); end
|
4848
4870
|
|
4849
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4871
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#369
|
4850
4872
|
def _reduce_19(val, _values); end
|
4851
4873
|
|
4852
4874
|
# reduce 1 omitted
|
4853
4875
|
#
|
4854
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4876
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#303
|
4855
4877
|
def _reduce_2(val, _values); end
|
4856
4878
|
|
4857
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4879
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#373
|
4858
4880
|
def _reduce_20(val, _values); end
|
4859
4881
|
|
4860
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4882
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#377
|
4861
4883
|
def _reduce_21(val, _values); end
|
4862
4884
|
|
4863
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4885
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#381
|
4864
4886
|
def _reduce_22(val, _values); end
|
4865
4887
|
|
4866
4888
|
# reduce 24 omitted
|
4867
4889
|
#
|
4868
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4890
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#389
|
4869
4891
|
def _reduce_25(val, _values); end
|
4870
4892
|
|
4871
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4893
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#395
|
4872
4894
|
def _reduce_26(val, _values); end
|
4873
4895
|
|
4874
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4896
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#307
|
4875
4897
|
def _reduce_3(val, _values); end
|
4876
4898
|
|
4877
4899
|
# reduce 32 omitted
|
4878
4900
|
#
|
4879
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4901
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#415
|
4880
4902
|
def _reduce_33(val, _values); end
|
4881
4903
|
|
4882
4904
|
# reduce 36 omitted
|
4883
4905
|
#
|
4884
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4906
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#425
|
4885
4907
|
def _reduce_37(val, _values); end
|
4886
4908
|
|
4887
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4909
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#429
|
4888
4910
|
def _reduce_38(val, _values); end
|
4889
4911
|
|
4890
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4912
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#433
|
4891
4913
|
def _reduce_39(val, _values); end
|
4892
4914
|
|
4893
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4915
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#311
|
4894
4916
|
def _reduce_4(val, _values); end
|
4895
4917
|
|
4896
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4918
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#437
|
4897
4919
|
def _reduce_40(val, _values); end
|
4898
4920
|
|
4899
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4921
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#441
|
4900
4922
|
def _reduce_41(val, _values); end
|
4901
4923
|
|
4902
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4924
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#445
|
4903
4925
|
def _reduce_42(val, _values); end
|
4904
4926
|
|
4905
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4927
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#449
|
4906
4928
|
def _reduce_43(val, _values); end
|
4907
4929
|
|
4908
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4930
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#453
|
4909
4931
|
def _reduce_44(val, _values); end
|
4910
4932
|
|
4911
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4933
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#457
|
4912
4934
|
def _reduce_45(val, _values); end
|
4913
4935
|
|
4914
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4936
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#461
|
4915
4937
|
def _reduce_46(val, _values); end
|
4916
4938
|
|
4917
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4939
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#315
|
4918
4940
|
def _reduce_5(val, _values); end
|
4919
4941
|
|
4920
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4942
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#319
|
4921
4943
|
def _reduce_6(val, _values); end
|
4922
4944
|
|
4923
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4945
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#323
|
4924
4946
|
def _reduce_7(val, _values); end
|
4925
4947
|
|
4926
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4948
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#327
|
4927
4949
|
def _reduce_8(val, _values); end
|
4928
4950
|
|
4929
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4951
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#331
|
4930
4952
|
def _reduce_9(val, _values); end
|
4931
4953
|
|
4932
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
4954
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
|
4933
4955
|
def _reduce_none(val, _values); end
|
4934
4956
|
|
4935
|
-
# source://forwardable/1.3.
|
4957
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4936
4958
|
def emit_atom(*args, **_arg1, &block); end
|
4937
4959
|
|
4938
|
-
# source://forwardable/1.3.
|
4960
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4939
4961
|
def emit_call(*args, **_arg1, &block); end
|
4940
4962
|
|
4941
|
-
# source://forwardable/1.3.
|
4963
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4942
4964
|
def emit_capture(*args, **_arg1, &block); end
|
4943
4965
|
|
4944
|
-
# source://forwardable/1.3.
|
4966
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4945
4967
|
def emit_list(*args, **_arg1, &block); end
|
4946
4968
|
|
4947
|
-
# source://forwardable/1.3.
|
4969
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4948
4970
|
def emit_unary_op(*args, **_arg1, &block); end
|
4949
4971
|
|
4950
|
-
# source://forwardable/1.3.
|
4972
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4951
4973
|
def emit_union(*args, **_arg1, &block); end
|
4952
4974
|
|
4953
4975
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40
|
4954
4976
|
def inspect; end
|
4955
4977
|
|
4956
|
-
# source://forwardable/1.3.
|
4978
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
4957
4979
|
def next_token(*args, **_arg1, &block); end
|
4958
4980
|
|
4959
4981
|
# (Similar API to `parser` gem)
|
@@ -4989,15 +5011,15 @@ RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer
|
|
4989
5011
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227
|
4990
5012
|
RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array)
|
4991
5013
|
|
4992
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
5014
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#295
|
4993
5015
|
RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass)
|
4994
5016
|
|
4995
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#
|
5017
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#244
|
4996
5018
|
RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
|
4997
5019
|
|
4998
5020
|
# Overrides Parser to use `WithMeta` variants and provide additional methods
|
4999
5021
|
#
|
5000
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#
|
5022
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#8
|
5001
5023
|
class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser
|
5002
5024
|
# Returns the value of attribute comments.
|
5003
5025
|
#
|
@@ -5120,16 +5142,43 @@ RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set)
|
|
5120
5142
|
RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set)
|
5121
5143
|
|
5122
5144
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5123
|
-
RuboCop::AST::NodePattern::Sets::
|
5145
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_EMPTY_ASSERT_NOT_EMPTY_REFUTE_EMPTY = T.let(T.unsafe(nil), Set)
|
5124
5146
|
|
5125
5147
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5126
|
-
RuboCop::AST::NodePattern::Sets::
|
5148
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_EQUAL_ASSERT_NOT_EQUAL_REFUTE_EQUAL = T.let(T.unsafe(nil), Set)
|
5127
5149
|
|
5128
5150
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5129
|
-
RuboCop::AST::NodePattern::Sets::
|
5151
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_FALSE = T.let(T.unsafe(nil), Set)
|
5152
|
+
|
5153
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5154
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_INCLUDES_ASSERT_NOT_INCLUDES_REFUTE_INCLUDES = T.let(T.unsafe(nil), Set)
|
5155
|
+
|
5156
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5157
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_INSTANCE_OF_ASSERT_NOT_INSTANCE_OF_REFUTE_INSTANCE_OF = T.let(T.unsafe(nil), Set)
|
5158
|
+
|
5159
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5160
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_IN_DELTA_ASSERT_NOT_IN_DELTA_REFUTE_IN_DELTA = T.let(T.unsafe(nil), Set)
|
5161
|
+
|
5162
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5163
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_KIND_OF_ASSERT_NOT_KIND_OF_REFUTE_KIND_OF = T.let(T.unsafe(nil), Set)
|
5164
|
+
|
5165
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5166
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_MATCH_REFUTE_MATCH = T.let(T.unsafe(nil), Set)
|
5167
|
+
|
5168
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5169
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_NIL_ASSERT_NOT_NIL_REFUTE_NIL = T.let(T.unsafe(nil), Set)
|
5130
5170
|
|
5131
5171
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5132
|
-
RuboCop::AST::NodePattern::Sets::
|
5172
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_PREDICATE_ASSERT_NOT_PREDICATE_REFUTE_PREDICATE = T.let(T.unsafe(nil), Set)
|
5173
|
+
|
5174
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5175
|
+
RuboCop::AST::NodePattern::Sets::SET_ASSERT_TRUE = T.let(T.unsafe(nil), Set)
|
5176
|
+
|
5177
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5178
|
+
RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
|
5179
|
+
|
5180
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5181
|
+
RuboCop::AST::NodePattern::Sets::SET_BACKGROUND_SCENARIO_XSCENARIO_ETC = T.let(T.unsafe(nil), Set)
|
5133
5182
|
|
5134
5183
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5135
5184
|
RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set)
|
@@ -5170,9 +5219,6 @@ RuboCop::AST::NodePattern::Sets::SET_CONTEXT_SHARED_CONTEXT = T.let(T.unsafe(nil
|
|
5170
5219
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5171
5220
|
RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
|
5172
5221
|
|
5173
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5174
|
-
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set)
|
5175
|
-
|
5176
5222
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5177
5223
|
RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
|
5178
5224
|
|
@@ -5191,9 +5237,6 @@ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe
|
|
5191
5237
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5192
5238
|
RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set)
|
5193
5239
|
|
5194
|
-
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5195
|
-
RuboCop::AST::NodePattern::Sets::SET_ENV = T.let(T.unsafe(nil), Set)
|
5196
|
-
|
5197
5240
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5198
5241
|
RuboCop::AST::NodePattern::Sets::SET_EQL_EQ_BE = T.let(T.unsafe(nil), Set)
|
5199
5242
|
|
@@ -5224,6 +5267,9 @@ RuboCop::AST::NodePattern::Sets::SET_FILE_DIR = T.let(T.unsafe(nil), Set)
|
|
5224
5267
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5225
5268
|
RuboCop::AST::NodePattern::Sets::SET_FILE_FILETEST = T.let(T.unsafe(nil), Set)
|
5226
5269
|
|
5270
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5271
|
+
RuboCop::AST::NodePattern::Sets::SET_FILE_TEMPFILE = T.let(T.unsafe(nil), Set)
|
5272
|
+
|
5227
5273
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5228
5274
|
RuboCop::AST::NodePattern::Sets::SET_FILE_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set)
|
5229
5275
|
|
@@ -5350,6 +5396,9 @@ RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set)
|
|
5350
5396
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5351
5397
|
RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
|
5352
5398
|
|
5399
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5400
|
+
RuboCop::AST::NodePattern::Sets::SET_SEND___SEND__ = T.let(T.unsafe(nil), Set)
|
5401
|
+
|
5353
5402
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5354
5403
|
RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set)
|
5355
5404
|
|
@@ -5377,6 +5426,9 @@ RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set)
|
|
5377
5426
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5378
5427
|
RuboCop::AST::NodePattern::Sets::SET_TASK_NAMESPACE = T.let(T.unsafe(nil), Set)
|
5379
5428
|
|
5429
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5430
|
+
RuboCop::AST::NodePattern::Sets::SET_TEXT_EXACT_TEXT = T.let(T.unsafe(nil), Set)
|
5431
|
+
|
5380
5432
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5381
5433
|
RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set)
|
5382
5434
|
|
@@ -5410,6 +5462,9 @@ RuboCop::AST::NodePattern::Sets::SET__FETCH = T.let(T.unsafe(nil), Set)
|
|
5410
5462
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5411
5463
|
RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set)
|
5412
5464
|
|
5465
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5466
|
+
RuboCop::AST::NodePattern::Sets::SET__PUSH_APPEND = T.let(T.unsafe(nil), Set)
|
5467
|
+
|
5413
5468
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5414
5469
|
RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set)
|
5415
5470
|
|
@@ -5489,7 +5544,7 @@ RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
5489
5544
|
# This will be used in place of a plain node when the builder constructs
|
5490
5545
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
5491
5546
|
#
|
5492
|
-
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#
|
5547
|
+
# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#8
|
5493
5548
|
class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node
|
5494
5549
|
# @return [AsgnNode] the assignment node
|
5495
5550
|
#
|
@@ -5522,7 +5577,7 @@ end
|
|
5522
5577
|
# This will be used in place of a plain node when the builder constructs
|
5523
5578
|
# the AST, making its methods available to all assignment nodes within RuboCop.
|
5524
5579
|
#
|
5525
|
-
# source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#
|
5580
|
+
# source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#8
|
5526
5581
|
class RuboCop::AST::OrAsgnNode < ::RuboCop::AST::OpAsgnNode
|
5527
5582
|
# The operator being used for assignment as a symbol.
|
5528
5583
|
#
|
@@ -5790,7 +5845,7 @@ RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String)
|
|
5790
5845
|
# This will be used in place of a plain node when the builder constructs
|
5791
5846
|
# the AST, making its methods available to all `arg` nodes within RuboCop.
|
5792
5847
|
#
|
5793
|
-
# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#
|
5848
|
+
# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#8
|
5794
5849
|
class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode
|
5795
5850
|
# Returns the name of an argument.
|
5796
5851
|
#
|
@@ -5808,38 +5863,38 @@ end
|
|
5808
5863
|
class RuboCop::AST::ProcessedSource
|
5809
5864
|
# @return [ProcessedSource] a new instance of ProcessedSource
|
5810
5865
|
#
|
5811
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5812
|
-
def initialize(source, ruby_version, path = T.unsafe(nil)); end
|
5866
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#29
|
5867
|
+
def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
|
5813
5868
|
|
5814
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5869
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#73
|
5815
5870
|
def [](*args); end
|
5816
5871
|
|
5817
5872
|
# Returns the value of attribute ast.
|
5818
5873
|
#
|
5819
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5874
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5820
5875
|
def ast; end
|
5821
5876
|
|
5822
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5877
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#51
|
5823
5878
|
def ast_with_comments; end
|
5824
5879
|
|
5825
5880
|
# @return [Boolean]
|
5826
5881
|
#
|
5827
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5882
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
|
5828
5883
|
def blank?; end
|
5829
5884
|
|
5830
5885
|
# Returns the value of attribute buffer.
|
5831
5886
|
#
|
5832
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5887
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5833
5888
|
def buffer; end
|
5834
5889
|
|
5835
5890
|
# Raw source checksum for tracking infinite loops.
|
5836
5891
|
#
|
5837
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5892
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84
|
5838
5893
|
def checksum; end
|
5839
5894
|
|
5840
5895
|
# @return [Comment, nil] the comment at that line, if any.
|
5841
5896
|
#
|
5842
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5897
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
|
5843
5898
|
def comment_at_line(line); end
|
5844
5899
|
|
5845
5900
|
# Consider using `each_comment_in_lines` instead
|
@@ -5847,170 +5902,178 @@ class RuboCop::AST::ProcessedSource
|
|
5847
5902
|
# @deprecated use contains_comment?
|
5848
5903
|
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
|
5849
5904
|
#
|
5850
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5905
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
|
5851
5906
|
def commented?(source_range); end
|
5852
5907
|
|
5853
5908
|
# Returns the value of attribute comments.
|
5854
5909
|
#
|
5855
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5910
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5856
5911
|
def comments; end
|
5857
5912
|
|
5858
5913
|
# Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
|
5859
5914
|
#
|
5860
5915
|
# @deprecated Use `each_comment_in_lines`
|
5861
5916
|
#
|
5862
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5917
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
|
5863
5918
|
def comments_before_line(line); end
|
5864
5919
|
|
5865
5920
|
# Consider using `each_comment_in_lines` instead
|
5866
5921
|
#
|
5867
5922
|
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
|
5868
5923
|
#
|
5869
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5924
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
|
5870
5925
|
def contains_comment?(source_range); end
|
5871
5926
|
|
5872
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5927
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161
|
5873
5928
|
def current_line(token); end
|
5874
5929
|
|
5875
5930
|
# Returns the value of attribute diagnostics.
|
5876
5931
|
#
|
5877
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5932
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5878
5933
|
def diagnostics; end
|
5879
5934
|
|
5880
5935
|
# @deprecated Use `comments.each`
|
5881
5936
|
#
|
5882
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5937
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89
|
5883
5938
|
def each_comment(&block); end
|
5884
5939
|
|
5885
5940
|
# Enumerates on the comments contained with the given `line_range`
|
5886
5941
|
#
|
5887
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5942
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#127
|
5888
5943
|
def each_comment_in_lines(line_range); end
|
5889
5944
|
|
5890
5945
|
# @deprecated Use `tokens.each`
|
5891
5946
|
#
|
5892
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5947
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#99
|
5893
5948
|
def each_token(&block); end
|
5894
5949
|
|
5895
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5950
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#108
|
5896
5951
|
def file_path; end
|
5897
5952
|
|
5898
5953
|
# @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
|
5899
5954
|
#
|
5900
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5955
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94
|
5901
5956
|
def find_comment(&block); end
|
5902
5957
|
|
5903
5958
|
# @deprecated Use `tokens.find`
|
5904
5959
|
#
|
5905
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5960
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#104
|
5906
5961
|
def find_token(&block); end
|
5907
5962
|
|
5908
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5963
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#182
|
5909
5964
|
def first_token_of(range_or_node); end
|
5910
5965
|
|
5911
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5966
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#165
|
5912
5967
|
def following_line(token); end
|
5913
5968
|
|
5914
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5969
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#186
|
5915
5970
|
def last_token_of(range_or_node); end
|
5916
5971
|
|
5917
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5972
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#169
|
5918
5973
|
def line_indentation(line_number); end
|
5919
5974
|
|
5920
5975
|
# @return [Boolean] if the given line number has a comment.
|
5921
5976
|
#
|
5922
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5977
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#122
|
5923
5978
|
def line_with_comment?(line); end
|
5924
5979
|
|
5925
5980
|
# Returns the source lines, line break characters removed, excluding a
|
5926
5981
|
# possible __END__ and everything that comes after.
|
5927
5982
|
#
|
5928
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5983
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#59
|
5929
5984
|
def lines; end
|
5930
5985
|
|
5986
|
+
# Returns the value of attribute parser_engine.
|
5987
|
+
#
|
5988
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5989
|
+
def parser_engine; end
|
5990
|
+
|
5931
5991
|
# Returns the value of attribute parser_error.
|
5932
5992
|
#
|
5933
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5993
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5934
5994
|
def parser_error; end
|
5935
5995
|
|
5936
5996
|
# Returns the value of attribute path.
|
5937
5997
|
#
|
5938
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5998
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5939
5999
|
def path; end
|
5940
6000
|
|
5941
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6001
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
|
5942
6002
|
def preceding_line(token); end
|
5943
6003
|
|
5944
6004
|
# Returns the value of attribute raw_source.
|
5945
6005
|
#
|
5946
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6006
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5947
6007
|
def raw_source; end
|
5948
6008
|
|
5949
6009
|
# Returns the value of attribute ruby_version.
|
5950
6010
|
#
|
5951
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6011
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5952
6012
|
def ruby_version; end
|
5953
6013
|
|
5954
6014
|
# The tokens list is always sorted by token position, except for cases when heredoc
|
5955
6015
|
# is passed as a method argument. In this case tokens are interleaved by
|
5956
6016
|
# heredoc contents' tokens.
|
5957
6017
|
#
|
5958
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6018
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#193
|
5959
6019
|
def sorted_tokens; end
|
5960
6020
|
|
5961
6021
|
# @return [Boolean]
|
5962
6022
|
#
|
5963
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6023
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151
|
5964
6024
|
def start_with?(string); end
|
5965
6025
|
|
5966
6026
|
# Returns the value of attribute tokens.
|
5967
6027
|
#
|
5968
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6028
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
|
5969
6029
|
def tokens; end
|
5970
6030
|
|
5971
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6031
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176
|
5972
6032
|
def tokens_within(range_or_node); end
|
5973
6033
|
|
5974
6034
|
# @return [Boolean]
|
5975
6035
|
#
|
5976
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6036
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77
|
5977
6037
|
def valid_syntax?; end
|
5978
6038
|
|
5979
6039
|
private
|
5980
6040
|
|
5981
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6041
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#200
|
5982
6042
|
def comment_index; end
|
5983
6043
|
|
5984
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5985
|
-
def create_parser(ruby_version); end
|
6044
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#312
|
6045
|
+
def create_parser(ruby_version, parser_engine); end
|
5986
6046
|
|
5987
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6047
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#328
|
5988
6048
|
def first_token_index(range_or_node); end
|
5989
6049
|
|
5990
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6050
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#333
|
5991
6051
|
def last_token_index(range_or_node); end
|
5992
6052
|
|
5993
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5994
|
-
def parse(source, ruby_version); end
|
6053
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#206
|
6054
|
+
def parse(source, ruby_version, parser_engine); end
|
5995
6055
|
|
5996
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
5997
|
-
def parser_class(ruby_version); end
|
6056
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#240
|
6057
|
+
def parser_class(ruby_version, parser_engine); end
|
5998
6058
|
|
5999
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6059
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#338
|
6000
6060
|
def source_range(range_or_node); end
|
6001
6061
|
|
6002
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6062
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#223
|
6003
6063
|
def tokenize(parser); end
|
6004
6064
|
|
6005
6065
|
class << self
|
6006
|
-
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#
|
6007
|
-
def from_file(path, ruby_version); end
|
6066
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#24
|
6067
|
+
def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
|
6008
6068
|
end
|
6009
6069
|
end
|
6010
6070
|
|
6011
6071
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
|
6012
6072
|
RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
|
6013
6073
|
|
6074
|
+
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
|
6075
|
+
RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
|
6076
|
+
|
6014
6077
|
# @api private
|
6015
6078
|
#
|
6016
6079
|
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13
|
@@ -6127,7 +6190,7 @@ RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash)
|
|
6127
6190
|
# plain node when the builder constructs the AST, making its methods
|
6128
6191
|
# available to all `resbody` nodes within RuboCop.
|
6129
6192
|
#
|
6130
|
-
# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#
|
6193
|
+
# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#8
|
6131
6194
|
class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node
|
6132
6195
|
# Returns the body of the `rescue` clause.
|
6133
6196
|
#
|
@@ -6162,7 +6225,7 @@ end
|
|
6162
6225
|
# plain node when the builder constructs the AST, making its methods
|
6163
6226
|
# available to all `rescue` nodes within RuboCop.
|
6164
6227
|
#
|
6165
|
-
# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#
|
6228
|
+
# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#8
|
6166
6229
|
class RuboCop::AST::RescueNode < ::RuboCop::AST::Node
|
6167
6230
|
# Returns the body of the rescue node.
|
6168
6231
|
#
|
@@ -6234,7 +6297,7 @@ RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Has
|
|
6234
6297
|
# plain node when the builder constructs the AST, making its methods
|
6235
6298
|
# available to all `sclass` nodes within RuboCop.
|
6236
6299
|
#
|
6237
|
-
# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#
|
6300
|
+
# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#8
|
6238
6301
|
class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node
|
6239
6302
|
# The body of this `sclass` node.
|
6240
6303
|
#
|
@@ -6981,7 +7044,7 @@ RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String)
|
|
6981
7044
|
# node when the builder constructs the AST, making its methods available
|
6982
7045
|
# to all `when` nodes within RuboCop.
|
6983
7046
|
#
|
6984
|
-
# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#
|
7047
|
+
# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#8
|
6985
7048
|
class RuboCop::AST::WhenNode < ::RuboCop::AST::Node
|
6986
7049
|
# Returns the body of the `when` node.
|
6987
7050
|
#
|