rubocop-ast 1.44.1 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/rubocop/ast/builder.rb +1 -0
- data/lib/rubocop/ast/node/complex_node.rb +13 -0
- data/lib/rubocop/ast/node/mixin/basic_literal_node.rb +1 -1
- data/lib/rubocop/ast/node/mixin/method_dispatch_node.rb +1 -1
- data/lib/rubocop/ast/node/mixin/numeric_node.rb +2 -2
- data/lib/rubocop/ast/node/mixin/parameterized_node.rb +1 -0
- data/lib/rubocop/ast/node.rb +24 -2
- data/lib/rubocop/ast/node_pattern/compiler/debug.rb +2 -0
- data/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb +1 -1
- data/lib/rubocop/ast/node_pattern/compiler.rb +1 -0
- data/lib/rubocop/ast/node_pattern/lexer.rex +1 -1
- data/lib/rubocop/ast/node_pattern/lexer.rex.rb +1 -1
- data/lib/rubocop/ast/node_pattern/node.rb +1 -1
- data/lib/rubocop/ast/node_pattern/parser.racc.rb +40 -42
- data/lib/rubocop/ast/node_pattern.rb +1 -0
- data/lib/rubocop/ast/processed_source.rb +8 -7
- data/lib/rubocop/ast/traversal.rb +1 -0
- data/lib/rubocop/ast/version.rb +1 -1
- data/lib/rubocop/ast.rb +1 -0
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e4a71ea1a0fa947b90afc9034eeb0c003b875f36ec8802a28228cba2325d094
|
|
4
|
+
data.tar.gz: 871addb4a4e3d427f5c549902f8c927ebe8796856fa5d8828db4e1235550b786
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db53330f9e551fa8d09b60d743297c3c9cbf1ac3df66ced1ead0ecf252b8ddd8f02a0593effd9d0849314f9604b1d0560ff8f6f4b5fdea67fb306e86ba2c7aae
|
|
7
|
+
data.tar.gz: f635affad9b49b2179e8f176a714bb2f38fe49ade7254bfbf8dfcf2797c8939b33d8884a1ba28f77bf7343bb03a80be6f7ab62a79a4ee89b989a52d00434e136
|
data/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/rubocop-ast)
|
|
4
4
|
[](https://github.com/rubocop/rubocop-ast/actions/workflows/rubocop.yml)
|
|
5
|
-
[](https://codeclimate.com/github/rubocop/rubocop-ast/test_coverage)
|
|
6
|
-
[](https://codeclimate.com/github/rubocop/rubocop-ast/maintainability)
|
|
7
5
|
|
|
8
6
|
Contains the classes needed by [RuboCop](https://github.com/rubocop/rubocop) to deal with Ruby's AST, in particular:
|
|
9
7
|
|
data/lib/rubocop/ast/builder.rb
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module RuboCop
|
|
4
|
+
module AST
|
|
5
|
+
# A node extension for `complex` nodes. This will be used in place of a plain
|
|
6
|
+
# node when the builder constructs the AST, making its methods available to
|
|
7
|
+
# all `complex` nodes within RuboCop.
|
|
8
|
+
class ComplexNode < Node
|
|
9
|
+
include BasicLiteralNode
|
|
10
|
+
include NumericNode
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module RuboCop
|
|
4
4
|
module AST
|
|
5
|
-
# Common functionality for primitive numeric nodes: `int`, `float`, `rational`...
|
|
5
|
+
# Common functionality for primitive numeric nodes: `int`, `float`, `rational`, `complex`...
|
|
6
6
|
module NumericNode
|
|
7
7
|
SIGN_REGEX = /\A[+-]/.freeze
|
|
8
8
|
private_constant :SIGN_REGEX
|
|
@@ -15,7 +15,7 @@ module RuboCop
|
|
|
15
15
|
#
|
|
16
16
|
# @return [Boolean] whether this literal has a sign.
|
|
17
17
|
def sign?
|
|
18
|
-
source.match(SIGN_REGEX)
|
|
18
|
+
source.match?(SIGN_REGEX)
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
end
|
data/lib/rubocop/ast/node.rb
CHANGED
|
@@ -108,6 +108,13 @@ module RuboCop
|
|
|
108
108
|
rational: :numeric,
|
|
109
109
|
complex: :numeric,
|
|
110
110
|
|
|
111
|
+
str: :any_str,
|
|
112
|
+
dstr: :any_str,
|
|
113
|
+
xstr: :any_str,
|
|
114
|
+
|
|
115
|
+
sym: :any_sym,
|
|
116
|
+
dsym: :any_sym,
|
|
117
|
+
|
|
111
118
|
irange: :range,
|
|
112
119
|
erange: :range,
|
|
113
120
|
|
|
@@ -116,7 +123,10 @@ module RuboCop
|
|
|
116
123
|
|
|
117
124
|
block: :any_block,
|
|
118
125
|
numblock: :any_block,
|
|
119
|
-
itblock: :any_block
|
|
126
|
+
itblock: :any_block,
|
|
127
|
+
|
|
128
|
+
match_pattern: :any_match_pattern,
|
|
129
|
+
match_pattern_p: :any_match_pattern
|
|
120
130
|
}.freeze
|
|
121
131
|
private_constant :GROUP_FOR_TYPE
|
|
122
132
|
|
|
@@ -269,7 +279,7 @@ module RuboCop
|
|
|
269
279
|
def right_siblings
|
|
270
280
|
return [].freeze unless parent
|
|
271
281
|
|
|
272
|
-
parent.children[sibling_index + 1..].freeze
|
|
282
|
+
parent.children[(sibling_index + 1)..].freeze
|
|
273
283
|
end
|
|
274
284
|
|
|
275
285
|
# Common destructuring method. This can be used to normalize
|
|
@@ -540,6 +550,18 @@ module RuboCop
|
|
|
540
550
|
GROUP_FOR_TYPE[type] == :any_block
|
|
541
551
|
end
|
|
542
552
|
|
|
553
|
+
def any_match_pattern_type?
|
|
554
|
+
GROUP_FOR_TYPE[type] == :any_match_pattern
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
def any_str_type?
|
|
558
|
+
GROUP_FOR_TYPE[type] == :any_str
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
def any_sym_type?
|
|
562
|
+
GROUP_FOR_TYPE[type] == :any_sym
|
|
563
|
+
end
|
|
564
|
+
|
|
543
565
|
def guard_clause?
|
|
544
566
|
node = operator_keyword? ? rhs : self
|
|
545
567
|
|
|
@@ -261,7 +261,7 @@ module RuboCop
|
|
|
261
261
|
arities = children
|
|
262
262
|
.reverse
|
|
263
263
|
.map(&:arity_range)
|
|
264
|
-
.map { |r| last = last.begin + r.begin..last.max + r.max }
|
|
264
|
+
.map { |r| last = (last.begin + r.begin)..(last.max + r.max) }
|
|
265
265
|
.reverse!
|
|
266
266
|
arities.push last_arity
|
|
267
267
|
end
|
|
@@ -122,7 +122,7 @@ class RuboCop::AST::NodePattern::LexerRex
|
|
|
122
122
|
# do nothing
|
|
123
123
|
when ss.skip(/:(#{SYMBOL_NAME})/o) then
|
|
124
124
|
action { emit :tSYMBOL, &:to_sym }
|
|
125
|
-
when ss.skip(/"(
|
|
125
|
+
when ss.skip(/"(.*?)"/) then
|
|
126
126
|
action { emit :tSTRING }
|
|
127
127
|
when ss.skip(/[-+]?\d+\.\d+/) then
|
|
128
128
|
action { emit :tNUMBER, &:to_f }
|
|
@@ -179,7 +179,7 @@ module RuboCop
|
|
|
179
179
|
class AnyOrder < Node
|
|
180
180
|
include ForbidInSeqHead
|
|
181
181
|
|
|
182
|
-
ARITIES = Hash.new { |h, k| h[k] = k - 1..Float::INFINITY }
|
|
182
|
+
ARITIES = Hash.new { |h, k| h[k] = (k - 1)..Float::INFINITY }
|
|
183
183
|
private_constant :ARITIES
|
|
184
184
|
|
|
185
185
|
def term_nodes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
#
|
|
3
3
|
# DO NOT MODIFY!!!!
|
|
4
|
-
# This file is automatically generated by Racc 1.
|
|
5
|
-
# from Racc grammar file "
|
|
4
|
+
# This file is automatically generated by Racc 1.5.0
|
|
5
|
+
# from Racc grammar file "".
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
require 'racc/parser.rb'
|
|
@@ -14,15 +14,15 @@ module RuboCop
|
|
|
14
14
|
|
|
15
15
|
racc_action_table = [
|
|
16
16
|
14, 15, 16, 21, 18, 17, 19, 10, 11, 12,
|
|
17
|
-
60, 22, 20, 4,
|
|
18
|
-
28, 23, 56, 50,
|
|
17
|
+
60, 22, 20, 4, 40, 5, 43, 6, 7, 8,
|
|
18
|
+
28, 23, 56, 50, 66, 61, 24, 51, 51, 40,
|
|
19
19
|
58, 14, 15, 16, 21, 18, 17, 19, 10, 11,
|
|
20
20
|
12, nil, 22, 20, 4, nil, 5, nil, 6, 7,
|
|
21
21
|
8, 28, 23, nil, nil, -34, 14, 15, 16, 21,
|
|
22
22
|
18, 17, 19, 10, 11, 12, nil, 22, 20, 4,
|
|
23
23
|
nil, 5, nil, 6, 7, 8, 9, 23, 14, 15,
|
|
24
24
|
16, 21, 18, 17, 19, 10, 11, 12, nil, 22,
|
|
25
|
-
20, 4, nil, 5, nil, 6, 7, 8,
|
|
25
|
+
20, 4, nil, 5, nil, 6, 7, 8, 9, 23,
|
|
26
26
|
14, 15, 16, 21, 18, 17, 19, 10, 11, 12,
|
|
27
27
|
nil, 22, 20, 4, nil, 5, nil, 6, 7, 8,
|
|
28
28
|
9, 23, 14, 15, 16, 21, 18, 17, 19, 10,
|
|
@@ -33,7 +33,7 @@ racc_action_table = [
|
|
|
33
33
|
18, 17, 19, 10, 11, 12, nil, 22, 20, 4,
|
|
34
34
|
nil, 5, nil, 6, 7, 8, 9, 23, 14, 15,
|
|
35
35
|
16, 21, 18, 17, 19, 10, 11, 12, nil, 22,
|
|
36
|
-
20, 4, nil, 5, nil, 6, 7, 8,
|
|
36
|
+
20, 4, nil, 5, nil, 6, 7, 8, 28, 23,
|
|
37
37
|
14, 15, 16, 21, 18, 17, 19, 10, 11, 12,
|
|
38
38
|
nil, 22, 20, 4, 44, 5, nil, 6, 7, 8,
|
|
39
39
|
28, 23, 14, 15, 16, 21, 18, 17, 19, 10,
|
|
@@ -47,31 +47,31 @@ racc_action_table = [
|
|
|
47
47
|
20, 4, nil, 5, nil, 6, 7, 8, 9, 23,
|
|
48
48
|
14, 15, 16, 21, 18, 17, 19, 10, 11, 12,
|
|
49
49
|
nil, 22, 20, 4, nil, 5, nil, 6, 7, 8,
|
|
50
|
-
9, 23,
|
|
51
|
-
|
|
50
|
+
9, 23, 47, 48, 49, -1, -1, -1, -2, -2,
|
|
51
|
+
-2 ]
|
|
52
52
|
|
|
53
53
|
racc_action_check = [
|
|
54
54
|
42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
|
|
55
|
-
54, 42, 42, 42,
|
|
56
|
-
42, 42, 42, 30,
|
|
55
|
+
54, 42, 42, 42, 11, 42, 24, 42, 42, 42,
|
|
56
|
+
42, 42, 42, 30, 62, 54, 1, 63, 30, 10,
|
|
57
57
|
42, 59, 59, 59, 59, 59, 59, 59, 59, 59,
|
|
58
58
|
59, nil, 59, 59, 59, nil, 59, nil, 59, 59,
|
|
59
|
-
59, 59, 59, nil, nil, 59,
|
|
59
|
+
59, 59, 59, nil, nil, 59, 5, 5, 5, 5,
|
|
60
|
+
5, 5, 5, 5, 5, 5, nil, 5, 5, 5,
|
|
61
|
+
nil, 5, nil, 5, 5, 5, 5, 5, 6, 6,
|
|
62
|
+
6, 6, 6, 6, 6, 6, 6, 6, nil, 6,
|
|
63
|
+
6, 6, nil, 6, nil, 6, 6, 6, 6, 6,
|
|
64
|
+
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
|
65
|
+
nil, 7, 7, 7, nil, 7, nil, 7, 7, 7,
|
|
66
|
+
7, 7, 8, 8, 8, 8, 8, 8, 8, 8,
|
|
67
|
+
8, 8, nil, 8, 8, 8, nil, 8, nil, 8,
|
|
68
|
+
8, 8, 8, 8, 9, 9, 9, 9, 9, 9,
|
|
69
|
+
9, 9, 9, 9, nil, 9, 9, 9, nil, 9,
|
|
70
|
+
nil, 9, 9, 9, 9, 9, 0, 0, 0, 0,
|
|
60
71
|
0, 0, 0, 0, 0, 0, nil, 0, 0, 0,
|
|
61
72
|
nil, 0, nil, 0, 0, 0, 0, 0, 4, 4,
|
|
62
73
|
4, 4, 4, 4, 4, 4, 4, 4, nil, 4,
|
|
63
74
|
4, 4, nil, 4, nil, 4, 4, 4, 4, 4,
|
|
64
|
-
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
65
|
-
nil, 5, 5, 5, nil, 5, nil, 5, 5, 5,
|
|
66
|
-
5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
67
|
-
6, 6, nil, 6, 6, 6, nil, 6, nil, 6,
|
|
68
|
-
6, 6, 6, 6, 7, 7, 7, 7, 7, 7,
|
|
69
|
-
7, 7, 7, 7, nil, 7, 7, 7, nil, 7,
|
|
70
|
-
nil, 7, 7, 7, 7, 7, 8, 8, 8, 8,
|
|
71
|
-
8, 8, 8, 8, 8, 8, nil, 8, 8, 8,
|
|
72
|
-
nil, 8, nil, 8, 8, 8, 8, 8, 9, 9,
|
|
73
|
-
9, 9, 9, 9, 9, 9, 9, 9, nil, 9,
|
|
74
|
-
9, 9, nil, 9, nil, 9, 9, 9, 9, 9,
|
|
75
75
|
27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
|
|
76
76
|
nil, 27, 27, 27, 27, 27, nil, 27, 27, 27,
|
|
77
77
|
27, 27, 28, 28, 28, 28, 28, 28, 28, 28,
|
|
@@ -85,17 +85,17 @@ racc_action_check = [
|
|
|
85
85
|
50, 50, nil, 50, nil, 50, 50, 50, 50, 50,
|
|
86
86
|
61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
|
|
87
87
|
nil, 61, 61, 61, nil, 61, nil, 61, 61, 61,
|
|
88
|
-
61, 61,
|
|
89
|
-
|
|
88
|
+
61, 61, 29, 29, 29, 25, 25, 25, 26, 26,
|
|
89
|
+
26 ]
|
|
90
90
|
|
|
91
91
|
racc_action_pointer = [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
nil, nil, nil, nil,
|
|
92
|
+
164, 26, nil, nil, 186, 54, 76, 98, 120, 142,
|
|
93
|
+
17, 2, nil, nil, nil, nil, nil, nil, nil, nil,
|
|
94
|
+
nil, nil, nil, nil, 16, 318, 321, 208, 230, 315,
|
|
95
95
|
-2, nil, nil, 252, nil, nil, nil, nil, nil, nil,
|
|
96
96
|
274, nil, -2, nil, nil, nil, nil, nil, nil, nil,
|
|
97
97
|
296, nil, nil, nil, -6, nil, nil, nil, nil, 29,
|
|
98
|
-
nil, 318,
|
|
98
|
+
nil, 318, -2, -3, nil, nil, nil ]
|
|
99
99
|
|
|
100
100
|
racc_action_default = [
|
|
101
101
|
-47, -47, -1, -2, -31, -47, -47, -47, -47, -47,
|
|
@@ -107,26 +107,26 @@ racc_action_default = [
|
|
|
107
107
|
-37, -47, -47, -47, -35, -39, -26 ]
|
|
108
108
|
|
|
109
109
|
racc_goto_table = [
|
|
110
|
-
1, 33,
|
|
111
|
-
|
|
112
|
-
nil, nil, nil, nil, nil, nil,
|
|
113
|
-
nil, nil, nil, 53,
|
|
114
|
-
55,
|
|
110
|
+
1, 33, 64, 32, 25, 34, 35, 36, 37, 38,
|
|
111
|
+
54, 26, 39, 41, 27, 42, 46, 63, 62, nil,
|
|
112
|
+
nil, nil, nil, nil, nil, nil, 45, 25, 38, nil,
|
|
113
|
+
nil, nil, nil, 53, 26, nil, nil, nil, nil, nil,
|
|
114
|
+
55, 57, 25, nil, nil, nil, 59, nil, nil, 26,
|
|
115
115
|
34, nil, nil, nil, nil, nil, nil, nil, nil, 53,
|
|
116
116
|
nil, 65 ]
|
|
117
117
|
|
|
118
118
|
racc_goto_check = [
|
|
119
|
-
1, 5,
|
|
120
|
-
|
|
121
|
-
nil, nil, nil, nil, nil, nil,
|
|
122
|
-
nil, nil, nil, 1,
|
|
123
|
-
1,
|
|
119
|
+
1, 5, 13, 9, 2, 1, 1, 1, 1, 1,
|
|
120
|
+
14, 3, 6, 6, 4, 8, 10, 11, 12, nil,
|
|
121
|
+
nil, nil, nil, nil, nil, nil, 9, 2, 1, nil,
|
|
122
|
+
nil, nil, nil, 1, 3, nil, nil, nil, nil, nil,
|
|
123
|
+
1, 9, 2, nil, nil, nil, 5, nil, nil, 3,
|
|
124
124
|
1, nil, nil, nil, nil, nil, nil, nil, nil, 1,
|
|
125
125
|
nil, 1 ]
|
|
126
126
|
|
|
127
127
|
racc_goto_pointer = [
|
|
128
|
-
nil, 0,
|
|
129
|
-
-
|
|
128
|
+
nil, 0, 0, 7, 10, -4, 2, nil, -8, -1,
|
|
129
|
+
-13, -42, -41, -57, -30 ]
|
|
130
130
|
|
|
131
131
|
racc_goto_default = [
|
|
132
132
|
nil, 29, 2, 3, nil, nil, nil, 13, nil, nil,
|
|
@@ -239,7 +239,6 @@ Racc_arg = [
|
|
|
239
239
|
racc_shift_n,
|
|
240
240
|
racc_reduce_n,
|
|
241
241
|
racc_use_result_var ]
|
|
242
|
-
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
|
243
242
|
|
|
244
243
|
Racc_token_to_s_table = [
|
|
245
244
|
"$end",
|
|
@@ -290,7 +289,6 @@ Racc_token_to_s_table = [
|
|
|
290
289
|
"opt_rest",
|
|
291
290
|
"rest",
|
|
292
291
|
"arg_list" ]
|
|
293
|
-
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
|
294
292
|
|
|
295
293
|
Racc_debug_parser = false
|
|
296
294
|
|
|
@@ -256,7 +256,8 @@ module RuboCop
|
|
|
256
256
|
[ast, comments, tokens]
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
# rubocop:disable Lint/FloatComparison, Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength
|
|
260
|
+
def parser_class(ruby_version, parser_engine)
|
|
260
261
|
case parser_engine
|
|
261
262
|
when :parser_whitequark
|
|
262
263
|
case ruby_version
|
|
@@ -309,20 +310,20 @@ module RuboCop
|
|
|
309
310
|
when :parser_prism
|
|
310
311
|
case ruby_version
|
|
311
312
|
when 3.3
|
|
312
|
-
require 'prism/translation/parser33'
|
|
313
313
|
Prism::Translation::Parser33
|
|
314
314
|
when 3.4
|
|
315
|
-
require 'prism/translation/parser34'
|
|
316
315
|
Prism::Translation::Parser34
|
|
317
|
-
when 3.5
|
|
318
|
-
|
|
319
|
-
|
|
316
|
+
when 3.5, 4.0
|
|
317
|
+
Prism::Translation::Parser40
|
|
318
|
+
when 4.1
|
|
319
|
+
Prism::Translation::Parser41
|
|
320
320
|
else
|
|
321
321
|
raise ArgumentError, 'RuboCop supports target Ruby versions 3.3 and above with Prism. ' \
|
|
322
322
|
"Specified target Ruby version: #{ruby_version.inspect}"
|
|
323
323
|
end
|
|
324
324
|
end
|
|
325
325
|
end
|
|
326
|
+
# rubocop:enable Lint/FloatComparison, Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength
|
|
326
327
|
|
|
327
328
|
def builder_class(parser_engine)
|
|
328
329
|
case parser_engine
|
|
@@ -339,7 +340,7 @@ module RuboCop
|
|
|
339
340
|
|
|
340
341
|
parser_class = parser_class(ruby_version, parser_engine)
|
|
341
342
|
|
|
342
|
-
parser_instance = if prism_result
|
|
343
|
+
parser_instance = if parser_engine == :parser_prism && prism_result
|
|
343
344
|
# NOTE: Since it is intended for use with Ruby LSP, it targets only Prism.
|
|
344
345
|
# If there is no reuse of a pre-parsed result, such as in Ruby LSP,
|
|
345
346
|
# regular parsing with Prism occurs, and `else` branch will be executed.
|
data/lib/rubocop/ast/version.rb
CHANGED
data/lib/rubocop/ast.rb
CHANGED
|
@@ -48,6 +48,7 @@ require_relative 'ast/node/case_match_node'
|
|
|
48
48
|
require_relative 'ast/node/case_node'
|
|
49
49
|
require_relative 'ast/node/casgn_node'
|
|
50
50
|
require_relative 'ast/node/class_node'
|
|
51
|
+
require_relative 'ast/node/complex_node'
|
|
51
52
|
require_relative 'ast/node/const_node'
|
|
52
53
|
require_relative 'ast/node/def_node'
|
|
53
54
|
require_relative 'ast/node/defined_node'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-ast
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.49.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bozhidar Batsov
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2025-
|
|
13
|
+
date: 2025-12-28 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: parser
|
|
@@ -32,14 +32,14 @@ dependencies:
|
|
|
32
32
|
requirements:
|
|
33
33
|
- - "~>"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: '1.
|
|
35
|
+
version: '1.7'
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '1.
|
|
42
|
+
version: '1.7'
|
|
43
43
|
description: " RuboCop's Node and NodePattern classes.\n"
|
|
44
44
|
email: rubocop@googlegroups.com
|
|
45
45
|
executables: []
|
|
@@ -69,6 +69,7 @@ files:
|
|
|
69
69
|
- lib/rubocop/ast/node/case_node.rb
|
|
70
70
|
- lib/rubocop/ast/node/casgn_node.rb
|
|
71
71
|
- lib/rubocop/ast/node/class_node.rb
|
|
72
|
+
- lib/rubocop/ast/node/complex_node.rb
|
|
72
73
|
- lib/rubocop/ast/node/const_node.rb
|
|
73
74
|
- lib/rubocop/ast/node/csend_node.rb
|
|
74
75
|
- lib/rubocop/ast/node/def_node.rb
|
|
@@ -177,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
177
178
|
- !ruby/object:Gem::Version
|
|
178
179
|
version: '0'
|
|
179
180
|
requirements: []
|
|
180
|
-
rubygems_version: 3.5.
|
|
181
|
+
rubygems_version: 3.5.22
|
|
181
182
|
signing_key:
|
|
182
183
|
specification_version: 4
|
|
183
184
|
summary: RuboCop tools to deal with Ruby code AST.
|